Could also do polyline as a wildcard, *, should get LW and 3D polylines
(setq MySS (ssget "X" (list '(0 . "*POLYLINE,CIRCLE,ARC,RECTANGLE") (cons 8 layer_name))))
(tip for the OP, type this in the command line and it will return the entity description, select the type you want and copy the entity type as required:
(Entget(Car(Entsel "Select Object")))
)