- (defun c:tt (/ ss i cen rad a ent ename)
- (if (setq ss (ssget '((0 . "circle"))))
- (repeat (setq i (sslength ss))
- (setq ename (ssname ss (setq i (1- i)))
- ent (entget ename)
- cen (cdr (assoc 10 ent))
- rad (cdr (assoc 40 ent))
- a (* rad (sqrt 2.0))
- )
- ;;(entdel ename)
- (entmake (append (list '(0 . "LWPOLYLINE")
- '(100 . "AcDbEntity")
- '(100 . "AcDbPolyline")
- (assoc 8 ent)
- '(90 . 4)
- '(70 . 1)
- )
- (mapcar (function (lambda (pt) (cons 10 pt)))
- (mapcar (function (lambda (x) (polar cen x a )))
- (list (* pi 0.25) (* pi 0.75) (* pi 1.25) (* pi 1.75))
- )
- )
- )
- )
- )
- )
- )
|