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.
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": {
"sheet": "<sheet>",
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>",
"scale": "<scale>",
"center_x": "<center_x>",
"center_y": "<center_y>"
},
"name": "add_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 |