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.
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. |