命令行背景与文字颜色互相切换
颜色列表参照上面说的那个贴子
 - (defun c:color_qiehuan( / col dis )
- (setq col (if textwintoggle:flag 65280 0)
- dis (vla-get-display (vla-get-preferences (vlax-get-acad-object)))
- textwintoggle:flag (not textwintoggle:flag)
- )
- (vla-put-textwinbackgrndcolor dis col)
- (vla-put-textwintextcolor dis (- 65280 col))
- (princ)
- )
|