Restore Named View
view_named_restoreRestore a saved named view by adjusting the active viewport's zoom to the saved window, matching AutoCAD's -VIEW _R command.
Instructions
Live: zooms the active viewport to the saved window the way -VIEW _R
does — VIEWCTR becomes the saved centre and VIEWSIZE the saved height
(or width / display aspect when the window is wider than the display);
applied: "zoom_window" plus the read-back viewctr / viewsize.
Headless there is no display: the saved window is fitted into the
*Active VPORT — the view AutoCAD opens the file on — whose aspect ratio
is left as the file carries it (AutoCAD reconciles a changed aspect by the
viewport's lower-left corner, which shifts the centre); the result says
applied: "header_only" with the written vport_height and the kept
aspect_ratio, the same reported-no-op rule as view_zoom_extents.
Refusal: an unknown name (lists the saved views). Pack: settings · lean:
no.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A name from view_named_list |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||