viewport_lock
Locks or unlocks a paper-space viewport by handle to prevent accidental zoom or pan changes, returning the verified lock state.
Instructions
Set or clear DisplayLocked for a paper-space viewport by handle and return the verified lock state.
Side-effects: Sets DisplayLocked property on viewport. Disambiguation: Lock viewports to prevent accidental zoom changes during drafting.
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 | Persistent CAD handle of the viewport entity | |
| locked | No | True to lock viewport display scale against zoom/pan, False to unlock (default: True) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||