Sheet Metal macro

SOLIDWORKS Macro: Sheet-Metal Flat Pattern DXF Batch Export

Traverses the active assembly or part and exports sheet-metal flat patterns as DXF files using model properties where available.

AssemblyPartDXFAdvanced

What this macro does

Traverses the active assembly or part and exports sheet-metal flat patterns as DXF files using model properties where available.

Best for

  • Laser cutting
  • Fabrication handoff
  • Assembly-level sheet-metal release packs

Inputs

  • Open sheet-metal part or assembly
  • Saved components

Outputs

DXF

Filename rules

{PartNo}_{Revision}_{Material}_{Thickness}; falls back to component filename.

How to use

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

  • Requires parts to contain valid flat-pattern features.
  • Complex multi-body sheet-metal parts may need shop-specific review.
  • DXF options follow the installed SOLIDWORKS defaults.

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