如何得到CAD屏幕背景色?
请帮忙 工具-选项-显示-颜色 在ARX中如何获得CAD屏幕背景色的颜色索引值 7. (vl-load-com)(defun c:chgsc(/ col DISPLAY)
(setq DISPLAY (vla-get-display
(vla-get-preferences
(vla-get-application (vlax-get-acad-object))
)
)
)
(if (= (getenv "Background") "0") (setq col 255) (setq col 0))
(vla-put-graphicswinlayoutbackgrndcolor DISPLAY (vlax-make-variant
(+ col (* col 256)(* col 65536))
vlax-vblong
))
(vla-put-graphicswinmodelbackgrndcolor DISPLAY (vlax-make-variant
(+ col (* col 256)(* col 65536))
vlax-vblong
))
(princ)
)
页:
[1]