OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: mclisp on November 23, 2013, 09:42:50 AM

Title: The ActiveX server returned an error:Error loading type library DLL
Post by: mclisp on November 23, 2013, 09:42:50 AM
hello to all
I have many Lisp macros work correctly with Autocad 2008 32bit Prosteel.
Now I have installed Autocad 2014 Prosteel 64-bit, some macro gives me an error ..... The activeX server,
As an example, the routine works correctly, creates the shape, the error is only one message at a command line autocad

I return this error:
LOG #<VLA-OBJECT IKs_ComCreateShape 0000000007cfe7f0>
<Entity>The ActiveX server returned an error:Error loading type library DLL
<ObjectID>TheActiveX serverreturned an error:Error loading type library DLL
<ObjectId32> 0

(vl-load-com);ok
(setq acadapp (vlax-get-acad-object));is ok
(setq KsShape (vla-getinterfaceobject acadapp "PSCOMWRAPPER.Ks_ComCreateShape" ))<-error
(vlax-invoke KsShape "SetInsertPoints" #z1 #z2);is ok
(vlax-invoke KsShape "Create");is ok create shape


you have any suggestions
thanks
Title: Re: The ActiveX server returned an error:Error loading type library DLL
Post by: Fred Tomke on November 23, 2013, 12:10:30 PM
Hi, this is not OpenDCL-related, am I right?
I have heared about similar problems at other computers when trying to create a dictionary using AddObject
Code (autolisp) Select
(setq oVarsDic (vla-addobject oDic strName "AcDbDictionary"))
or trying to get an instance of AutoCAD-truecolor object using
Code (autolisp) Select
(setq strRel (strcat "AutoCAD.AcCmColor." (substr (getvar "ACADVER") 1 2)
(setq oColor (vlax-invoke-method (vlax-get-acad-object) 'GetInterfaceObject strRel))

Because it worked in the past and it still work on many other workstations, the AutoCAD-installation was declared as invalid on the workstation where the error occurs.

Make sure that antivirus is not running during installation. And sometimes make sure that the first start of AutoCAD on a workstation is done as Administator.

Regards, Fred
Title: Re: The ActiveX server returned an error:Error loading type library DLL
Post by: owenwengerd on November 23, 2013, 01:36:19 PM
As Fred said, it doesn't look like this is related to OpenDCL. Most likely reason for the error is that you haven't registered the 64-bit COM object that you're trying to create. Note that the 32-bit COM object will not load into the 64-bit AutoCAD process.
Title: Re: The ActiveX server returned an error:Error loading type library DLL
Post by: mclisp on November 24, 2013, 12:22:46 AM
Thank you for your reply,
Have patience I'm a beginner.
I confirm that this error is not OpenDCL.
I think I understand that the error is due to a lack of registration of COM objects.
These COM objects are part of an application for Autocad.
Together with COM.ARX file there are two files called
Register.Com.ARX and Register.Com32.ARX and I tried to load these files but do not load and give me error

acrxGetApiVersion not found in c:\..........\register.com.arx.
Make sure the app links with rxapi.lib and export the symbol.AcRxDynamicLinker failed to load 'c:\.........\register._com.arx'
C:\.......\acad.exe Unable to load Register.Com.arx file.

I guess these files are used to record them the COM.
How do you use?
Do you have any advice
Thanks again
Title: Re: The ActiveX server returned an error:Error loading type library DLL
Post by: owenwengerd on November 24, 2013, 08:32:56 AM
Maybe those files are designed for use by regsvr32.exe. You should ask the author or check the documentation; there is really no way for us to know.
Title: Re: The ActiveX server returned an error:Error loading type library DLL
Post by: Fred Tomke on November 24, 2013, 11:13:19 PM
Hm, give it a try to start AutoCAD as Administrator (right click > Admin privileges), because regsvr32 only can be run as Admin. Only just to try.
Regards, Fred
Title: Re: The ActiveX server returned an error:Error loading type library DLL
Post by: mclisp on November 25, 2013, 12:34:35 AM
Thanks to all for the two responses
I've tried everything, but it does not work.
I understand that it is difficult, now I try to write to the author.
I will let you know
thanks
Title: Re: The ActiveX server returned an error:Error loading type library DLL
Post by: mclisp on November 30, 2013, 06:58:00 AM
Hello
This was a problem with the path to the safety of Autocad 2014, reading the guide indicated to use the variable TRUSTEDPATHS, I do not recommend it, here I made a big fuss.
To operate Autocad I reinstalled.
I recommend you put these path in Tools-> Options-> Trusted Locations.
Thanks