.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VB Express 2005 & AutoCAD 2002

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
172 Views, 0 Replies

VB Express 2005 & AutoCAD 2002

Hello,

I am starting to play with VB Express 2005. Can someone point me to some
sample code to fire up AutoCAD 2002 & MDT6. Things seem to have changed
alot since I learned VB6. I am making a custom DWF viewer, the only thing I
need from AutoCAD is to fire a DWG path at it and have it open.

Back in the VB6 days I used this code all the time.

On Error Resume Next
Set AcadApp = GetObject(, "AutoCAD.Application")
If Err Then
Err.Clear
Set AcadApp = CreateObject("AutoCAD.Application")
If Err Then
MsgBox "Could not connect to AutoCAD"
Err.Clear
Exit Sub
End If
End If
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost