Select by Window
selection_windowSelect AutoCAD entities within a rectangular area using window or crossing mode, optionally filtering by layer and entity type.
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.
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 | |||