Drawing macro

SOLIDWORKS Macro: Batch Export Drawings to PDF

Selects a folder, opens every .SLDDRW file in it, rebuilds the drawing and saves a PDF into a PDF subfolder.

DrawingPDFBeginner

What this macro does

Selects a folder, opens every .SLDDRW file in it, rebuilds the drawing and saves a PDF into a PDF subfolder.

Best for

  • Drawing release folders
  • Vendor PDF packs
  • Nightly drawing refreshes

Inputs

  • Folder containing .SLDDRW files

Outputs

PDF

Filename rules

Uses the drawing filename and writes into a PDF subfolder.

How to use

  1. Test on copied SOLIDWORKS files first.
  2. Download and import BatchExportDrawingsToPdf.bas into a SOLIDWORKS VBA macro project.
  3. Open the required document type: Drawing.
  4. Run main from the macro editor or assign it to a toolbar button.
  5. Review all generated files before using them for production release.

Limitations

  • Processes one folder level.
  • Drawings with missing references may require user repair before export.

When macros become a workflow

Use Solidise for indexed folders, BOM visibility, where-used search and repeatable batch export.

Use this macro for a focused task. Use Solidise when you need repeatable export, BOM review, previews or where-used context across many files.

Visit Solidise

Related macros

Keep automating this workflow