 - ;;打开亮显
- (defun c:dktx ()
- (if (setq e (car(entsel "\n选择要亮显的图层对象")))
- (progn
- (setq s (ssget "x" (list (assoc 8 (entget e)))))
- (repeat (setq n (sslength s))
- (redraw (ssname s (setq n (1- n))) 3)
- )
- )
- )
- (princ)
- )
- ;;关闭亮显
- (defun c:gbtx ()
- (if (setq e (car(entsel "\n选择要恢复亮显的图层对象")))
- (progn
- (setq s (ssget "x" (list (assoc 8 (entget e)))))
- (repeat (setq n (sslength s))
- (redraw (ssname s (setq n (1- n))) 4)
- )
- )
- )
- (princ)
- )
|