- (defun c:tt ()
- (setq i 0)
- (if (setq ss (ssget '((0 . "text"))))
- (repeat (sslength ss)
- (setq s1 (ssname ss i)
- i (1+ i)
- ptn (textbox (entget s1))
- p10 (cdr (assoc 10 (entget s1)))
- p1 (car ptn)
- p2 (cadr ptn)
- p1 (mapcar '(lambda (x y) (+ x y)) p1 p10)
- p2 (mapcar '(lambda (x y) (+ x y)) p2 p10)
- pc (mapcar '(lambda (x y) (* (+ x y) 0.5)) p1 p2)
- rr (* (distance p1 p2) 0.5)
- )
- (command "circle" "non" pc rr)
- )
- )
- (princ)
- )
|