# (nentsel \[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="230"></a> ## (nentsel \[prompt\]) --- Ask the user to select an entity. --- This function works just like [entsel](%28entsel%20-prompt-%29.md), except **nentsel** lets you to pick an entity and return its name, even when the entity belongs to a block or a polyline. The *prompt* argument is an optional prompt you can present to the user. **Example** | Code | Returns | | --- | --- | | (setq n (**nentsel** "Select a polyline: ")) *\[pick entity\]* | Select a polyline: (\<Entity name: 890158\> (5.0 5.0 0.0)) | **Tell me about...** [(initget \[bits\] \[string\])](%28initget%20-bits-%20-string-%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/%28nentsel%20-prompt-%29.md)