Macro Replace Part in Assembly

Especially when doing "Assemblies" with simple copies of parts, one needs to replace one part by another from time to time.

Then you can use this macro do do this.

Use
Be sure to have your files containing the old part and the new part open.

Then run the macro.

Select the appropriate FreeCAD-document and select the new part in the tree-view.

Then click on "Select New Part".

Select the appropriate FreeCAD-document and select the part to be replaced in the tree-view.

Then click on "Select Old Part".

Use the other options to your liking.

Then click on "Replace Old Part".

Script
Macro Replace_Part_in_Assembly.py