You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating any of Tub, Hat or Box the resulting size of the resulting is wrong in one dimension.
Test:
Create a Base Shape "Tub" with thickness=1mm, radius=1mm, length=30mm and width=20mm.
Measure outside dimensions which will be 22x30 mm.
Screenshot attached.
Cause:
For Tub, Hat and Box width AND length has to be corrected by 2.0 * bendCompensation but just length is done so.
Solution:
I have changed the code in SheetMetalBaseShapeCmd.py, function smCreateBaseShape starting line 141 to expicitly deal with all cases as shown below.
def smCreateBaseShape(type, thickness, radius, width, length, height, flangeWidth, fillGaps):
bendCompensation = thickness + radius
height -= bendCompensation
if type == "U-Shape":
numfolds = 2
width -= 2.0 * bendCompensation
elif type == "Tub" or type == "Hat" or type == "Box":
numfolds = 4
width -= 2.0 * bendCompensation
length -= 2.0 * bendCompensation
else:
numfolds = 1
width -= bendCompensation
...
The text was updated successfully, but these errors were encountered:
Creating any of Tub, Hat or Box the resulting size of the resulting is wrong in one dimension.
Test:
Screenshot attached.
Cause:
For Tub, Hat and Box width AND length has to be corrected by 2.0 * bendCompensation but just length is done so.
Solution:
I have changed the code in SheetMetalBaseShapeCmd.py, function smCreateBaseShape starting line 141 to expicitly deal with all cases as shown below.
The text was updated successfully, but these errors were encountered: