.NET

Reply
*pkirill
Post 1 of 3

Open AutoCAD Application 2007?

73 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
2 Posts
0 Kudos
Registered: ‎08-03-2006
Post 2 of 3

Re: Open AutoCAD Application 2007?

08-03-2006 06:43 PM in reply to: *pkirill
acad.visible = true
*pkirill
Post 3 of 3

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 interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!