(defun check-obj(/ ent) (setq pt1 '(0.0 0.0 0.0)) (setq ent (nentselp pt1)) (while ent (setq pt2 (+ 16.0 (car pt1))) (setq pt1 (reverse (cdr pt1))) (setq pt1 (reverse (append pt1 (list pt2)))) (setq ent (nentselp pt1)) ) ;put what you want to do here (princ) ) I'm A2K4. This will search until nothing is at pt1, and return the point pt1. The first one I posted would search until it found something, so if it never found anything then you would have to escape out of it. Didn't understand at first. Hope this works for you. Tim