Drawing macro

SOLIDWORKS Macro: Rebuild Drawings Before PDF Export

Batch opens drawings from a selected folder, rebuilds them and exports fresh PDFs.

DrawingPDFIntermediate

What this macro does

Batch opens drawings from a selected folder, rebuilds them and exports fresh PDFs.

Best for

  • Pre-release drawing refresh
  • Title block update checks
  • Drawing batch QA

Inputs

  • Folder containing .SLDDRW files

Outputs

PDF

Filename rules

Exports to RebuiltPDF subfolder using drawing filenames.

How to use

  1. Test on copied SOLIDWORKS files first.
  2. Download and import RebuildDrawingsBeforeExport.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

  • May expose missing references or rebuild errors that need manual repair.

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