Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save as PDF with Folder Selection 1

Status
Not open for further replies.

fcsuper

Mechanical
Apr 20, 2006
2,204
US
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 ) 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
 
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
 
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:

Microsoft Visual Basic

Run-time error '5':

Invalid procedure call or argument

Flores
 
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
 
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
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top