×
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

SaveAs pdf Macro disclude one sheet
2

SaveAs pdf Macro disclude one sheet

SaveAs pdf Macro disclude one sheet

(OP)
I have done some searching on this topic. Reference:
thread559-122404: Save as PDF drwing sheet control.
thread559-163578: Save as PDF example code
thread559-158861: PDF Macro Help

thread559-122404: Save as PDF drwing sheet control. 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
 

RE: SaveAs pdf Macro disclude one sheet

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)

RE: SaveAs pdf Macro disclude one sheet

(OP)
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
 

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