More info.....
;;; **** Replace function in VLX for compatability with 2010+
(defun ZF_GET-ACADCOLOR ()
(VL-LOAD-COM)
(setq ZF_ACADCOLOR
(vla-GetInterfaceObject
(ZF_GET-ACAD-OBJECT)
(strcat "AutoCAD.AcCmColor."
(itoa (ATOI (GETVAR "ACADVER")))
)
)
)
)
;;; This is the original in the FAS, which is not usable(to us) code but shows where it's defined
;;; the above is set to overwrite this, providing this is not loaded afterwards
(defun ZF_GET-ACADCOLOR ()
(cond ZF_ACADCOLOR (
(cond T (
normal cond
nil
(VL-LOAD-COM )
(cond (= (ATOI (GETVAR "ACADVER")) 16) (
(cond (= (ATOI (GETVAR "ACADVER")) 17) (
(cond T (
normal cond
nil
(setq *ZF_LASTERROR "Incompatible AutoCAD Version")
normal cond
(EXIT )
normal cond
"AutoCAD.AcCmColor.17"
(setq ZF_ACADCOLOR (vla-GetInterfaceObject (ZF_GET-ACAD-OBJECT ) "AutoCAD.AcCmColor.16"))
normal cond