×
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

Save as PDF with Folder Selection

Save as PDF with Folder Selection

Save as PDF with Folder Selection

(OP)
There's been a lot of discussion in this forum about macros that allow the user to quickly save a drawing or drawing view as a PDF.  (such as thread559-163578: Save as PDF example code ) I recently created a new macro that addresses may of the old requests including those not previously touched.   It's uploaded here:  SaveAsPDF with Folder Selection.  Check it out and let me know what you think.  

I'm hoping to vet this macro a bit to make sure it's working well on as many systems as possible.
 

Matt Lorono
CAD Engineer/ECN Analyst
Silicon Valley, CA
Lorono's SolidWorks Resources
Co-moderator of Solidworks Yahoo! Group
and Mechnical.Engineering Yahoo! Group

RE: Save as PDF with Folder Selection

Matt,
I tried your macro on a 1 sheet drawing and it worked great. I was using cutePDF writer but this is faster and puts it in a folder of my liking.
A star for you.
Thank you.

Standing
SolidWorks Pro 2009 x64, SP3.0, PDMWorks Workgroup, SolidWorks BOM,
HP xw8600, 64-bit Windows Vista Business, Service Pack 1
Intel Xeon CPU, 3.00 GHz, 16 GB RAM, Virtual memory 166682 MB, nVidia Quadro FX 4600

RE: Save as PDF with Folder Selection

I'm using SW09 SP3 and Windows XP.

I can save screenshots of models without any problems, but if I try and save a drawing (either single sheet or multi-sheet) I get the following error:

Quote:

Microsoft Visual Basic

Run-time error '5':

Invalid procedure call or argument

Flores

RE: Save as PDF with Folder Selection

(OP)
The first thing I would check at your end is if the reference libraries are current.  If they are, let me know and I'll look into this at my end with my install of 2009.  Since I've not seen this issue, I'll have to try to cause it to happen.

Matt Lorono
CAD Engineer/ECN Analyst
Silicon Valley, CA
Lorono's SolidWorks Resources
Co-moderator of Solidworks Yahoo! Group
and Mechnical.Engineering Yahoo! Group

RE: Save as PDF with Folder Selection

The reference libraries are up to date as far as I can tell:
SW 2009 Commands type library
SW 2009 type library
SW 2009 constant type library
SW 2009 exposed type libraries for add-ins use

These other ones do not have a date on them:
Visual basic for applications
SW extensibility type library
OLE Automation
SldWinShellExt 1.0 type library

Not sure if there is a particular one I should look for.

Flores

RE: Save as PDF with Folder Selection

smcadman,

Try to refresh these libraries. Check all SW Libraries off and click ok. Save the macro and go to the same dialog. Now check them on. Save macro and run it again.

Artem Taturevich
CSWP

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