- (defun laychanged (vlrobj lst)
- (if (= "CLAYER" (strcase (car lst)))
- (setvar "modemacro"
- (strcat "\n当前图层<" (getvar "CLAYER") ">")
- )
- )
- (princ)
- )
- (or *vlrLayer*
- (progn
- (setq *vlrLayer*
- (vlr-sysvar-reactor
- nil
- '((:vlr-sysVarChanged . laychanged))
- )
- )
- (setvar "modemacro"
- (strcat "\n当前图层<" (getvar "CLAYER") ">")
- )
- )
- )
|