I am designing an aircraft fuselage shown below. I created the cross sections as wires in a Python script and showed them using:
for i in range(max):
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:
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
I am using FreeCAD 0.13 on Windows7. Can anybody help?