I'd now like to convert this into a tool which creates a parametric "Hull" parameter, so that the parameters can later be varied & the resulting geometry changed, rather than having to go back and recreate the object from scratch to change the geometry. I found the tutorial at https://www.freecadweb.org/wiki/Manual: ... ic_objects. It seems to suggest that if I create a new class to represent the object with properties (added with
Code: Select all
obj.addProperty()
Code: Select all
execute()
Code: Select all
obj.Shape
Secondly, I'd like, eventually, for this object to have sub-objects to represent the hull geometry and the deck geometry. But I'm not sure what's the best way forward here. Is there a way for a parametric object to have sub-objects in this way? Or would I be better off to keep it as a single object, with a command to replace that single object with two separate objects representing the two different parts of the geometry?
Thanks for any advice,
Tom