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

Open AutoCAD Application 2007?

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
212 Views, 2 Replies

Open AutoCAD Application 2007?

Okay, i give. 
I'm trying to update some of out VB.net routines to use AutoCAD 2007. I've added
the COM reference to 2007 type library, but I can't even get AutoCAD 2007 to
open properly. When I run the code below, I just get a couple of pallets, but no
document window...

Any help would be
appreciated!

Thanks.


Private
color=#0000ff size=2>Sub
Button1_Click(
color=#0000ff size=2>ByVal
sender
size=2>As
System.Object,
size=2>ByVal
e
size=2>As
System.EventArgs)
size=2>Handles
Button1.Click


Me.Close()


acad =

New
AutoCAD.AcadApplication


dwg =
color=#0000ff>New
AutoCAD.AcadDocument


dwg = acad.Documents.Add("acad.dwt")


End
color=#0000ff size=2>Sub

2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

acad.visible = true
Message 3 of 3
Anonymous
in reply to: Anonymous

That did it. Thanks!

wrote in message news:5258746@discussion.autodesk.com...
acad.visible = true

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