Macro DeepCopy

Description
Select a part in the tree, run the macro and it will create a compound with a copy of all its shapes. The part hierarchy is lost as well as all the special functionalities of the children of the original part. For example subparts, bodies, sketches, ... will be lost and their shape will be copied.

code on github