.NET

Reply
*pkirill
Message 1 of 3 (71 Views)

Open AutoCAD Application 2007?

71 Views, 2 Replies
08-03-2006 11:06 AM
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

New Member
arxact9
Posts: 2
Registered: ‎08-03-2006
Message 2 of 3 (71 Views)

Re: Open AutoCAD Application 2007?

08-03-2006 06:43 PM in reply to: *pkirill
acad.visible = true
*pkirill
Message 3 of 3 (71 Views)

Re: Open AutoCAD Application 2007?

08-04-2006 06:25 AM in reply to: *pkirill
That did it. Thanks!

wrote in message news:5258746@discussion.autodesk.com...
acad.visible = true
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.