# (sslength selection-set)
[GstarCAD 2011](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md)
<a id="275"></a>
## (sslength selection-set)
---
Determine how many entities are in the selection set.
---
This function reports the number of entities in the selection set, *selection-set*.
**NOTE** Use the [ssget](%28ssget%20-mode-%20-point1%20-point2-%20-point-list-%20-filter-list-%29.md) function to create the *selection-set*.
**Example**
| Code | Comments |
| --- | --- |
| (setq sset1 (ssadd)) | Creates a new selection set called sset1. |
| (setq ent1 (car (entsel))) | Prompts user to select entity to set to ent1. |
| (ssadd ent1 sset1) | Adds ent1 to sset1. |
| (**sslength** sset1) | Returns 1\. |
**Tell me about...**
[(setq symbol1 statement1 \[symbol2 statement2\] ...)](%28setq%20symbol1%20statement1%20-symbol2%20statement2-%20...%29.md)
[(ssdel entity-name selection-set)](%28ssdel%20entity-name%20selection-set%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/%28sslength%20selection-set%29.md)