Select by Polygon
selection_polygonSelect AutoCAD entities within a polygonal area using window or crossing mode, with optional layer and entity type filters.
Instructions
Window or crossing selection against a polygon rather than a rectangle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | window = wholly inside only; crossing = touching. | window |
| layer | No | Restrict to a layer. Empty means any. | |
| points | Yes | Polygon vertices as [[x, y], ...]; at least 3. | |
| entity_type | No | Restrict to a DXF type. Empty means any. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||