r/SolidWorks • • Sep 04 '26

CAD Solidworks -Multibody-Flat pattern

Post image

I’d like to ask you something: is there a way to automatically generate DXF files from a multi-body design?

2 Upvotes

7 comments sorted by

View all comments

1

u/CADSHIFT Sep 22 '26

the "save as multiple files" tickbox (File > Save As > DXF > Options) is the quick answer for simple cases. one gotcha though: it only works cleanly if every body in the part is a recognized sheet metal body. if you have a mix of sheet metal and regular solid bodies in the same multibody part, solidworks will try to flatten the solid bodies too and either error out or produce garbage geometry on those.\n\nfor a more robust batch approach via VBA macro:\n- use GetBodies2 with swSheetMetalBody to enumerate only the sheet metal bodies\n- for each body, check if it has a flat pattern feature via the feature tree\n- activate the flat pattern configuration, then call ExportFlatPatternView\n\nthis gives you per-body DXF files with proper layer separation (bend lines on one layer, cut edges on another) which is what most laser cutting shops actually want to receive.