Community
AutoCAD LT Forum
Welcome to Autodesk’s AutoCAD LT Forums. Share your knowledge, ask questions, and explore popular AutoCAD LT topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AutoCAD LT 2007 usage via OLE Automation

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
885 Views, 5 Replies

AutoCAD LT 2007 usage via OLE Automation

Hi!

I have installed AutoCAD 2007 LT and I am trying to automate it by means of OLE in MS Visual Basic 6, but it is failing. Creation of the AutoCAD.Application instance fails.

Set m_aaApp = CreateObject("AutoCAD.Application.17")

It hangs during one, two minutes and then returns the error: "Can't create ActiveX object".
During hang I saw AutoCADLT.exe process in "Task Manager".

Also, I had tried to start AutoCAD LT manually and to use GetObject(, "AutoCAD.Application.17") function in VB6 code, but it fails immediately.

All AuotoCAD's TLBs and libraries are installed in "C:\Program Files\Common Files\Autodesk Shared\". acax17enu.tlb is here. acadauto.chm is provided, but it does not work.

I have checked AutoCAD application's settings inside "DCOM Config": they are default. What can cause it?

Thanks for advise!
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Anonymous

LT is not VBA capable like full AutoCAD.

--
Dean Saadallah
Add-on products for LT
http://www.pendean.com/lt
--
Message 3 of 6
Anonymous
in reply to: Anonymous

Thanks.

Yes, it is without VBA, but TLBs and "OLE Automation" guide are installed with AutoCAD LT. For what?
Message 4 of 6
Anonymous
in reply to: Anonymous

Also, "Application" object is being created via "CreateObject" function but hung.
Message 5 of 6
Anonymous
in reply to: Anonymous

For Autodesk use to run LT components.

--
Dean Saadallah
Add-on products for LT
http://www.pendean.com/lt
--
Message 6 of 6
Anonymous
in reply to: Anonymous

Alex,

Maybe you should talk to MS about compliance issues.
The certificate is invalid.

What you are trying to do is blocked by LT.
I think you should keep a log of wasted man years

Regards Gary


wrote in message news:5368690@discussion.autodesk.com...
Hi!

I have installed AutoCAD 2007 LT and I am trying to automate it by means of
OLE in MS Visual Basic 6, but it is failing. Creation of the
AutoCAD.Application instance fails.

Set m_aaApp = CreateObject("AutoCAD.Application.17")

It hangs during one, two minutes and then returns the error: "Can't create
ActiveX object".
During hang I saw AutoCADLT.exe process in "Task Manager".

Also, I had tried to start AutoCAD LT manually and to use GetObject(,
"AutoCAD.Application.17") function in VB6 code, but it fails immediately.

All AuotoCAD's TLBs and libraries are installed in "C:\Program Files\Common
Files\Autodesk Shared\". acax17enu.tlb is here. acadauto.chm is provided,
but it does not work.

I have checked AutoCAD application's settings inside "DCOM Config": they are
default. What can cause it?

Thanks for advise!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost