 - (defun c:bj (/ DISPLAY)
- (princ "\n模型背景色黑色与灰色切换")
- (setq
- DISPLAY (vla-get-display (vla-get-preferences (vla-get-application (vlax-get-acad-object))))
- )
- (if (= (getenv "Background") "0")
- (vla-put-GraphicsWinModelBackgrndColor DISPLAY 8421504)
- (vla-put-GraphicsWinModelBackgrndColor DISPLAY 0)
- )
- (prin1)
- )
|