sheet_flat_export
Export sheet metal flat patterns to layered DXF files for laser, punch, or press-brake fabrication. Write CUT and bend layers directly for shop-ready quoting and cutting.
Instructions
Write the flat pattern as a LAYERED DXF — the file a laser, punch or press-brake shop actually quotes and cuts from. This is the deliverable the whole sheet-metal family exists to produce.
Three layers, because a flat pattern without them is not a shop deliverable:
CUT carries the closed outer profile and every hole; BEND_UP and BEND_DOWN carry
one centreline per bend, so the operator reads the fold direction off the print
rather than inferring it. DXF R12 ASCII in millimetres, written directly rather
than through TechDraw — a flat pattern is not a drawing view and does not want a
sheet frame, a scale or a title block around it. path must end in .dxf.
Takes the same k_factor / bend_table arguments as sheet_unfold, since the outline it writes IS the development.
Returns {ok, path, size, layers, entities, flat_size, blank_area_mm2, bends (with bend_allowance_mm, bend_deduction_mm, k_factor and k_source per bend), fidelity, band_pct, warnings}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| handle | Yes | ||
| k_factor | No | ||
| bend_table | No |