Create Drawing
create_drawingCreate and activate a new empty SolidWorks drawing document, using a specified .drwdot template or the default, so you can add views next.
Instructions
Create a new, empty drawing document and make it active.
Uses template (a .drwdot) or the default drawing template. Then place views
with create_drawing_view; for a whole drawing from a model in one call, use
generate_drawing_package instead (both in the drawing toolset). Needs: SolidWorks running. Changes: opens a
new drawing document. Returns: drawing with name and template.
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": {
"input_data": "<input_data>"
},
"name": "create_drawing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The drawing. `name` is required but only a label: the reply gives SolidWorks' own name (Draw1, ...); `template` has a default. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||