fit_page
Recentres drawing views so the part and its dimensions fit inside the printable border, clear of the title block. Call after placing dimensions to slide everything inside.
Instructions
Auto-fit a drawing to its sheet: recentre the views so the part AND its
placed dimensions sit inside the printable border (clear of the title block).
The projection group's Automatic scale already sizes the part; its dimensions
extend a fixed margin beyond it which can run off an edge — call this after
placing dimensions to slide everything inside. margin mm is the border inset.
Returns {scale, fits, envelope, border}; fits=False means the part + dims are too
large even when centred (use a larger sheet).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| margin | No |