Create a drawing
onshape_create_drawingCreates a drawing from a versioned part, Part Studio, or assembly; pass the source version ID to ensure the referenced CAD geometry is fixed.
Instructions
Create a drawing of a part, Part Studio or assembly. The source must be referenced by version — call onshape_create_version first and pass its id as src_version.
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>",
"name": "<name>",
"src_elem": "<src_elem>",
"src_version": "<src_version>"
},
"name": "onshape_create_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>. | |
| name | Yes | Drawing name. | |
| part | No | Part id, to draw a single part. | |
| src_doc | No | Source document id (defaults to the target document). | |
| src_elem | Yes | Element id being drawn. | |
| src_version | Yes | Version id of the source element. |