create_drawing
Generate a drawing sheet from a saved part or assembly with front, top, side and optional isometric views plus model dimensions, automatic scale, and first- or third-angle projection.
Instructions
Create a drawing of a saved part or assembly: front, top and side views, optionally an isometric view and the model's dimensions. The scale is chosen automatically unless given. end_view picks which end of the model the side view shows; spread (on by default) spaces the views evenly over the sheet. Save it with save_document (a .SLDDRW path keeps the drawing) and export it with export_pdf; list_drawing_views shows what is on the sheet. For a model whose 'up' is +Z give front_direction {x:0, y:-1, z:0} and up {x:0, y:0, z:1}: the other views are projected from the main one, the isometric view gets the same 'up', and the automatic scale fits the views on the sheet. The model file is not changed.
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": {
"projection": "<projection>"
},
"name": "create_drawing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| up | No | The model axis that points up in the main view | |
| scale | No | e.g. '1:2' or '2:1' (default: automatic) | |
| spread | No | Spread the views over the sheet with equal gaps and the largest standard scale that fits (false = packed in a corner) | |
| end_view | No | Which end of the model the projected end view shows (a standard view around the main one, e.g. left or right) | |
| isometric | No | Add an isometric view | |
| dimensions | No | Bring the model's dimensions into the views (off by default: dimensions added later with add_drawing_dimension would appear twice) | |
| model_path | No | The .SLDPRT / .SLDASM file to draw (default: the active document, which must be saved) | |
| projection | Yes | first = ISO / Europe, third = ANSI / US | |
| sheet_size | No | Sheet size, landscape | A3 |
| front_direction | No | Where the camera of the main view is, seen from the model, along a model axis |