I've tried Arch/rebar in 0.17.7447 and the command doesn't work (error when exiting the sketch) :
It seems that the type of sketch.support has changed (since PD Next I suppose). It's now an empty list when sketch has no support and a tuple in a list when sketch has a support (was a tuple before).Running the Python command 'Arch_Rebar' failed:
Traceback (most recent call last):
File "D:\Utilisateurs\behe\Desktop\prog-supp\Freecad\FreeCAD_0.17.7447_x64_dev_win\FreeCAD_0.17.7447_x64_dev_win\Mod\Arch\ArchRebar.py", line 129, in Activated
FreeCADGui.doCommand("Arch.makeRebar(FreeCAD.ActiveDocument."+sup.Name+",FreeCAD.ActiveDocument."+obj.Name+")")
'list' object has no attribute 'Name'Arch workbench deactivated
So I've change two lines of code in ArchRebar.py (since line 121) :
Code: Select all
if hasattr(obj,"Support"):
if obj.Support:
#if isinstance(obj.Support,tuple):
if len(obj.Support) !=0 :
#sup = obj.Support[0]
sup=obj.Support[0][0]
If someone could have a look...
Thanks.