Macro STEP of parts in an assembly

Hello
I'm far from being a VBA pro and I'm looking for a macro that allows me to open the parts of an assembly (the current file) to then make and save the STEP (the objective is to make a manufacturing folder for my subcontractors) in a given folder.
In my assemblies, there are sub-assemblies and parts that are in different folders.
Ideally, I shouldn't register my supplies.
My pieces all start with 5 numbers.

I'm on SW 2022, without PDM

Thank you in advance for your answers.

Do you have access to Visiativ's Mycad tools?
If so, no need for macro.
Otherwise macro to improve:

If it works well, you will have to add a condition to the file name.
Already test the macro after correcting what the 2nd person suggests, and modifying the path in this line:

vaultPath = "C:\Users\Engineering\Desktop\test\" 'set folder for vault (change this later)

Then we'll see if it works to add your condition to the filename.

1 Like

Thank you

I have access to Mycad tools, yes.
and the macro works.
I like the macro because I can use it easily on all workstations.