Select by Window
selection_windowSelect AutoCAD entities within a rectangular boundary using window or crossing modes. Provide two opposite corners to filter by layer or DXF type, capturing entities wholly inside or straddling the edge.
Instructions
AutoCAD's ssget window/crossing selection.
Corners may be given in any order. Selection is by drawn position, so an
entity in a mirrored frame is found where entity_get reports it. A
zero-area box is refused rather than answered with an empty list.
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": {
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "selection_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | First corner X. | |
| x2 | Yes | Opposite corner X. | |
| y1 | Yes | First corner Y. | |
| y2 | Yes | Opposite corner Y. | |
| mode | No | window = wholly inside only; crossing = also entities straddling the edge. | window |
| layer | No | Restrict to a layer. Empty means any. | |
| entity_type | No | Restrict to a DXF type, e.g. CIRCLE. Empty means any. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||