sheet_metal_export_flat_pattern
Exports a sheet metal component's flat pattern to DXF or STEP for fabrication, with optional bend and extent lines, file units, and spline-to-polyline conversion.
Instructions
Export a component's flat pattern to DXF (bend / extent lines, file units, optional spline-to-polyline) or STEP. STEP uses the preview Fusion API (api_unavailable when missing; see sheet_metal_capabilities).
The path must be absolute with a matching extension; an existing file is replaced only with overwrite=true. Errors: no flat pattern -> ENTITY_NOT_FOUND (create it with sheet_metal_create_flat_pattern).
Returns {"files": [{"path", "size_bytes"}], "format", "scope": component}.
Example: sheet_metal_export_flat_pattern(path="C:/out/bracket.dxf")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute file path, .dxf or .step/.stp; the folder must exist | |
| units | No | Unit of plain-number lengths (default mm) | mm |
| format | No | dxf or step; default from the extension | |
| component | No | Component or occurrence ref; default: the root component | |
| overwrite | No | Replace an existing file (deleted before the export) | |
| bend_lines | No | DXF: export bend (center) lines | |
| file_units | No | DXF file units (default mm) | mm |
| extent_lines | No | DXF: export extent lines | |
| polyline_tolerance | No | DXF: polyline tolerance in `units` (default 0.1) | |
| splines_to_polylines | No | DXF: convert splines to polylines |