amrit3701 / FreeCAD-Reinforcement

Reinforcement Workbench for FreeCAD
https://wiki.freecadweb.org/Reinforcement_Workbench
48 stars 19 forks source link

ERROR for "Straight Rebar" command #184

Closed balrobs closed 5 months ago

balrobs commented 5 months ago

using FreeCAD weekly (... will become FreeCAD 1.0) the "Straight Rebar"-command throws the following error:

08:48:03  pyException: Traceback (most recent call last):
  File "C:\Users\balrobs\AppData\Roaming\FreeCAD\Mod\Reinforcement\.\StraightRebar.py", line 241, in accept
    rebar = makeStraightRebar(
            ^^^^^^^^^^^^^^^^^^
  File "C:\Users\balrobs\AppData\Roaming\FreeCAD\Mod\Reinforcement\.\StraightRebar.py", line 380, in makeStraightRebar
    sketch.Support = [(structure, facename)]
    ^^^^^^^^^^^^^^
<class 'AttributeError'>: 'Sketcher.SketchObject' object has no attribute 'Support'

I will try to come back with a patch that will work for both 0.21 and 1.0 versions