Export a drawing
onshape_export_drawingSpecify document, workspace, and element IDs to export a drawing as PDF, DWG, or DXF via translation service.
Instructions
Export a drawing as PDF (or DWG/DXF) through the translation service.
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": {
"doc": "<doc>",
"ws": "<ws>",
"elem": "<elem>"
},
"name": "onshape_export_drawing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ws | Yes | Workspace id — the <ws> segment of the document URL. | |
| doc | Yes | Document id — the <doc> in cad.onshape.com/documents/<doc>/w/<ws>/e/<elem>. | |
| out | No | Output file path (default onshape-drawing-<timestamp>.<format>). | |
| elem | Yes | Element id (tab) — the <elem> segment of the document URL. | |
| format | No | Format name: PDF, DWG, DXF (default PDF). |