Sheet Flat Export
sheet_flat_exportExport a sheet-metal flat pattern as a layered DXF with CUT, BEND_UP and BEND_DOWN layers, so laser, punch and press-brake shops get a ready-to-quote, ready-to-cut file.
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}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"handle": "<handle>",
"path": "<path>"
},
"name": "sheet_flat_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| handle | Yes | ||
| k_factor | No | ||
| workspace | No | Run this call in this named workspace | |
| bend_table | No |