@Jgmargarito26 wrote:
WHEN I MEANT MULTIPLE I MEAN JUST 2 CIRCLES.
Well, you can do this, to have it keep asking until you pick two and only two Circles:
(defun C:C2CD (/ ss); = Circle-{to}-Circle Distance
(prompt "\nFor the distance betwen two Circle centers,")
(while
(not
(and
(setq ss (ssget '((0 . "CIRCLE"))))
(= (sslength ss) 2)
); and
); not
(prompt "\nMust select 2 and only 2 Circles.")
); while
(prompt
(strcat
"\nDistance between Circle centers is "
(rtos ; [in current Units mode/precision settings]
(distance
(cdr (assoc 10 (entget (ssname ss 0))))
(cdr (assoc 10 (entget (ssname ss 1))))
); distance
); rtos
"."
); strcat
); prompt
(princ)
); defun
But that seems a disadvantage to me, in terms of selection steps. Not only do you still need at least two picks or a pick-and-hold-and-release to make the selection, but you also need to Enter to complete the selection. For me, I'd rather use just two picks as in my first suggestion.
Kent Cooper, AIA