codestack icon indicating copy to clipboard operation
codestack copied to clipboard

Export Multiple formats macro

Open Ekscentrix opened this issue 3 years ago • 0 comments

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, image

I get a run-time error: image

The Debug takes me to this line: image

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?

Ekscentrix avatar Jul 22 '22 17:07 Ekscentrix