Hi Christy,
I am just learning VB.NET too and I figured there HAS to be a way to bring a
form into the AutoCAD application so I started investigating it. I looked
through the DotNet samples directory installed with the ObjectARX SDK and
found exactly what I was looking for. If you create a new project using the
Class Library template, you can insert a "Windows Form" by clicking on the
"Add Class" button.
Use this code (from the sample "HelloWorld") to load the form into the
AutoCAD instance
' Defines a command which displays a Windows form
Public Function
HelloFormCmd()
Dim dlg As New frmHello()
dlg.ShowDialog()
End Function
Up to this point, I have found VBA to be much easier... I sure hope I get
better at this!
HIH
Rob
wrote in message news:5027063@discussion.autodesk.com...
Thanks for the additional information. It turns out that I don't think I
can do what I need to do because my application is a WIndows application
(.exe file) rather than a class library (.dll file). Apparently the
ObjectARX managed wrappers only work in a dll. I am probably going to
switch to VBA, unless I can maybe make a dll to do the AutoCAD stuff that i
can then insert into the WIndows Application and use. I'm not sure how
viable that option is, though.
Thanks,
Christy