drawing export
auto_drawing_exportExport the bound drawing to a DWG or DXF file without modifying or redrawing it. Writes DXF directly and DWG using the configured version if a converter or live AutoCAD seat is available.
Instructions
Write the drawing the backend is bound to out as a DWG or a DXF.
The one way to get the open drawing as a file of its own -- after a sheet build, say -- without touching it: nothing is drawn and the bound drawing is only read.
The format is fmt or path's suffix. dxf is always written;
dwg is written through drawing_export_dwg with version (the
profile's export.dwg_version when left blank), which headless needs the
ODA File Converter and returns a typed refusal (dwg_write) without one,
while a live seat writes DWG natively.
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": {
"path": "<path>"
},
"name": "auto_drawing_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fmt | No | ||
| path | Yes | ||
| version | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||