Export
exportExport KOMPAS-3D documents to STEP, IGES, STL, PDF, DXF, or SVG as a background job that leaves the sources unmodified; poll job status until the export finishes.
Instructions
Export documents to exchange formats as a background JOB (one checkpoint per file): returns the job state after wait_s; poll job_status(job_id) until status is done/partial/failed. Sources are never modified. File names: . in out_dir. STEP/IGES headers carry no local paths or Windows user name. Drawings are exported from their saved file (save first).
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": {
"sources": "<sources>",
"formats": "<formats>",
"out_dir": "<out_dir>"
},
"name": "export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| author | No | author written into STEP/IGES headers (default: none) | |
| verify | No | re-open exported STEP/IGES and compare the volume (±0.1 %) | |
| wait_s | No | wait up to this long before returning | |
| formats | Yes | 3D: step214, step242, iges, stl, png; drawings: pdf, dxf (mm, 1:1), dwg (AutoCAD 2018, mm 1:1, header says inches), svg, png; specifications: pdf, xlsx, ods | |
| out_dir | Yes | existing folder inside the allowed roots | |
| sources | Yes | document handles | |
| overwrite | No | replace existing files (only after the user agreed) | |
| organization | No | organisation for STEP/IGES headers |