add_section_view
Creates a section view in the active drawing by cutting an existing view along a straight line defined by two points, then places and labels the new view.
Instructions
Add a section view to the active drawing by cutting an existing view along a straight line. (x1, y1) and (x2, y2) are two points on the cutting line in view coordinates (mm on the model, from the model origin as seen in that view; see list_drawing_views); the cut runs the whole line, right across the view. A horizontal line puts the section below the view, a vertical one beside it, unless x_sheet / y_sheet (sheet mm) say otherwise; a default place that is taken or off the sheet moves to the nearest free place (along the alignment first, else anywhere, breaking the alignment). Returns the new view's name and label.
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": {
"view": "<view>",
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "add_section_view"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | First point on the cutting line, x (view coordinates, in unit, mm by default) | |
| x2 | Yes | Second point on the cutting line, x | |
| y1 | Yes | First point on the cutting line, y | |
| y2 | Yes | Second point on the cutting line, y | |
| unit | No | Unit of the length inputs: mm (the default, whatever set_units says), cm, m, inch or ft. Results are in mm | |
| view | Yes | Name of the view to cut | |
| label | No | Section letter (default: next free letter) | |
| x_sheet | No | Centre of the new view on the sheet, from the left edge (in unit, mm by default) | |
| y_sheet | No | Centre of the new view on the sheet, from the bottom edge (in unit, mm by default) |