Entity: Smart Select (semantic predicate)
entity_select_smartSelect AutoCAD entities by semantic predicates (type, layer, location, length, color) to retrieve handles without memorizing IDs.
Instructions
Select entities by semantic predicate instead of memorising handles.
Uncapped. The usual next step is dimension_auto(handles), so fields=["handle"] is normally all this needs to return.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Project to these fields, in this order (e.g. ['handle','type','layer']); 'properties.<key>' reaches one nested value. Omit for the full record; an unknown name errors and lists the valid ones. | |
| compact | No | Return a columnar {fields, rows, count, offset, total, truncated, next_offset} envelope instead of dicts: much cheaper per row, and the only shape that reports truncation. | |
| predicate | Yes | Predicate dict (all keys optional, AND-ed): type (e.g. 'LINE'), layer (name), near ([x,y,radius]), length_range ([min,max], LINE/ARC only), color (ACI int). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |