Create Viewport
viewport_createPlace a scaled model-space viewport on a paper layout, specifying center, dimensions, and scale.
Instructions
Place a scaled model-space viewport on a paper-space layout.
The viewport window shows the model region centered at (view_center_x, view_center_y); view height = height / scale.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Paper:model scale (1.0 = 1:1, 0.5 = 1:2, 2.0 = 2:1). | |
| width | Yes | Viewport width in paper units. | |
| height | Yes | Viewport height in paper units. | |
| layout | Yes | Paper-space layout that receives the viewport. | |
| center_x | Yes | Viewport center X in paper units. | |
| center_y | Yes | Viewport center Y in paper units. | |
| view_center_x | Yes | Model-space X the viewport looks at. | |
| view_center_y | Yes | Model-space Y the viewport looks at. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||