对象闪烁方法应很多
1. 剎掉再undo(entdel切换执行)
(defun C:TT (/ SS N ENT)
(setq SS (ssget))
(while t
(setq N 0)
(repeat (sslength SS)
(entdel (ssname SS N))
(setq N (1+ N))
)
(command "DELAY" 500)
)
)
2. visible属性切换
(vl-load-com)
(defun C:TT1 (/ SS N ENT)
(setq SS (ssget))
(while t
(setq N 0)
(repeat (sslength SS)
(if (= (vla-get-visible
(setq ENT (vlax-ename->vla-object (ssname SS N)))
)
:vlax-true
)
(vla-put-visible ENT :vlax-false)
(vla-put-visible ENT :vlax-true)
)
(setq N (1+ N))
)
(command "DELAY" 500)
)
)