Hello all.
I have a LISP routine that I wrote years ago that I am having an issue with in ACAD 2014.
The routine loads but when I try to run it I get an error stating "Automation Error: Problem in loading Application"
I have narrowed it down to this line of code where it is blowing up:
(setq colorObj (vla-getinterfaceobject (vlax-get-acad-object) "AutoCAD.AcCmColor.18"))
My belief is that is has something to do with the vla-getinterfaceobject function but I cant find a way around it.
Does anyone have any ideas for me?
Thanks in advance.
Solved! Go to Solution.
Solved by hmsilva. Go to Solution.
create acad.lsp or acadoc.lsp if not exist then add this code line in there
(setvar "TRUSTEDPATHS" (strcat (getvar "TRUSTEDPATHS") ";C:\\Test\\MyFolder1;C:\\Test\\MyFolder2;C:\\Test\\MyFolderEtc")))
Darinp,
In my registry I find "AutoCAD.AcCmColor.17" "AutoCAD.AcCmColor.18" and "AutoCAD.AcCmColor.19"
On my computer while running Acad 2007 the line works if I change the definition to "AutoCAD.AcCmColor.17"
While running Acad 2012 the line works with the definition "AutoCAD.AcCmColor.18" but not with "AutoCAD.AcCmColor.17" or "AutoCAD.AcCmColor.19"
It seems to me it is related to your apparent update.
and I would suggest you to check which definitions you have available...
Try
(vla-GetInterfaceObject (vlax-get-acad-object) (strcat "AutoCAD.AcCmColor." (substr (getvar 'ACADVER) 1 2)) )
HTH
Henrique