acad_add_viewport
Add a viewport to an AutoCAD layout with specified paper placement, size, scale, and model center to set up sheet views.
Instructions
Add a viewport to a layout. center_in and width/height are paper inches on the sheet. scale_factor = drawing units per paper inch (48 = 1/4 in = 1 ft). model_center = the drawing point to show.
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": {
"layout": "<layout>",
"center_in": "<center_in>",
"width_in": "<width_in>",
"height_in": "<height_in>",
"scale_factor": "<scale_factor>",
"model_center": "<model_center>"
},
"name": "acad_add_viewport"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layout | Yes | ||
| width_in | Yes | ||
| center_in | Yes | ||
| height_in | Yes | ||
| model_center | Yes | ||
| scale_factor | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||