Move / scale view
drw_view_editEdit a drawing view's scale, position, rotation, or name in one undoable change while preserving dimension values, and warn when the view extends beyond the sheet.
Instructions
Change a drawing view: scale, position, rotation, name — one Ctrl+Z; dimensions keep their values. Warns when the view then sticks out of the sheet. Check the layout with view_capture.
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>",
"view": "<view>"
},
"name": "drw_view_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | view origin on the sheet, mm | |
| y | No | view origin on the sheet, mm | |
| doc | Yes | Document handle from doc_list/doc_open, e.g. 'doc:12001:0a1b2c3d' | |
| name | No | ||
| view | Yes | view number (inspect_model on the drawing lists them) | |
| angle | No | rotation, degrees counter-clockwise | |
| scale | No | 0.5 = 1:2, 2 = 2:1 (ГОСТ 2.302 scales) |