codestack
codestack copied to clipboard
Export Multiple formats macro
Hi There, I've been using your macro, and I must say, it's a beautiful thing! I ran into a situation where I'm hoping the solution is fairly simple.
I'm currently exporting a PDF, dwg and dxf of a drawing. I would also like to export a step or parasolid of the model in the drawing. When I try to add .step, .stp or .x_t to the OUT_NAME_TEMPLATES array,

I get a run-time error:

The Debug takes me to this line:

Is this macro not setup to export a 3D file and a 2D file at the same time? Would it be possible to make a modification to the code to open the model in drawingview1, export to the requested CAD format, close the model document without saving, and make the drawing active again?