Solved

AutoCAD LT 2007 usage via OLE Automation

Posted on 2006-10-20
7
1,425 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
ID: 17776384
hey alexf2,
Dont think lt has that capability, sorry. You'll need regular full version autocad.
0
 

Author Comment

by:alexf2
ID: 17783171
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
ID: 17819397
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

 

Author Comment

by:alexf2
ID: 17888409
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
ID: 17888456
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
ID: 17889449
I think it means that autodesk has got it rigged that only they can use it.
0
 
LVL 10

Expert Comment

by:norrin_radd
ID: 17889891
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
If, like me, you find yourself repeatedly and tediously joining many segments (lines, arcs) in other people's drawings back into polylines that can be used more effectively in Computer Aided Machining and Laser Cutting, then this article is for you!…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

839 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