First I'd like to thank a lot Zolko and other contributors for their work as it is quite amazing, I really enjoy the Assembly 4 module!
From using it I was wondering if it would be possible to automatize the creation of an assembly: I would like to run some code to calculate some stuff, optimize on position of those objects, write all of this in a csv, and then use a FreeCad macro to automatically generate the layout with pre-created pieces.
I think I would only need the macro to insert a part, and specify its position relatively to some LCS I would have inserted at different places.
From what says the python console, inserting a part is only done through the GUI interface: inserting a part gives me:
Code: Select all
>>> Gui.runCommand('Asm4_insertLink',0)
>>> # Gui.Selection.clearSelection()
>>> # Gui.Selection.removeSelection('tracker','Assembly','PlancheBas.')
I guess the objective should be to create a class insertLink, but I don't know if that's possible from command line.
Thanks a lot!
Simon