ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
JRJohn Rice20/03/2019

hey guys, I'm writing a simple macro to help me at work with our prints.

I need the macro to

Save the .SLDDRW file

Save a .PDF in the same file location as the SLDDRW file

Print a copy

then, Close document

I have the Macro were it will save the SLDDRW file then Print, but I cannot find any examples to export the PDF to follow the file location of the SLDDRW file, everything I find on the export of PDF and examples of Codes wants a specified file path for the PDF, but since I change files paths for every customer and such I cant just designate a single file path for the PDF to fall in,

Im also having a problem with the closing the active document, I can get the close all documents to work, but I can get the active document to work, can someone help me with these two issues?

Thanks, John