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
- Test on copied SOLIDWORKS files first.
- Download and import
SheetMetalFlatPatternDxfBatch.basinto a SOLIDWORKS VBA macro project. - Open the required document type: Assembly, Part.
- Run
mainfrom the macro editor or assign it to a toolbar button. - 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.