fit_viewport
Fits a drawing into a sheet region by measuring content, selecting the largest standard scale, and resizing the viewport to the drawing. Returns the scale and explanation.
Instructions
Fit the model into a region of a sheet: measures what is drawn, picks the largest STANDARD scale that fits, then sizes the viewport to the drawing instead of to the region. Returns the scale it chose and why.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| layer | No | ||
| sheet | Yes | ||
| locked | No | ||
| margin | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |