ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
BMBrian Mick02/04/2013

Hello,

First post, hi everyone!

I've been reading these forums for a while, and I have many macros that do great things, all by reading your posts. Thanks for that.

Here is what I need help with:

1. I work mostly with sheet metal, so most of my drawings have the flat pattern with no bend lines shown as the last page for exporting as a DXF (already a macro, thanks guys )

2. We always name that page something with "FLAT" in the name.  Sometimes it's "Flat Pattern", sometimes "Flat -2" sometimes just "Flat".

3. I want to export all pages as a *single* PDF that do NOT contain "FLAT" in their name.

4. If there is no "FLAT" sheet, then export all sheets to a *single* PDF.

5. If there are multiple sheets that contain "FLAT", export none of them.

For the sake of simplicity, lets just save it to my desktop.  I already have the macro to find the proper directory based on custom properties.

The PDF file name should be the same as the drawing name.

Any suggestions?

Thanks in advance!

EDIT: As a get-by measure, is there any way to display the sheet selection dialog box that normally appears when saving a drawing as a PDF?

EDIT 2: Added note that all the sheets not named some form of "flat" should be collectively saved as a single PDF file.