# (entsel \[prompt\])
[GstarCAD 2012](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md)
<a id="163"></a>
## (entsel \[prompt\])
---
Ask the user to select an entity.
---
The **entsel** function selects a single entity using a point-click, and then returns a list containing the entity name and the coordinates of the point used to select it. Any prior entity snap settings have no effect unless specifically requested during the function.
If a *prompt* is supplied, the user will be asked to select the entity with the wording of that prompt. If no *prompt* is supplied, the default prompt "Select Entity:" is displayed.
### Examples
| Code | Returns |
| --- | --- |
| (**entsel**) \[pick an entity\] | Select entity: (\<Entity name: 1ff0548\> (5.0 5.0 0.0)) |
| (setq b (**entsel** "Select an line:")) \[pick a line\] | Select an entity: (\<Entity name: 1ff0564\> (1.0 2.0 3.0)) |
**NOTE** The function **entsel** works only with top-level entities. To select entities that belong to a block or a polyline, use [nentsel](%28nentsel%20-prompt-%29.md)**.**
**Tell me about...**
[(entdel entity-name)](IDR_LISP_B157.md)
[(entget entity-name \[application-list\])](%28entget%20entity-name%20-application-list-%29.md)
[(entlast)](%28entlast%29.md)
[(entmake \[entity-list\])](%28entmake%20-entity-list-%29.md)
[(entmod entity-list)](%28entmod%20entity-list%29.md)
[(entupd entity-name)](%28entupd%20entity-name%29.md)
[(nentselp \[prompt\] \[point\])](%28nentselp%20-prompt-%20-point-%29.md)
[(setq symbol1 statement1 \[symbol2 statement2\] ...)](%28setq%20symbol1%20statement1%20-symbol2%20statement2-%20...%29.md)
[LISP Compatibility](../LISP%20Compatibility.md)
[Programming Overview of LISP (LISt Processing) Language](../Programming%20Overview%20of%20LISP%20%28LISt%20Processing%29%20Language.md)
<a id="holding"></a>
## Other versions with matching text
[GstarCAD 2011](../../../../2011/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28entsel%20-prompt-%29.md)