Custom Properties macro

SOLIDWORKS Macro: Export PDF/DXF/STEP with Filename from Custom Properties

Builds export filenames from PartNo, Revision and Description custom properties instead of raw SOLIDWORKS filenames.

DrawingPartAssemblyPDFDXFSTEPIntermediate

What this macro does

Builds export filenames from PartNo, Revision and Description custom properties instead of raw SOLIDWORKS filenames.

Best for

  • Controlled releases
  • Vendor filenames
  • Drawing-to-model naming consistency

Inputs

  • Open saved SOLIDWORKS document
  • Optional PartNo, Revision and Description custom properties

Outputs

PDF, DXF, STEP

Filename rules

{PartNo}_{Revision}_{Description}; missing values are skipped.

How to use

  1. Test on copied SOLIDWORKS files first.
  2. Download and import ExportWithCustomPropertyFilename.bas into a SOLIDWORKS VBA macro project.
  3. Open the required document type: Drawing, Part, Assembly.
  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

  • Part and assembly documents export STEP only.
  • Drawing documents export PDF and DXF.

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