Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

  • Congratulations JStephen on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to ref. the AutoCad object of a specific version if u have 2 w/ VB

Status
Not open for further replies.

NYIT

Computer
Joined
Oct 18, 2004
Messages
3
Location
US
On my computer I have AutoCad 2004 as well as 3.3 and my application needs to open 2004. I know that I have to use the CreateObject method in Visual Basic, but I'm not sure how to identify the specific version. Can anyone help? Thanks
 
Use version-dependent ProgIDs.

For example, if you are using CreateObject, instead of :
CreateObject ("AutoCAD.Application"), use
CreateObject ("AutoCAD.Application.16") for AutoCad2004.

For AutoCAD 2002, use CreateObject ("AutoCAD.Application.15").


Mala Singh
'Dare to Imagine'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top