- ;;最好把程序改用ActiveX重写!(if (not *COMMAND-REACTOR*)
- (setq *COMMAND-REACTOR*
- (vlr-command-reactor
- NIL
- '((:vlr-commandwillstart . WCBYL)
- (:vlr-commandended . ECBYL)
- )
- )
- )
- )(defun WCBYL (X1 X)
- (setq OLDLAY (getvar "clayer")
- Y (if (= (getvar "ctab") "Model")
- ""
- (getvar "ctab")
- )
- )
- (if (wcmatch (car X) "DIM*")
- (setvar "clayer" (strcat Y "dim"))
- )
- )(defun ECBYL (X1 X) (setvar "clayer" OLDLAY))
|