Specifically, I am creating a technique which auto-generates several (10-1000 or more) wire sections that are derived from a master sketch. I then use Part.makeLoft() to generate a loft from a list of wire sections.
This works very well. However, if I change the master sketch and regenerate the wire sections, I now have the dilemma of figuring out how to recreate the Loft object in-place. Ideally, it would be best if I could just use:
Code: Select all
my_existing_loft_object.sections = section_list
The other idea would be to reassign the loft shape using:
Code: Select all
my_existing_loft_object.Shape = Part.makeLoft(section_list, ...)
From what I can tell, the loft section list is empty whenever you use makeLoft(), but it doesn't complain when I create it the first time - only when I attempt to reassign an existing loft's Shape.
Any thoughts on how I can sort this out? Maybe a way to generate a loft without using Part.makeLoft() but also without having to create each section as a DocumentObject?