Macro Export to PDF 3D and STEP

Hello

I'm in the process of discovering a little bit about macro. I'm looking to make a Macro to export to a 3D PDF and a STEP.
I encounter some constraints, the 3D PDF must be generated from an assembly, and the STEP (AP203) must be generated from a PART from the assembly.

So basically, I want to generate:
 - a PDF3D from an ASM
 - a PART from an ASM
 - an AP203 WWTP from the previously generated PART.

The PART will have to bear the same name as the ASM
The PDF3D and the STEP will have to be renamed with a property ported in the ASM

The save path should be the same as the initial file.

I have this bit of macro that I tinkered with, far from optimal and only generates the PDF3D

Have a good day to you,
Seb.

Below is the macro in question that I couldn't insert on my first post
Sorry for the double

Edit:
I managed to do something but I am missing the saving in the same folder as the assembly and renaming of the file


macropdf3d.txt
macropdf3dpartstep.txt

If it can be useful to others,


That's what I did as a macro.
Maybe far from optimal but functional for our needs:)


macro_asmtopdf3dtoparttostep.txt
1 Like