Fit Drawing to Page
fit_pageAuto-fits a drawing to a sheet, recentering views so the part and its dimensions stay within the printable border. 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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"page": "<page>"
},
"name": "fit_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| margin | No | ||
| workspace | No | Run this call in this named workspace |