Solved

AutoCAD LT 2007 usage via OLE Automation

Posted on 2006-10-20
7
1,414 Views
Last Modified: 2008-01-09
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
Comment
Question by:alexf2
  • 4
  • 3
7 Comments
 
LVL 10

Expert Comment

by:norrin_radd
Comment Utility
hey alexf2,
Dont think lt has that capability, sorry. You'll need regular full version autocad.
0
 

Author Comment

by:alexf2
Comment Utility
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
 
LVL 10

Accepted Solution

by:
norrin_radd earned 250 total points
Comment Utility
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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:alexf2
Comment Utility
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
 

Author Comment

by:alexf2
Comment Utility
It does mean that the OLE-Automation deployed with AutoCAD LT is a some fake unimplemented facade.
Do you agree?
0
 
LVL 10

Expert Comment

by:norrin_radd
Comment Utility
I think it means that autodesk has got it rigged that only they can use it.
0
 
LVL 10

Expert Comment

by:norrin_radd
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Following a number of instances of re-installing Solidworks I thought that it may be a  good idea to detail the procedure that I follow each time to ensure a good stable install. Backup: Backup your system.  It goes without saying that this i…
Our company has proprietary drawing files that we do not give to our customers for final documentation. Our customers now require that we give them these drawings. They understand that they are proprietary and do not require them to be in AutoCAD bu…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now