ssget
(ssget [mode] [point [point]] [filter])
Selection set, or nil if it is empty. Without a mode, the user selects (with ":S", only once). Modes: "X" or "A" (the whole drawing), "I" (what was selected before the routine), "P" (the previous one of ssget), "L" (the last entity), "W" and "C" with two points (window and crossing) or a single point. The filter is a list of DXF pairs, with wildcards in strings and the -4 operators ("<AND", "<OR", "<XOR", "<NOT", "<", ">=", "*"…).
(ssget "X" '((0 . "CIRCLE") (8 . "AXES"))) (ssget '((0 . "LINE,LWPOLYLINE")))