(vla-put-ModelCrosshairColor
DISPLAY
(vlax-make-variant
(defun c:test (/ col colc DISPLAY)
(setq DISPLAY (vla-get-display
(vla-get-preferences
(vla-get-application (vlax-get-acad-object))
)
)
)
(if (= (getenv "Background") "0")
(setq col 255
colc 0
)
(setq col0
colc 255
)
)
(vla-put-graphicswinmodelbackgrndcolor
DISPLAY
(vlax-make-variant
(+ col (* col 256) (* col 65536))
vlax-vblong
)
)
(vla-put-ModelCrosshairColor
DISPLAY
(vlax-make-variant
(+ colc (* colc 256) (* colc 65536))
vlax-vblong
)
)
(princ)
)
页:
1
[2]