What this macro does
Exports the active document into the formats that make sense for its document type.
Best for
- Personal export buttons
- Quick vendor output
- Mixed document workflows
Inputs
- Open saved SOLIDWORKS document
Outputs
PDF, DXF, DWG, STEP, STL
Filename rules
Uses the active document filename and creates an Exports subfolder.
How to use
- Test on copied SOLIDWORKS files first.
- Download and import
MultiFormatActiveDocumentExporter.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
- Drawing exports PDF/DXF/DWG; part and assembly exports STEP/STL.
- Format settings come from the current SOLIDWORKS options.