Solved

AutoCAD LT 2007 usage via OLE Automation

Posted on 2006-10-20
7
1,417 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
The following article will describe how to add/edit a dimension style through AutoCAD VBA. AutoCAD VBA has its quirks and when it comes to dimensions and controlling how they look through VBA.  This is where AutoCAD can be vividly confusing. The…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

911 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

18 Experts available now in Live!

Get 1:1 Help Now