# (ssgetfirst)
[GstarCAD 2011](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md)
<a id="274"></a>
## (ssgetfirst)
---
Determine which entities are highlighted and/or gripped.
---
This function reports the number of entities in the drawing that are highlighted (selected) and gripped. Grips are the small squares that surround a selected entity that you can use to manipulate or modify the entity.
The **ssgetfirst** function returns a list with two elements: the first element is a selection set of entities that are gripped but not selected; the second element is a selection set of entities that are gripped and selected.
**Example**
| Code | Comments |
| --- | --- |
| - (**ssgetfirst**) | Displays a list of highlighted and gripped entities. |
**Tell me about...**
[(ssdel entity-name selection-set)](%28ssdel%20entity-name%20selection-set%29.md)
[(ssget \[mode\] \[point1 \[point2\]\] \[point-list\] \[filter-list\])](%28ssget%20-mode-%20-point1%20-point2-%20-point-list-%20-filter-list-%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 2012](../../../../2012/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28ssgetfirst%29.md)