 - (defun c:tt ()
- (mapcar 'set
- '(x0 y0 i nx ny dx dy co)
- '(0 0 0 50 50 15 15 0)
- )
- (while (<= i (* ny nx))
- (setq i (1+ i)
- co (+ 1 co)
- i_oth (rem i ny)
- )
- (if (= co 255)
- (setq co 1)
- )
- (if (= i_oth 1)
- (setq y0 (+ y0 dx)
- x0 0
- )
- (setq x0 (+ x0 dy))
- )
- (setvar 'cecolor (itoa co))
- (command "donut" 0 14 (list y0 x0) "")
- (if (= (rem i 50) 0)
- (vla-Update (vlax-ename->vla-object (entlast)))
- )
- (if (and (> i ny) (= (rem i ny) 1))
- (command "zoom" "e")
- )
- )
- (princ)
- )
|