Lock Viewport
viewport_lockLock or unlock a viewport's display scale in AutoCAD to prevent accidental zoom changes and maintain consistent views.
Instructions
Lock or unlock a viewport's display scale.
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": {
"handle": "<handle>"
},
"name": "viewport_lock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handle | Yes | Viewport entity handle (from viewport_list). | |
| locked | No | True to lock the display scale, False to unlock. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||