Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello there
scratching my head, the following simple routine to get the colorobject table has always worked without any problem on versions 2013, 2015 and 2017 but in version 2019 it returns an error
;; get the colorobject table depending on ACAD version
;;
(defun getcolorobject ()
(vla-getinterfaceobject
(vlax-get-acad-object)
(strcat "AutoCAD.AcCmColor." (substr (getvar "acadver") 1 2))
)
)
in previous versions I get <VLA-OBJECT IAcadAcCmColor 000000004160f250> back but 2019 gives me
error: Automation Error. Problem in loading application
any idea where to look for, maybe I used it wrong for all the time
Thanks in advance
Patrick
Solved! Go to Solution.