Continue to Site

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!

SaveAs pdf Macro disclude one sheet 2

Status
Not open for further replies.

ShaggyPE

Mechanical
Sep 8, 2003
1,127
I have done some searching on this topic. Reference:
thread559-122404
thread559-163578
thread559-158861

thread559-122404 specifically is addressing my issue, but this was back in '05, so I am wondering if anything has changed.

My issue is this, I have 3 (sometimes 2) sheets on a drawing, the last sheet is always renamed to DXF and it is a flat pattern of a sheetmetal part. When I use a macro to saveas pdf, I would like it to not include the DXF sheet. Ideally I don't want to go the route of print to pdf, but if that is the only option, I will go there (primopdf). I don't seem to see an option when I SaveAs4 to select which sheets. It seems odd, because when I manually do a save as pdf, I am prompted which sheets I want to include.

Thanks in adavnce for the help. I have already received help from fcsuper. It is his macro that I tweaking for my needs.

-Dustin
Professional Engineer
Certified SolidWorks Professional
Certified COSMOSWorks Designer Specialist
Certified SolidWorks Advanced Sheet Metal Specialist
 
Replies continue below

Recommended for you

SaveAs4 is obsolete as of SW07 SP1. The new method is ModelDocExtension::SaveAs, which includes support for selecting which sheets to save in a PDF. The API help even has an example for specifying which sheets to save.

-handleman, CSWP (The new, easy test)
 
Excellent, I will investigate that. I am writing the macro in 2006 for a friend using 2007. I will complete the changes you suggested in 07.

Thanks again.

-Dustin
Professional Engineer
Certified SolidWorks Professional
Certified COSMOSWorks Designer Specialist
Certified SolidWorks Advanced Sheet Metal Specialist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor