Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

AutoCAD LT 2007 usage via OLE Automation

Posted on 2006-10-20
7
Medium Priority
?
1,436 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:Alexey Fedorov
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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:Alexey Fedorov
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 750 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
Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

 

Author Comment

by:Alexey Fedorov
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:Alexey Fedorov
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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

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…
In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

730 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