Selection sets are groups of one or more objects (entities). You can interactively add objects to, or remove objects from, selection sets with AutoLISP routines.
ssget function to return a selection set containing all the objects in a drawing.
The following example uses the_$ (ssget "X")
<Selection set: 1>