×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

PDF Macro

PDF Macro

PDF Macro

(OP)
     I'm asking to see if anyone has or knows of a bulk PDF macro out there for saving SolidWorks drawings as pdf documents.  Ideally the macro would "save as" pdf for all drawings in a folder.  I would like to use SolidWorks task scheduler to run the macro at an off peak time.  TIA.

Pete

RE: PDF Macro

If you find a macro, also make sure the page setups for each dwg are as you want them or you can get unwanted PDF results.

RE: PDF Macro

Apparently you can do this with the Task Scheduler in combination with the full Bluebeam PDF - you just do a "Print Files" and then print to the BlueBeam PDF Printer.

You could probably do the same thing with a free PDF printer (i.e. CutePDF) if you can set it to save the PDF files all to a single location silently - this may require some research on ghostscript parameters.

RE: PDF Macro

I use one that does the files on a singular basis.  The macro saves the open drawing first, then deletes all pages except for the first sheet, it then deletes several unwanted notes from the first sheet, rebuilds the drawing, saves the pdf with the same name as the drawing into a different directory and the closes the file without saving the edits it made before creating the PDF file.  Reason I needed to do all this is because our electrical group uses one page PDF's, mechanical uses one page DXF's with added information from a database.  The mech group uses the additional pages for design notes, plus we put a digital signature on the first sheet in a spot that gets covered by our database when it adds a BOM to the DXF.

RE: PDF Macro

Alternate approach is to use the API to save as PDF using the "SaveAs4" method of ModelDoc or DrawingDoc:

Model.SaveAs4("D:\samples\d1.pdf", 0, 0, e, w)

You have to work out some type of routine to loop through every document in the folder, maybe using DIR or GETATTR (don't remember what it is exactly).  You would then have to open the document silently, save it as a PDF, and close it.

You could create this as an executable (if you have VB) then schedule it.



Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources