tomate44 / CurvesWB

Experiments for a FreeCAD Surface workbench
GNU Lesser General Public License v2.1
112 stars 24 forks source link

Segment a surface function not working in 0.22.0dev #129

Closed FieteO closed 2 months ago

FieteO commented 2 months ago

Clicking on the Segment a surface button fails with the following stack trace:

16:47:24  Running the Python command 'segment_surface' failed:
Traceback (most recent call last):
  File "/home/fiete/.local/share/FreeCAD/Mod/Curves/./freecad/Curves/segmentSurfaceFP.py", line 208, in Activated
    self.makeFeature(sel[0])
  File "/home/fiete/.local/share/FreeCAD/Mod/Curves/./freecad/Curves/segmentSurfaceFP.py", line 199, in makeFeature
    SegmentSurface(fp, (s.Object, s.SubElementNames[0]))
                                  ~~~~~~~~~~~~~~~~~^^^

tuple index out of rangeRunning the Python command 'segment_surface' failed:
Traceback (most recent call last):
  File "/home/fiete/.local/share/FreeCAD/Mod/Curves/./freecad/Curves/segmentSurfaceFP.py", line 208, in Activated
    self.makeFeature(sel[0])
  File "/home/fiete/.local/share/FreeCAD/Mod/Curves/./freecad/Curves/segmentSurfaceFP.py", line 199, in makeFeature
    SegmentSurface(fp, (s.Object, s.SubElementNames[0]))
                                  ~~~~~~~~~~~~~~~~~^^^

This occurs with the latest dev build: FreeCAD_weekly-builds-38429-conda-Linux-x86_64-py311.AppImage

tomate44 commented 2 months ago

I think you selected the object in the Tree View. The tooltip of Segment Surface says : "Select a face in the 3D View