Create a drawing
onshape_create_drawingCreate a drawing of a part, Part Studio, or assembly in Onshape by providing the source element and its version id.
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. |