I would like to know how to realise a deep copy with a python script like we can do with Copy menu when we select one linked object?
Starting point is: Ending point is: Now all children and parents are copied too I know how to select all the parents and the children of an object
Code: Select all
for obj in sel:
for child in obj.OutList:
FreeCADGui.Selection.addSelection(child)
for parent in obj.InList:
FreeCADGui.Selection.addSelection(parent)
for child in parent.OutList:
FreeCADGui.Selection.addSelection(child)
Thank you for your help.
Rentlau_64