@rpajounia wrote:
....
(defun DoubleCircle ( p1 p2 / Circle1 Circle2 ....
....
;; Create circles
(setq Circle1 (_circl p1))
(setq Circle2 (_circl p2))
;; Get the center points and radii of the circles
....
And another thing.... Does that routine really work?
The p1 and p2 arguments would presumably be points, though we can't tell [nor can we try it out] without seeing the definition of the (_circl) function. It uses only one argument, so it's hard to imagine how it can draw a Circle -- it would need at least two, for center and radius. Does (_circl) ask for the one that is not supplied as an argument, requesting User input?
The p1 and p2 variables presumably must be different from each other, but what you're drawing needs their centers to be at the same place, so it seems p1 and p2 cannot be their center points. Are p1 and p2 their radii instead, the one thing about them that differs? But there's nothing to establish their common center point. If that's left to User input having (_circl) ask for the center, it's asking unnecessarily for the center for each of them, when it should be re-using the first center for the second Circle.
And there should be no "Get the center points and radii" [part of line 7 above] -- the centers are the same for both anyway, and they and the radii must already be known by then, either as p1 and p2 or as requested from the User in the (_circl) function.
Kent Cooper, AIA