Ask Operator: Select
user_selectPrompts an AutoCAD operator to pick entities and returns their handles; supports single selection with WCS point or multiple selection, reporting cancellations, empty picks, and timeouts.
Instructions
Returns handles the operator picked — one with mode="single" (plus
the picked point [x, y] in WCS — AutoCAD reports it in the current
UCS and the tool translates, so a UCS made current by ucs_set never
shifts it), any number with mode="multiple" (Enter with nothing
selected is count: 0, not a cancel). ESC → cancelled: true; a wait
longer than COM_CALL_TIMEOUT → timed_out: true. Refusals: a mode
outside the two, an empty prompt; headless, capability: "interactive_prompt". Pack: settings · lean: no.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | single (GetEntity) | multiple (SelectOnScreen) | single |
| prompt | Yes | Shown on the command line |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||