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
- Test on copied SOLIDWORKS files first.
- Download and import
ExportWithCustomPropertyFilename.basinto a SOLIDWORKS VBA macro project. - Open the required document type: Drawing, Part, Assembly.
- Run
mainfrom the macro editor or assign it to a toolbar button. - Review all generated files before using them for production release.
Limitations
- Part and assembly documents export STEP only.
- Drawing documents export PDF and DXF.