Hi. Thanks for this interesting tool.hhassey wrote: ↑Sun Jan 07, 2018 3:46 am DONE!
Please Grab the latest version in Gitlab: https://gitlab.com/Oriond/FreeCAD-Steel_Frame.git
.
I found in FC0.16 and FC 0.17 that your macro runs at once in the Part Workbench. But in Arch Workbench, when you just opened the program, it fails. I ran the macro a second time and only then it worked.
The console gives this report:
Code: Select all
Arch workbench activated
Traceback (most recent call last):
File "C:/Users/Rafael/AppData/Roaming/FreeCAD/Macro/FrameCreator.FCMacro", line 229, in execute
parte.append(Draw_Steel_Stud(y-2*th1*FEM,x,th1,poste[2]-2*th1*FEM,fal,poste[3])) #dibujar poste
File "C:/Users/Rafael/AppData/Roaming/FreeCAD/Macro/FrameCreator.FCMacro", line 112, in Draw_Steel_Stud
L1=Part.makeLine(V1,V2)
<type 'exceptions.NameError'>: global name 'Part' is not defined
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6712 (Git)
Build type: Release
Branch: releases/FreeCAD-0-16
Hash: da2d364457257a7a8c6fb2137cea12c45becd71a
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12802 (Git)
Build type: Release
Branch: master
Hash: 91bb7ed0c51ba47f011199af7bc0a3a2964cf5be
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/Australia (en_AU)