The ActiveX
backgroundcolor property requires the colour to be configured through the use of the AcCmColor object (similar to configuring the
truecolor property for an object).
In my opinion, the easiest way to do this through ActiveX (without the need to create a version-dependent colour object) is to use the colour object returned when querying the current colour for the property, e.g.:
(defun c:test
( / col ent obj
) )
(setq col
(vla
-get
-backgroundcolor obj
)) (vla-put-colorindex col 2)
(vla-put-backgroundcolor obj col)
)
)
)