The LeeMac article gave me a better understanding of the SS options to grab the entities. Thanks. What I need is to be able to choose the entities with a selection set, choose a predefined polyline as the boundary for these entities (I have a point list) and count the entities within that polyline, even if the polyline and entities share a common vector. This is what I have, I just don't know how to bring them together. Thanks
(defun cdrs (key lst / pair rtn)
(while (setq pair (assoc key lst))
(setq rtn (cons (cdr pair) rtn)
lst (cdr (member pair lst))
)
)
(reverse rtn)
)
(cdrs 10 (entget (car (entsel "\nSelect a polyline: "))))
(setq bdrsel1 (list entlast))
(defun massoc (lst key)
(vl-remove-if-not '(lambda (x) (= (car x) key)) lst)
) ;_ end of defun massoc
(setq sel1 (ssget '((8 . "C-BLOB") (0 . "LWPOLYLINE"))))
(alert (strcat "There are " (itoa (sslength sel1)) " blobs in this selection set."))