Author Topic: The ActiveX server returned an error:Error loading type library DLL  (Read 8270 times)

mclisp

  • Member
  • *
  • Posts: 33
    • http://www.mcpsteel.com
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
« Last Edit: November 23, 2013, 11:25:18 AM by mclisp »

Fred Tomke

  • OpenDCL Technician
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2048
  • [ Mr. Bad Guy ]
    • Kommunale Entwicklungsplanung auf digitaler Basis - digital landscape and urban design
Re: The ActiveX server returned an error:Error loading type library DLL
« Reply #1 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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 2980
    • Outside The Box
Re: The ActiveX server returned an error:Error loading type library DLL
« Reply #2 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.

mclisp

  • Member
  • *
  • Posts: 33
    • http://www.mcpsteel.com
Re: The ActiveX server returned an error:Error loading type library DLL
« Reply #3 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

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 2980
    • Outside The Box
Re: The ActiveX server returned an error:Error loading type library DLL
« Reply #4 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.

Fred Tomke

  • OpenDCL Technician
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2048
  • [ Mr. Bad Guy ]
    • Kommunale Entwicklungsplanung auf digitaler Basis - digital landscape and urban design
Re: The ActiveX server returned an error:Error loading type library DLL
« Reply #5 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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

mclisp

  • Member
  • *
  • Posts: 33
    • http://www.mcpsteel.com
Re: The ActiveX server returned an error:Error loading type library DLL
« Reply #6 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

mclisp

  • Member
  • *
  • Posts: 33
    • http://www.mcpsteel.com
Re: The ActiveX server returned an error:Error loading type library DLL
« Reply #7 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