Is there simply way to export flat patterns from multi body/sheetmetal part? Or do I need to create drawing for each sheetmetal and then save each drawing to dxf?
SolidworksApi macros
Is there simply way to export flat patterns from multi body/sheetmetal part? Or do I need to create drawing for each sheetmetal and then save each drawing to dxf?
SolidworksApi macros
Check these post on the similar topics
Macro- for saving dxf flat patterns with configuration names.dxf
Batch export to dwg
Stefan
Right click on the body you want to export and then select export to dxf/dwg for the pop up menu
Paul.
This is API question
Thanks,
But I need to do dxf flat pattern from selected objects from weldment cutlist.
SWX allows to export all sheet matals at once and without logical connection to cut list.
Dxf files are connected to flat pattern states at the end oft the feature tree but there is no direct relation to weldment folders and bodies.
Manually I can create drawing view from body that I choose and set displayed view as a flat pattern but from API it's not so easy.
I think as opposed to trying to export the dxf files from the items in the cut list you could try to export them from the flat patterns. Each of the sheetmetal bodies will have it's own flat pattern at the bottom of the design tree. If you cycle through these with a loop or while statement, you should be able to export each of them individually.
I would rename the flat pattern feature to match the name of the feature in the cut list and use the name of the flat pattern as the name of the dxf.
SLP