Skip to content

Commit b5801b9

Browse files
committed
Fix issue #437. Update readme to PR #432 and #433
1 parent 4b7a71c commit b5801b9

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

FastenersCmd.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -695,11 +695,11 @@ def execute(self, fp):
695695
else:
696696
l = fp.Length.Value
697697
try:
698-
minimumLength = Units.Quantity(FSParam.GetString("MinimumLength", "2.0 mm"))
698+
minimumLength = Units.Quantity(str(FSParam.GetFloat("MinimumLength", 2.0)) + " mm")
699699
except ValueError:
700700
minimumLength = Units.Quantity("2.0 mm")
701-
if Units.Quantity(l).UserString < minimumLength.UserString:
702-
l = minimumLength.getValueAs(1.0,1)
701+
if Units.Quantity(l).Value < minimumLength.Value:
702+
l = minimumLength.Value
703703
fp.Length = l
704704
self.calc_len = str(l)
705705
else:

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ screwobj = sm.createFastener('ISO7046', 'M6', '8', 'simple')
120120
</details>
121121

122122
#### Release Notes
123+
* V0.5.38 31 Mar 2025: Add tooltip desciption for each type by @Syres916.
124+
- Add minimum length option in parameters by @Syres916.
123125
* V0.5.37 30 Jan 2025: Add Ground Screws by @tritao.
124126
* V0.5.36 20 Jan 2025: Fix issue that fasteners hang freecad on complex models.
125127
* V0.5.35 07 Jan 2025: Complete translation support by @hasecilu.

package.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<package format="1" xmlns="https://wiki.freecad.org/Package_Metadata">
33
<name>Fasteners Workbench</name>
44
<description>Some common fasteners and fastener tools for FreeCAD.</description>
5-
<version>0.5.37</version>
6-
<date>2025-01-30</date>
5+
<version>0.5.38</version>
6+
<date>2025-03-31</date>
77
<maintainer email="[email protected]">Shai Seger</maintainer>
88
<license file="LICENSE">GPL-2.0-or-later</license>
99
<url type="repository" branch="master">https://github.com/shaise/FreeCAD_FastenersWB</url>

0 commit comments

Comments
 (0)