Message 1 of 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to find all circles of a particular diameter then add an additional circle of a particular diameter to the center of each circle. How do I go about this? Using the code below for selecting all circles.
(defun c:CSC (/ cEnt ssgrip)
(setq tol 0.05) ; <<-- Tolerance
(if (setq cEnt (car (entsel "\nSelect Circle: ")))
(progn
(setq rad (cdr (assoc 40 (entget cEnt))))
(sssetfirst nil
(ssget "_X"
(list '(0 . "CIRCLE")
'(-4 . ">=")
(cons 40 (- rad tol))
'(-4 . "<=")
(cons 40 (+ rad tol)))))
(alert (strcat "Radius = " (rtos rad 2 2))))
(princ "\n<!> Nothing Selected <!>"))
(princ))
Solved! Go to Solution.