 - (defun c:tt ()
- (defun dxf (code e) (cdr (assoc code (entget e))))
- (defun subupd (e c v)
- (entmod (subst (cons c v) (assoc c (entget e)) (entget e)))
- (entupd e)
- )
- (while (and (setq ss (ssget '((0 . "circle"))))
- (= (sslength ss) 2)
- )
- (setq s1 (ssname ss 0)
- s2 (ssname ss 1)
- p1 (dxf 10 s1)
- r1 (dxf 40 s1)
- p2 (dxf 10 s2)
- r2 (dxf 40 s2)
- )
- (if (> r2 r1)
- (setq pt (polar p2 (angle p2 p1) r2)
- p1 (polar pt (angle p1 p2) (+ r1 2))
- s1 (subupd s1 10 p1)
- )
- (setq pt (polar p1 (angle p1 p2) r1)
- p2 (polar pt (angle p2 p1) (+ r2 2))
- s2 (subupd s2 10 p2)
- )
- )
- )
- (princ)
- )
|