shaise / FreeCAD_SheetMetal

A simple sheet metal workbench for FreeCAD
http://theseger.com/projects/2015/06/sheet-metal-addon-for-freecad/
GNU Lesser General Public License v2.1
193 stars 56 forks source link

Fold a Wall operator fails with "list index out of range" #262

Open johschmitz opened 1 year ago

johschmitz commented 1 year ago

I am running FreeCAD v0.20.2 with SheetMetal Workbench v0.2.60. When I try to use the Fold a Wall operator it fails with the following error message:

21:32:41  1.0
21:32:41  Traceback (most recent call last):
  File "/home/schmitz/.local/share/FreeCAD/Mod/sheetmetal/./SheetMetalFoldCmd.py", line 260, in execute
    s = smFold(bendR = fp.radius.Value, bendA = fp.angle.Value, flipped = fp.invert, unfold = fp.unfold, kfactor = fp.kfactor, bendlinesketch = fp.BendLine,
  File "/home/schmitz/.local/share/FreeCAD/Mod/sheetmetal/./SheetMetalFoldCmd.py", line 155, in smFold
    solid0 = solid1list[0]
<class 'IndexError'>: list index out of range
21:32:41  Recompute failed! Please check report view.

Here a screenshots to show what I did just before clicking the button: Screenshot from 2023-01-23 21-32-36

jaisekjames commented 1 year ago

folding line should on selected face. It look like folding line on opposite face.

johschmitz commented 1 year ago

Can it not fold in both directions depending on which side the line is located?