<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting Started with VB .NET with AutoCAD in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497704#M83247</link>
    <description>Hi Christy,&lt;BR /&gt;
&lt;BR /&gt;
I am just learning VB.NET too and I figured there HAS to be a way to bring a&lt;BR /&gt;
form into the AutoCAD application so I started investigating it.  I looked&lt;BR /&gt;
through the DotNet samples directory installed with the ObjectARX SDK and&lt;BR /&gt;
found exactly what I was looking for.  If you create a new project using the&lt;BR /&gt;
Class Library template, you can insert a "Windows Form" by clicking on the&lt;BR /&gt;
"Add Class" button.&lt;BR /&gt;
&lt;BR /&gt;
Use this code (from the sample "HelloWorld") to load the form into the&lt;BR /&gt;
AutoCAD instance&lt;BR /&gt;
&lt;BR /&gt;
' Defines a command which displays a Windows form&lt;BR /&gt;
&lt;AUTODESK.AUTOCAD.RUNTIME.COMMANDMETHOD&gt; Public Function&lt;BR /&gt;
HelloFormCmd()&lt;BR /&gt;
Dim dlg As New frmHello()&lt;BR /&gt;
dlg.ShowDialog()&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
Up to this point, I have found VBA to be much easier... I sure hope I get&lt;BR /&gt;
better at this!&lt;BR /&gt;
&lt;BR /&gt;
HIH&lt;BR /&gt;
&lt;BR /&gt;
Rob&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;CCTBAILEY&gt; wrote in message news:5027063@discussion.autodesk.com...&lt;BR /&gt;
Thanks for the additional information.  It turns out that I don't think I&lt;BR /&gt;
can do what I need to do because my application is a WIndows application&lt;BR /&gt;
(.exe file) rather than a class library (.dll file).  Apparently the&lt;BR /&gt;
ObjectARX managed wrappers only work in a dll.  I am probably going to&lt;BR /&gt;
switch to VBA, unless I can maybe make a dll to do the AutoCAD stuff that i&lt;BR /&gt;
can then insert into the WIndows Application and use.  I'm not sure how&lt;BR /&gt;
viable that option is, though.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Christy&lt;/CCTBAILEY&gt;&lt;/AUTODESK.AUTOCAD.RUNTIME.COMMANDMETHOD&gt;</description>
    <pubDate>Thu, 01 Dec 2005 22:00:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-12-01T22:00:43Z</dc:date>
    <item>
      <title>Getting Started with VB .NET with AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497694#M83237</link>
      <description>Hi!  I am picking up on a program that a colleague of mine started before he left the company.  The program is supposed to create and print plot files.  I am trying just to get a feel for using VB .NET to program for AutoCAD before I delve in, and I am confused.  I tried downloading the labs located at http://usa.autodesk.com/adsk/servlet/index?siteID=123112&amp;amp;id=1911627, but on the second one (Lab2.doc) it mentions that I need to install the ObjectARX wizard.  When I try to download and install the wizard, it says you must use Visual C++ to program, and then it gives me an error message when I try to install it.  I am running Visual Studio 2003 but I don't have C++, I don't think.  I am new to .NET and am very confused now as to what I need to do to just get started.  Can someone please point me in the right direction? &lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Christy</description>
      <pubDate>Tue, 29 Nov 2005 22:30:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497694#M83237</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-29T22:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with VB .NET with AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497695#M83238</link>
      <description>Hi Christy,&lt;BR /&gt;
&lt;BR /&gt;
Unless I am wrong (would a Guru please chime in here) you should not need&lt;BR /&gt;
it.&lt;BR /&gt;
&lt;BR /&gt;
See this thread:&lt;BR /&gt;
&lt;BR /&gt;
http://discussion.autodesk.com/thread.jspa?threadID=423492&lt;BR /&gt;
&lt;BR /&gt;
It appears VS2002 is needed in order to "properly" install the ObjectArx&lt;BR /&gt;
wizard.&lt;BR /&gt;
&lt;BR /&gt;
That's all I know... HIH&lt;BR /&gt;
&lt;BR /&gt;
Rob&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;CCTBAILEY&gt; wrote in message news:5025008@discussion.autodesk.com...&lt;BR /&gt;
Hi!  I am picking up on a program that a colleague of mine started before he&lt;BR /&gt;
left the company.  The program is supposed to create and print plot files.&lt;BR /&gt;
I am trying just to get a feel for using VB .NET to program for AutoCAD&lt;BR /&gt;
before I delve in, and I am confused.  I tried downloading the labs located&lt;BR /&gt;
at http://usa.autodesk.com/adsk/servlet/index?siteID=123112&amp;amp;id=1911627, but&lt;BR /&gt;
on the second one (Lab2.doc) it mentions that I need to install the&lt;BR /&gt;
ObjectARX wizard.  When I try to download and install the wizard, it says&lt;BR /&gt;
you must use Visual C++ to program, and then it gives me an error message&lt;BR /&gt;
when I try to install it.  I am running Visual Studio 2003 but I don't have&lt;BR /&gt;
C++, I don't think.  I am new to .NET and am very confused now as to what I&lt;BR /&gt;
need to do to just get started.  Can someone please point me in the right&lt;BR /&gt;
direction?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Christy&lt;/CCTBAILEY&gt;</description>
      <pubDate>Wed, 30 Nov 2005 00:07:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497695#M83238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-30T00:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with VB .NET with AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497696#M83239</link>
      <description>If the app was/is going to be written in vb.net you won't need to use ObjectARX (ARX is only for use with C++).&lt;BR /&gt;
&lt;BR /&gt;
There are many posts out there comparing .net with arx.  Basically ARX gives you access to the entire autocad model (it's what autocad programers use).  For most user's the .net API will be more than adequate.&lt;BR /&gt;
&lt;BR /&gt;
Depending on what version/platform of autocad you are using you should have some .net sample files located in a directory similar to:&lt;BR /&gt;
&lt;BR /&gt;
C:\Program Files\Autodesk Product\Sample\Autodesk Product API\vb.net&lt;BR /&gt;
&lt;BR /&gt;
This will provide you a starting point.&lt;BR /&gt;
&lt;BR /&gt;
I'm recently started learning .net as well.  The sample will get you started in the right direction and the discussion groups are helpful if you have questions.&lt;BR /&gt;
&lt;BR /&gt;
If the program is pretty complex you may want to pick a simpler task that you would like to automate and make that your first .net project to help you get started.&lt;BR /&gt;
&lt;BR /&gt;
Good luck!</description>
      <pubDate>Wed, 30 Nov 2005 04:51:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497696#M83239</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-30T04:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with VB .NET with AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497697#M83240</link>
      <description>I think I may have misspoke about the need for the ObjectArx wizard.  After&lt;BR /&gt;
attempting the same lab you are attempting (Lab2), I now see that you need&lt;BR /&gt;
to create a new project using the "AutoCAD Managed VB Project Application"&lt;BR /&gt;
template in the lab.  If the ObjectArx wizard does not install properly,&lt;BR /&gt;
then the "AutoCAD Managed VB Project Application" template is not available.&lt;BR /&gt;
&lt;BR /&gt;
I am not sure how to resolve the install issue unless you have VS 2002&lt;BR /&gt;
available.&lt;BR /&gt;
&lt;BR /&gt;
You can however still complete the lab by doing the following:&lt;BR /&gt;
&lt;BR /&gt;
Start VB and create a new project using the "Class Library" as a template.&lt;BR /&gt;
Open the Class1.vb (from the Lab2) directory) in wordpad and copy the code.&lt;BR /&gt;
Paste the code into the Class1 code editor and manually load the references&lt;BR /&gt;
to the AutoCAD .NET managed wrappers as you did in Lab1.  Compile the&lt;BR /&gt;
program and load it using Netload (as in Lab1) and all should function fine&lt;BR /&gt;
(at least it did for me).&lt;BR /&gt;
&lt;BR /&gt;
I assume the "AutoCAD Managed VB Project Application" template creates a&lt;BR /&gt;
class with a couple of functions in it as well as "pre-loads" the required&lt;BR /&gt;
AutoCAD managed wrappers???  Can someone with VS2002 confirm this?&lt;BR /&gt;
&lt;BR /&gt;
I hope this helps!&lt;BR /&gt;
&lt;BR /&gt;
Rob&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;CCTBAILEY&gt; wrote in message news:5025008@discussion.autodesk.com...&lt;BR /&gt;
Hi!  I am picking up on a program that a colleague of mine started before he&lt;BR /&gt;
left the company.  The program is supposed to create and print plot files.&lt;BR /&gt;
I am trying just to get a feel for using VB .NET to program for AutoCAD&lt;BR /&gt;
before I delve in, and I am confused.  I tried downloading the labs located&lt;BR /&gt;
at http://usa.autodesk.com/adsk/servlet/index?siteID=123112&amp;amp;id=1911627, but&lt;BR /&gt;
on the second one (Lab2.doc) it mentions that I need to install the&lt;BR /&gt;
ObjectARX wizard.  When I try to download and install the wizard, it says&lt;BR /&gt;
you must use Visual C++ to program, and then it gives me an error message&lt;BR /&gt;
when I try to install it.  I am running Visual Studio 2003 but I don't have&lt;BR /&gt;
C++, I don't think.  I am new to .NET and am very confused now as to what I&lt;BR /&gt;
need to do to just get started.  Can someone please point me in the right&lt;BR /&gt;
direction?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Christy&lt;/CCTBAILEY&gt;</description>
      <pubDate>Wed, 30 Nov 2005 18:49:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497697#M83240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-30T18:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with VB .NET with AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497698#M83241</link>
      <description>Thank you for the information.  I have found that I do not need the wizard in order to complete the lab (as another user posted).  However I am very confused as to what I do need.  For one thing, I have read that Visual Studio 2003 is not compatible with AutoCAD 2004 and above, and that I should downgrade to 2002.  Can anyone verify this for me?  It costs $20 to downgrade plus the hassle, and I'd rather not bother if it's not necessary.&lt;BR /&gt;
&lt;BR /&gt;
Also, I have been able to complete these labs, but they are all library class projects (meaning there is no form), and mine is a Windows application that has a form that needs to access AutoCAD.  However I cannot get my form to communicate with AutoCAD.  I am going to post my specific question in a new topic.  I will check out the .net sample files you gave me - thanks so much and I would very much appreciate any further help.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Christy</description>
      <pubDate>Wed, 30 Nov 2005 19:07:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497698#M83241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-30T19:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with VB .NET with AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497699#M83242</link>
      <description>You can use any VS version with the .NET API. It is ObjectARX which is VS version dependent.&lt;BR /&gt;
&lt;BR /&gt;
Regards - Nathan</description>
      <pubDate>Thu, 01 Dec 2005 14:27:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497699#M83242</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-01T14:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with VB .NET with AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497700#M83243</link>
      <description>Here's what I pulled out from my "main" class that was created via the &lt;BR /&gt;
wizard:&lt;BR /&gt;
&lt;BR /&gt;
Imports System&lt;BR /&gt;
&lt;BR /&gt;
Imports System.Type&lt;BR /&gt;
&lt;BR /&gt;
Imports System.CLSCompliantAttribute&lt;BR /&gt;
&lt;BR /&gt;
Imports System.Reflection&lt;BR /&gt;
&lt;BR /&gt;
Imports System.Runtime.InteropServices&lt;BR /&gt;
&lt;BR /&gt;
Imports Autodesk.AutoCAD.DatabaseServices&lt;BR /&gt;
&lt;BR /&gt;
Imports Autodesk.AutoCAD.Runtime&lt;BR /&gt;
&lt;BR /&gt;
Imports Autodesk.AutoCAD.Geometry&lt;BR /&gt;
&lt;BR /&gt;
Imports Autodesk.AutoCAD.ApplicationServices&lt;BR /&gt;
&lt;BR /&gt;
Imports Autodesk.AutoCAD.EditorInput&lt;BR /&gt;
&lt;BR /&gt;
Imports Autodesk.AutoCAD.Interop&lt;BR /&gt;
&lt;BR /&gt;
Imports Autodesk.AutoCAD.Interop.Common&lt;BR /&gt;
&lt;BR /&gt;
&lt; extensionapplication=""&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt; commandclass=""&gt;&lt;BR /&gt;
&lt;BR /&gt;
Public Class AppMain&lt;BR /&gt;
&lt;BR /&gt;
    Implements Autodesk.AutoCAD.Runtime.IExtensionApplication&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
    Public Sub Initialize() Implements &lt;BR /&gt;
Autodesk.AutoCAD.Runtime.IExtensionApplication.Initialize&lt;BR /&gt;
&lt;BR /&gt;
            ' insert your startup code here&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
    End Sub&lt;BR /&gt;
&lt;BR /&gt;
    Private Sub Terminate() Implements &lt;BR /&gt;
Autodesk.AutoCAD.Runtime.IExtensionApplication.Terminate&lt;BR /&gt;
&lt;BR /&gt;
    End Sub&lt;BR /&gt;
&lt;BR /&gt;
End Class&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Rob Outman" &lt;NOSPAMROB&gt; wrote in message &lt;BR /&gt;
news:5025800@discussion.autodesk.com...&lt;BR /&gt;
I assume the "AutoCAD Managed VB Project Application" template creates a&lt;BR /&gt;
class with a couple of functions in it as well as "pre-loads" the required&lt;BR /&gt;
AutoCAD managed wrappers???  Can someone with VS2002 confirm this?&lt;/NOSPAMROB&gt;&lt;/&gt;&lt;/&gt;</description>
      <pubDate>Thu, 01 Dec 2005 19:06:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497700#M83243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-01T19:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with VB .NET with AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497701#M83244</link>
      <description>Hi James!&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the breakdown.&lt;BR /&gt;
&lt;BR /&gt;
It's funny, I imported the code from Lab3 that was provided with the&lt;BR /&gt;
download and the loading of AutoCAD actually works with VB 2005 express&lt;BR /&gt;
without the ObjectArx wizard installed.  So, it's hiding in there somewhere!&lt;BR /&gt;
&lt;BR /&gt;
I am not guru enough to figure it out though... I will leave that to the big&lt;BR /&gt;
boys!&lt;BR /&gt;
&lt;BR /&gt;
Rob&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"James Stergar" &lt;JSTERGAR&gt; wrote in message&lt;BR /&gt;
news:5026958@discussion.autodesk.com...&lt;BR /&gt;
Here's what I pulled out from my "main" class that was created via the&lt;BR /&gt;
wizard:&lt;BR /&gt;
&lt;BR /&gt;
Imports System&lt;BR /&gt;
&lt;BR /&gt;
Imports System.Type&lt;BR /&gt;
&lt;BR /&gt;
Imports System.CLSCompliantAttribute&lt;BR /&gt;
&lt;BR /&gt;
Imports System.Reflection&lt;BR /&gt;
&lt;BR /&gt;
Imports System.Runtime.InteropServices&lt;BR /&gt;
&lt;BR /&gt;
Imports Autodesk.AutoCAD.DatabaseServices&lt;BR /&gt;
&lt;BR /&gt;
Imports Autodesk.AutoCAD.Runtime&lt;BR /&gt;
&lt;BR /&gt;
Imports Autodesk.AutoCAD.Geometry&lt;BR /&gt;
&lt;BR /&gt;
Imports Autodesk.AutoCAD.ApplicationServices&lt;BR /&gt;
&lt;BR /&gt;
Imports Autodesk.AutoCAD.EditorInput&lt;BR /&gt;
&lt;BR /&gt;
Imports Autodesk.AutoCAD.Interop&lt;BR /&gt;
&lt;BR /&gt;
Imports Autodesk.AutoCAD.Interop.Common&lt;BR /&gt;
&lt;BR /&gt;
&lt; extensionapplication=""&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt; commandclass=""&gt;&lt;BR /&gt;
&lt;BR /&gt;
Public Class AppMain&lt;BR /&gt;
&lt;BR /&gt;
    Implements Autodesk.AutoCAD.Runtime.IExtensionApplication&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
    Public Sub Initialize() Implements&lt;BR /&gt;
Autodesk.AutoCAD.Runtime.IExtensionApplication.Initialize&lt;BR /&gt;
&lt;BR /&gt;
            ' insert your startup code here&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
    End Sub&lt;BR /&gt;
&lt;BR /&gt;
    Private Sub Terminate() Implements&lt;BR /&gt;
Autodesk.AutoCAD.Runtime.IExtensionApplication.Terminate&lt;BR /&gt;
&lt;BR /&gt;
    End Sub&lt;BR /&gt;
&lt;BR /&gt;
End Class&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Rob Outman" &lt;NOSPAMROB&gt; wrote in message&lt;BR /&gt;
news:5025800@discussion.autodesk.com...&lt;BR /&gt;
I assume the "AutoCAD Managed VB Project Application" template creates a&lt;BR /&gt;
class with a couple of functions in it as well as "pre-loads" the required&lt;BR /&gt;
AutoCAD managed wrappers???  Can someone with VS2002 confirm this?&lt;/NOSPAMROB&gt;&lt;/&gt;&lt;/&gt;&lt;/JSTERGAR&gt;</description>
      <pubDate>Thu, 01 Dec 2005 19:51:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497701#M83244</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-01T19:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with VB .NET with AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497702#M83245</link>
      <description>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.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Christy</description>
      <pubDate>Thu, 01 Dec 2005 20:21:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497702#M83245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-01T20:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with VB .NET with AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497703#M83246</link>
      <description>It's perfectly viable.  You need to write your AutoCAD specific code in a dll that gets loaded into AutoCAD which you then expose to out of process communication via .NET remoting (or some similar cross process communication tool).  You can load acdbmgd.dll and acmgd.dll in your stand alone exe so that you can access all of the AutoCAD object types, enums, etc. then just pass them into the remotely enabled dll when you need access to a running AutoCAD instances internals.  If you are new to .NET, however, you might just want to switch to VBA.  I can post some code if there is interest.</description>
      <pubDate>Thu, 01 Dec 2005 21:59:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497703#M83246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-01T21:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with VB .NET with AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497704#M83247</link>
      <description>Hi Christy,&lt;BR /&gt;
&lt;BR /&gt;
I am just learning VB.NET too and I figured there HAS to be a way to bring a&lt;BR /&gt;
form into the AutoCAD application so I started investigating it.  I looked&lt;BR /&gt;
through the DotNet samples directory installed with the ObjectARX SDK and&lt;BR /&gt;
found exactly what I was looking for.  If you create a new project using the&lt;BR /&gt;
Class Library template, you can insert a "Windows Form" by clicking on the&lt;BR /&gt;
"Add Class" button.&lt;BR /&gt;
&lt;BR /&gt;
Use this code (from the sample "HelloWorld") to load the form into the&lt;BR /&gt;
AutoCAD instance&lt;BR /&gt;
&lt;BR /&gt;
' Defines a command which displays a Windows form&lt;BR /&gt;
&lt;AUTODESK.AUTOCAD.RUNTIME.COMMANDMETHOD&gt; Public Function&lt;BR /&gt;
HelloFormCmd()&lt;BR /&gt;
Dim dlg As New frmHello()&lt;BR /&gt;
dlg.ShowDialog()&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
Up to this point, I have found VBA to be much easier... I sure hope I get&lt;BR /&gt;
better at this!&lt;BR /&gt;
&lt;BR /&gt;
HIH&lt;BR /&gt;
&lt;BR /&gt;
Rob&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;CCTBAILEY&gt; wrote in message news:5027063@discussion.autodesk.com...&lt;BR /&gt;
Thanks for the additional information.  It turns out that I don't think I&lt;BR /&gt;
can do what I need to do because my application is a WIndows application&lt;BR /&gt;
(.exe file) rather than a class library (.dll file).  Apparently the&lt;BR /&gt;
ObjectARX managed wrappers only work in a dll.  I am probably going to&lt;BR /&gt;
switch to VBA, unless I can maybe make a dll to do the AutoCAD stuff that i&lt;BR /&gt;
can then insert into the WIndows Application and use.  I'm not sure how&lt;BR /&gt;
viable that option is, though.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Christy&lt;/CCTBAILEY&gt;&lt;/AUTODESK.AUTOCAD.RUNTIME.COMMANDMETHOD&gt;</description>
      <pubDate>Thu, 01 Dec 2005 22:00:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497704#M83247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-01T22:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with VB .NET with AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497705#M83248</link>
      <description>I don't believe you can load acmdg.dll/acdbmgd.dll &lt;BR /&gt;
into any other process (e.g., 'standalone EXE').&lt;BR /&gt;
&lt;BR /&gt;
Also, many of the objects exposed by the managed&lt;BR /&gt;
API are not remotable.&lt;BR /&gt;
&lt;BR /&gt;
While one can write the AutoCAD-specific parts of &lt;BR /&gt;
an application as a DLL that loads into AutoCAD, &lt;BR /&gt;
and use remoting to access it, it would be a mistake &lt;BR /&gt;
to assume that you can pass most objects exposed &lt;BR /&gt;
by the wrappers across the wire (e.g., remote them&lt;BR /&gt;
to another process). Even if you could, I would doubt &lt;BR /&gt;
that you would want to, given the performance hit &lt;BR /&gt;
that remoting imposes.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;MIKE.KING&gt; wrote in message news:5027202@discussion.autodesk.com...&lt;BR /&gt;
It's perfectly viable.  You need to write your AutoCAD specific code in a dll that gets loaded into AutoCAD which you then expose to out of process communication via .NET remoting (or some similar cross process communication tool).  You can load acdbmgd.dll and acmgd.dll in your stand alone exe so that you can access all of the AutoCAD object types, enums, etc. then just pass them into the remotely enabled dll when you need access to a running AutoCAD instances internals.  If you are new to .NET, however, you might just want to switch to VBA.  I can post some code if there is interest.&lt;/MIKE.KING&gt;</description>
      <pubDate>Fri, 02 Dec 2005 18:23:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497705#M83248</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-02T18:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with VB .NET with AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497706#M83249</link>
      <description>Thanks for catching that, I had only used this technique for plotting remotely in the past so I didn't notice that limitation.  You can load acdbmgd.dll and acmgd.dll in a stand alone program, what you cannot do is instantiate objects.  You would need to keep all of your AutoCAD specific code in the dll loaded in AutoCAD and just pass in parameters to create objects (end points of a line, center / radius of a circle, etc) then create the objects in AutoCAD.&lt;BR /&gt;
&lt;BR /&gt;
You can still use this technique to automate AutoCAD from out of process, you just cannot pass AutoCAD specific objects across the process boundary.  &lt;BR /&gt;
&lt;BR /&gt;
As for whether or not you would want to, in my case I do but that's up to the individual application I suppose.</description>
      <pubDate>Fri, 02 Dec 2005 20:54:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497706#M83249</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-02T20:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with VB .NET with AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497707#M83250</link>
      <description>&amp;gt;&amp;gt; You can load acdbmgd.dll and acmgd.dll in a stand &lt;BR /&gt;
&amp;gt;&amp;gt; alone program, what you cannot do is instantiate objects&lt;BR /&gt;
&lt;BR /&gt;
No, you really can't load them into a stand-alone process.&lt;BR /&gt;
&lt;BR /&gt;
The runtime does not actually load an assembly until the &lt;BR /&gt;
first time you attempt to instantiate an object or reference &lt;BR /&gt;
static data from the assembly, so if never do either of those&lt;BR /&gt;
things, the assembly is never loaded.&lt;BR /&gt;
&lt;BR /&gt;
Those assemblies can only be referenced from another&lt;BR /&gt;
process, but not actually loaded.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com</description>
      <pubDate>Fri, 02 Dec 2005 22:13:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497707#M83250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-02T22:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with VB .NET with AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497708#M83251</link>
      <description>Got it.  Thanks.</description>
      <pubDate>Mon, 05 Dec 2005 11:36:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497708#M83251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-05T11:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with VB .NET with AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497709#M83252</link>
      <description>Guys,&lt;BR /&gt;
&lt;BR /&gt;
Thanks so much for the responses.  I understand basically what you guys are talking about, but I'm still very unclear on how to make it happen.  I actually have posted my problem more specifically on another post (http://discussion.autodesk.com/thread.jspa?threadID=442254).  Basically, I need to create an exe that will allow the user to select drawings that need to be plotted.  The AutoCAD part is that the program needs to open AutoCAD, open the drawings, create plt files of each one, and then (if the user selects it), plot the drawing to either half or full size.  I'm not actually trying to draw in AutoCAD, but I need to be able to access AutoCAD's plot functionality.&lt;BR /&gt;
&lt;BR /&gt;
I have been asked to do this in VB .NET if at all possible, because "it is the wave of the fuutre".  &lt;BR /&gt;
&lt;BR /&gt;
I have found virtually no examples on how to do this, however there is one gentleman that posted to my other post who is writing a blog example at http:\\snippetsandmusings.blogspot.com, but any other code that would help would be greatly appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Christy</description>
      <pubDate>Mon, 05 Dec 2005 16:14:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-started-with-vb-net-with-autocad/m-p/1497709#M83252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-05T16:14:04Z</dc:date>
    </item>
  </channel>
</rss>

