.NET

Reply
*pkirill
Message 1 of 3 (68 Views)

Open AutoCAD Application 2007?

68 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 (68 Views)

Re: Open AutoCAD Application 2007?

08-03-2006 06:43 PM in reply to: *pkirill
acad.visible = true
*pkirill
Message 3 of 3 (68 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
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!