*Paul H
Message 1 of 1 (50 Views)

VB Express 2005 & AutoCAD 2002

50 Views, 0 Replies
03-23-2006 09:19 AM

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
Set AcadApp = CreateObject("AutoCAD.Application")
If Err Then
MsgBox "Could not connect to AutoCAD"
Exit Sub
End If
End If
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!