for i in range(max):
Part.show(w)
They appeared on the screen and got new names in the Tree view: Shape, Shape001, ... Shape014. I was then able to use the Loft icon, select all the cross sections and create a solid. The Python console listed the following commands:
App.getDocument('Unnamed').addObject('Part::Loft','Loft')
App.getDocument('Unnamed').ActiveObject.Sections=[App.getDocument('Unnamed').Shape001, App.getDocument('Unnamed').Shape.....
App.getDocument('Unnamed').ActiveObject.Solid=True
App.getDocument('Unnamed').ActiveObject.Ruled=False
This is good, but I want to do all of this in the Python script. How can I reference the shapes from there? I understand they are document objects, but I couldn't find a way to interact with them from Python directly. For one thing I'd like to give them better names than ShapeXXX. For another, I wish to define the loft sections using a list, as the number of sections may change any time. Ideally, I'd like to have something like
App.getDocument('Unnamed').addObject('Part::Loft','fuselage')
fuselage.Sections=[w]
I am using FreeCAD 0.13 on Windows7. Can anybody help?
