3DEXPERIENCE Macro to export a part

In CATIA 3DEXPERIENCE (Part Design):
Does somebody know the VBA commands to (1.) save a part as a duplicate and to (2.) export it to a 3dxml or STEP file:
1.  
Save as duplicate ("Saving Content As a Duplicate"):
After clicking on "Save with Options", I can click on the "Save as New" button after selecting it and then after entering some text, I can save a duplicate of the current part in the database.
How do I do this e.g. in a macro when programming with VBA? What are the commands here that I can control the same via an algorithm?
2.  
Export as 3dxml or STEP file:
At "Export..." a window appears to export components to a desired format:
How can I control this using a code in VBA? What are the required commands or methods for this export?

3DEXPERIENCE ​​​​​​​Part Design ​​​​​​​Edu ​​​​​​​VBA Commands ​​​​​​​