[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1442
  • Last Modified:

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!
0
Alexey Fedorov
Asked:
Alexey Fedorov
  • 4
  • 3
1 Solution
 
norrin_raddCommented:
hey alexf2,
Dont think lt has that capability, sorry. You'll need regular full version autocad.
0
 
Alexey FedorovSoftware developerAuthor Commented:
Thanks.

But why TLBs and "OLE Automation" guide are placed inside "C:\Program Files\Common Files\Autodesk Shared\" ?
And why CreateObject causes AutoCAD starting and hanging? It means object "AutoCAD.Application.17" is registered.

Distinctions between AutoCAD LT and full AutoCAD are described at "http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=5130011", but very shortly. Absent features are:

Conceptual design
Sheet set management
Advanced customization with LISP, ARX, and VBA
Presentation graphics
CAD standards management
Network licensing

But nothing  had been said  about "OLE Automation" capabilities. Indeed VBA is absent in AutoCAD's menu, but TLBs for "OLE Automation" and guide CHM are present there.
0
 
norrin_raddCommented:
I'll admit this topic is at the fringes of my knowledge, but I know that the arx is disabled in lt (along with pretty much every other customization capability), and I assumed the ole stuff was associated with that. At least they left diesel and customized toolbars in there, you'd be suprised how creative you can get with those.

Anyway, those are some heavy hitters over there on the acad ng's if they say it cant be done, then I'd bank on it not being able to be done. sorry.

It makes sense, if they want you to pay for customiztions, then they will do what they gotta do to shut it all down. If you find a way let us know, I've got alot of lt users that would benifit.

good luck
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Alexey FedorovSoftware developerAuthor Commented:
All my attempts to control AutoCAD LT by means of OLE Automation were failed.
However, I found inside of "C:\Program Files\Common Files\Autodesk Shared\" OLE-Automation DDLs, TLBs and guide (CHM) which are related to AutoCAD's OLE Automation.
Anyway AutoCAD LT process starts as the result of executing CreateObject("AutoCAD.Application.17"). But neither further interaction with it is possible.
0
 
Alexey FedorovSoftware developerAuthor Commented:
It does mean that the OLE-Automation deployed with AutoCAD LT is a some fake unimplemented facade.
Do you agree?
0
 
norrin_raddCommented:
I think it means that autodesk has got it rigged that only they can use it.
0
 
norrin_raddCommented:
thanks for the points, sorry you couldnt get it.
did you see this site linked from the acad ngs?:

http://www.ltfactory.com/

I'm not sure how this person does it, or how well it works. I had seen this a few years ago and forgot about it until now. Anyway not sure if thats anything like what you wanted to do but it may give you some ideas.

thanks again
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now