源码不能乱发
(defun C:YC (/ E LA N S SS m)
(setq s (ssget ":S" nil))
(if s
(while s
(repeat (setq m (sslength s))
(setq e (ssname s (setq m (1- m))))
(setq la (assoc 8 (entget e)))
(setq ss (ssget "X" (list la)))
(repeat (setq n (sslength ss))
(redraw (ssname ss (setq n (1- n))) 2)
)
)
(setq s (ssget ":S" nil))
)
((if command-s command-s vl-cmdf) "_.REGEN")
)
(princ)
)