FreeCAD_SheetMetal icon indicating copy to clipboard operation
FreeCAD_SheetMetal copied to clipboard

Extend leads to no attribute UseSubtraction error

Open akshimassar opened this issue 2 years ago • 2 comments

sheetmetal version V0.2.51 23 Jul 2022

aaa

12:57:23  Traceback (most recent call last):
  File "/home/akshi/.FreeCAD/Mod/sheetmetal/SheetMetalExtendCmd.py", line 337, in execute
    s = smExtrude(extLength = fp.length.Value,  gap1 = fp.gap1.Value, gap2 = fp.gap2.Value, subtraction = fp.UseSubstraction,
<class 'AttributeError'>: 'FeaturePython' object has no attribute 'UseSubstraction'

test.FCStd.zip

Repro is trivial. Part design, new body, new sketch, rectangle, pad, 2mm, select side face, extend -> error.

akshimassar avatar Jul 25 '22 10:07 akshimassar

I've tried it with 0.19 freecad and with realthunder branch -- result was the same.

akshimassar avatar Jul 25 '22 10:07 akshimassar

Reverting commit fef6bb2d310c8f8acc62b242ec8bad54385139e4 fixes the issue.

Related to #238

Just note that correct spelling would be subtraction

akshimassar avatar Jul 25 '22 10:07 akshimassar

Is this still an issue ?

luzpaz avatar Mar 06 '23 11:03 luzpaz

I haven't checked it with newer versions of the plugin. Let's close it as it should be fixed as per @shaise

akshimassar avatar Mar 16 '23 15:03 akshimassar