Export macro

SOLIDWORKS Macro: Multi-Format Active Document Exporter

Exports the active document into the formats that make sense for its document type.

DrawingPartAssemblyPDFDXFDWGSTEPSTLIntermediate

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

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

  • Drawing exports PDF/DXF/DWG; part and assembly exports STEP/STL.
  • Format settings come from the current SOLIDWORKS options.

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