add_viewport
Add a viewport to a sheet by specifying a rectangle and scale, centered on a model point. Get the measured scale back for verification.
Instructions
Put a window onto the model on a sheet: rectangle (x1,y1)-(x2,y2) in SHEET mm, at 1:scale, centred on model point (center_x,center_y). Returns the scale MEASURED back off the viewport.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| scale | Yes | ||
| sheet | Yes | ||
| locked | No | ||
| center_x | Yes | ||
| center_y | Yes | ||
| plot_border | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |