<?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: .NET or VBA in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574895#M36220</link>
    <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I am researching info on a task I have.  I need to tie together some fields in an excel spreadsheet(stand alone) to dimensions in a acad template file(MDT for parametric's).&lt;BR /&gt;
Basically, two cells in excel that define the height and width of a rectangle that are linked to two dimensions in a 2D drawing in mdt that will update when excel is updated.</description>
    <pubDate>Thu, 06 Apr 2006 12:23:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-04-06T12:23:21Z</dc:date>
    <item>
      <title>.NET or VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574893#M36218</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I am making a comeback into AutoCAD programming after a long, long break. I&lt;BR /&gt;
now need to develop an application (fairly big) that needs to run under&lt;BR /&gt;
AutoCAD 2004, 2005 and 2006.&lt;BR /&gt;
&lt;BR /&gt;
My question is - whether I should use VBA or VB.NET ?&lt;BR /&gt;
&lt;BR /&gt;
What are the pros and cons of using either?&lt;BR /&gt;
&lt;BR /&gt;
I read from some posts that .NET is better but the AutoCAD .NET API is&lt;BR /&gt;
harder to learn. Is this true? What would be the best way to get started?&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Rakesh</description>
      <pubDate>Wed, 08 Mar 2006 09:23:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574893#M36218</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-08T09:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: .NET or VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574894#M36219</link>
      <description>If you need to run on 2004, then .NET isn't going to&lt;BR /&gt;
be an option.&lt;BR /&gt;
&lt;BR /&gt;
.NET first appeared in 2005, but the API wasn't complete&lt;BR /&gt;
and has some problems. In 2006, it is closer to complete,&lt;BR /&gt;
but not there yet, and has fewer problems.&lt;BR /&gt;
&lt;BR /&gt;
Your options are essentially LISP or VBA/ActiveX, or &lt;BR /&gt;
ObjectARX.&lt;BR /&gt;
&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;
"Rakesh Rao" &lt;RAKESH.RAO&gt; wrote in message news:5104608@discussion.autodesk.com...&lt;BR /&gt;
Hello,&lt;BR /&gt;
&lt;BR /&gt;
I am making a comeback into AutoCAD programming after a long, long break. I&lt;BR /&gt;
now need to develop an application (fairly big) that needs to run under&lt;BR /&gt;
AutoCAD 2004, 2005 and 2006.&lt;BR /&gt;
&lt;BR /&gt;
My question is - whether I should use VBA or VB.NET ?&lt;BR /&gt;
&lt;BR /&gt;
What are the pros and cons of using either?&lt;BR /&gt;
&lt;BR /&gt;
I read from some posts that .NET is better but the AutoCAD .NET API is&lt;BR /&gt;
harder to learn. Is this true? What would be the best way to get started?&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Rakesh&lt;/RAKESH.RAO&gt;</description>
      <pubDate>Wed, 08 Mar 2006 13:42:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574894#M36219</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-08T13:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: .NET or VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574895#M36220</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I am researching info on a task I have.  I need to tie together some fields in an excel spreadsheet(stand alone) to dimensions in a acad template file(MDT for parametric's).&lt;BR /&gt;
Basically, two cells in excel that define the height and width of a rectangle that are linked to two dimensions in a 2D drawing in mdt that will update when excel is updated.</description>
      <pubDate>Thu, 06 Apr 2006 12:23:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574895#M36220</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-04-06T12:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: .NET or VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574896#M36221</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Nearly everything you need can be found in the sample DVB files supplied &lt;BR /&gt;
with AutoCAD.&lt;BR /&gt;
Look in the Sample directory for "ExcelLink.dvb"&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
CADApps&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
&lt;PETERSONRL&gt; wrote in message news:5134053@discussion.autodesk.com...&lt;BR /&gt;
Hello,&lt;BR /&gt;
&lt;BR /&gt;
I am researching info on a task I have.  I need to tie together some fields &lt;BR /&gt;
in an excel spreadsheet(stand alone) to dimensions in a acad template &lt;BR /&gt;
file(MDT for parametric's).&lt;BR /&gt;
Basically, two cells in excel that define the height and width of a &lt;BR /&gt;
rectangle that are linked to two dimensions in a 2D drawing in mdt that will &lt;BR /&gt;
update when excel is updated.&lt;/PETERSONRL&gt;</description>
      <pubDate>Thu, 06 Apr 2006 20:50:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574896#M36221</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-04-06T20:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: .NET or VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574897#M36222</link>
      <description>Just FYI, the .NET framework can easily access Autocad or Excel through COM interop, meaning you could write code in C# or VB.NET that can do whatever you could do with VBA. You can do this in versions of AutoCad as old as 2000 (r15?).&lt;BR /&gt;
&lt;BR /&gt;
It's a bit more involved though, as you will be limited to a standalone exe or a dll. The advantage however is that you have access to all the .NET libraries and features, including reflection, serialization, System.IO, XML, etc...</description>
      <pubDate>Thu, 06 Apr 2006 21:53:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574897#M36222</guid>
      <dc:creator>jbooth</dc:creator>
      <dc:date>2006-04-06T21:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: .NET or VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574898#M36223</link>
      <description>Hi Jason,&lt;BR /&gt;
&lt;BR /&gt;
No one is denying this capability, but is it relevant to a question where &lt;BR /&gt;
the user wants to carry out a very simple task (linking Excel and reacting &lt;BR /&gt;
to changes in Excel with changes in the drawing or visa versa) which does &lt;BR /&gt;
not need all this arcane functionality?&lt;BR /&gt;
&lt;BR /&gt;
More probably he also does not wish to purchase .NET to do this task.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
CADApps&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
&lt;BR /&gt;
&lt;JASON booth=""&gt; wrote in message news:5135130@discussion.autodesk.com...&lt;BR /&gt;
Just FYI, the .NET framework can easily access Autocad or Excel through COM &lt;BR /&gt;
interop, meaning you could write code in C# or VB.NET that can do whatever &lt;BR /&gt;
you could do with VBA. You can do this in versions of AutoCad as old as 2000 &lt;BR /&gt;
(r15?).&lt;BR /&gt;
&lt;BR /&gt;
It's a bit more involved though, as you will be limited to a standalone exe &lt;BR /&gt;
or a dll. The advantage however is that you have access to all the .NET &lt;BR /&gt;
libraries and features, including reflection, serialization, System.IO, XML, &lt;BR /&gt;
etc...&lt;/JASON&gt;</description>
      <pubDate>Thu, 06 Apr 2006 22:13:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574898#M36223</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-04-06T22:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: .NET or VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574899#M36224</link>
      <description>You don't have to *purchase* .NET,  it's free.&lt;BR /&gt;
If you mean VS2005, let me tell you that the Express and Standard editions&lt;BR /&gt;
are, considering the bang for ye olde buck, almost free.&lt;BR /&gt;
As to the 'arcane' functionality' : working with COM in .NET has never been&lt;BR /&gt;
simpler. It's a breeze.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps,&lt;BR /&gt;
Nemorarius&lt;BR /&gt;
&lt;BR /&gt;
"Laurie Comerford" &lt;LAURIE.COMERFORD&gt; wrote in message&lt;BR /&gt;
news:5135137@discussion.autodesk.com...&lt;BR /&gt;
Hi Jason,&lt;BR /&gt;
&lt;BR /&gt;
No one is denying this capability, but is it relevant to a question where&lt;BR /&gt;
the user wants to carry out a very simple task (linking Excel and reacting&lt;BR /&gt;
to changes in Excel with changes in the drawing or visa versa) which does&lt;BR /&gt;
not need all this arcane functionality?&lt;BR /&gt;
&lt;BR /&gt;
More probably he also does not wish to purchase .NET to do this task.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
CADApps&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
&lt;BR /&gt;
&lt;JASON booth=""&gt; wrote in message news:5135130@discussion.autodesk.com...&lt;BR /&gt;
Just FYI, the .NET framework can easily access Autocad or Excel through COM&lt;BR /&gt;
interop, meaning you could write code in C# or VB.NET that can do whatever&lt;BR /&gt;
you could do with VBA. You can do this in versions of AutoCad as old as 2000&lt;BR /&gt;
(r15?).&lt;BR /&gt;
&lt;BR /&gt;
It's a bit more involved though, as you will be limited to a standalone exe&lt;BR /&gt;
or a dll. The advantage however is that you have access to all the .NET&lt;BR /&gt;
libraries and features, including reflection, serialization, System.IO, XML,&lt;BR /&gt;
etc...&lt;/JASON&gt;&lt;/LAURIE.COMERFORD&gt;</description>
      <pubDate>Fri, 07 Apr 2006 15:45:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574899#M36224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-04-07T15:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: .NET or VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574900#M36225</link>
      <description>The 'FREE' Express versions can't be used to debug&lt;BR /&gt;
DLLs so they're not really good for AutoCAD based&lt;BR /&gt;
development.&lt;BR /&gt;
&lt;BR /&gt;
Regardless of that, the fact that one must pay for &lt;BR /&gt;
better tools, isn't a legitmate reason to not use&lt;BR /&gt;
them. If you consider how much better and faster&lt;BR /&gt;
they let you work, the cost is easily justified.&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/2007&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Nemorarius"  wrote in message news:5135889@discussion.autodesk.com...&lt;BR /&gt;
You don't have to *purchase* .NET,  it's free.&lt;BR /&gt;
If you mean VS2005, let me tell you that the Express and Standard editions&lt;BR /&gt;
are, considering the bang for ye olde buck, almost free.&lt;BR /&gt;
As to the 'arcane' functionality' : working with COM in .NET has never been&lt;BR /&gt;
simpler. It's a breeze.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps,&lt;BR /&gt;
Nemorarius&lt;BR /&gt;
&lt;BR /&gt;
"Laurie Comerford" &lt;LAURIE.COMERFORD&gt; wrote in message&lt;BR /&gt;
news:5135137@discussion.autodesk.com...&lt;BR /&gt;
Hi Jason,&lt;BR /&gt;
&lt;BR /&gt;
No one is denying this capability, but is it relevant to a question where&lt;BR /&gt;
the user wants to carry out a very simple task (linking Excel and reacting&lt;BR /&gt;
to changes in Excel with changes in the drawing or visa versa) which does&lt;BR /&gt;
not need all this arcane functionality?&lt;BR /&gt;
&lt;BR /&gt;
More probably he also does not wish to purchase .NET to do this task.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
CADApps&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
&lt;BR /&gt;
&lt;JASON booth=""&gt; wrote in message news:5135130@discussion.autodesk.com...&lt;BR /&gt;
Just FYI, the .NET framework can easily access Autocad or Excel through COM&lt;BR /&gt;
interop, meaning you could write code in C# or VB.NET that can do whatever&lt;BR /&gt;
you could do with VBA. You can do this in versions of AutoCad as old as 2000&lt;BR /&gt;
(r15?).&lt;BR /&gt;
&lt;BR /&gt;
It's a bit more involved though, as you will be limited to a standalone exe&lt;BR /&gt;
or a dll. The advantage however is that you have access to all the .NET&lt;BR /&gt;
libraries and features, including reflection, serialization, System.IO, XML,&lt;BR /&gt;
etc...&lt;/JASON&gt;&lt;/LAURIE.COMERFORD&gt;</description>
      <pubDate>Fri, 07 Apr 2006 19:58:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574900#M36225</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-04-07T19:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: .NET or VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574901#M36226</link>
      <description>Did anyone actually answer your question ?&lt;BR /&gt;
I have also asked this question on this forum and gotten similar replies.  Here is what I think:&lt;BR /&gt;
&lt;BR /&gt;
.NET is more powerful, versatile and can give you better performance.&lt;BR /&gt;
&lt;BR /&gt;
but&lt;BR /&gt;
&lt;BR /&gt;
You have to compile and then install the resulting code on all of your CAD stations.  This may be simple if you have a domain with Active directory, but if you need to go to each station to do this it may not be worth it.&lt;BR /&gt;
&lt;BR /&gt;
Most customization requests I receive are simply automation of a series of commands that the users are tired of doing repeatedly.  These customizations can be efficiently completed and easily distributed with VBA.  Even the slightly more complex customizations can be nicely handled with VBA in my experience.&lt;BR /&gt;
&lt;BR /&gt;
The difference comes down to compiled vs interpreted code in my estimation.  The .NET version is compiled and therefore will perform better, but will need to be recompiled with every modification.  VBA is interpreted (it may be compiled to some level but semantically it is scripting and to me that means interpreted) so the performance isn't as good as .NET but development and distribution is simple and in general most tasks won't notice the hit in performance.&lt;BR /&gt;
&lt;BR /&gt;
So, I have yet to develop any customizations in .NET.  This may make me biased in my opinion, but I would welcome a constructive argument on this because I have not been able to justify tackling the learning curve in moving to .NET.  If someone can make a compelling case I would gladly move to it (I develop almost all other programs in .NET).&lt;BR /&gt;
&lt;BR /&gt;
Denis

Message was edited by: Discussion Admin</description>
      <pubDate>Mon, 10 Apr 2006 19:00:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574901#M36226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-04-10T19:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: .NET or VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574902#M36227</link>
      <description>it would seem Tony answered it in his first post. 04 has no net and 05 was&lt;BR /&gt;
week. The OP need both of these.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
gl - Paul&lt;BR /&gt;
&lt;TDCROTTY&gt; wrote in message news:5137891@discussion.autodesk.com...&lt;BR /&gt;
Did anyone actually answer your question ?&lt;BR /&gt;
I have also asked this question on this forum and gotten similar replies. &lt;BR /&gt;
Here is what I think:&lt;BR /&gt;
&lt;BR /&gt;
.NET is more powerful, versatile and can give you better performance.&lt;BR /&gt;
&lt;BR /&gt;
but&lt;BR /&gt;
&lt;BR /&gt;
You have to compile and then install the resulting code on all of your CAD &lt;BR /&gt;
stations.  This may be simple if you have a domain with Active directory, &lt;BR /&gt;
but if you need to go to each station to do this it may not be worth it.&lt;BR /&gt;
&lt;BR /&gt;
Most customization requests I receive are simply automation of a series of &lt;BR /&gt;
commands that the users are tired of doing repeatedly.  These customizations &lt;BR /&gt;
can be efficiently completed and easily distributed with VBA.  Even the &lt;BR /&gt;
slightly more complex customizations can be nicely handled with VBA in my &lt;BR /&gt;
experience.&lt;BR /&gt;
&lt;BR /&gt;
The difference comes down to compiled vs interpreted code in my estimation. &lt;BR /&gt;
The .NET version is compiled and therefore will perform better, but will &lt;BR /&gt;
need to be recompiled with every modification.  VBA is interpreted (it may &lt;BR /&gt;
be compiled to some level but semantically it is scripting and to me that &lt;BR /&gt;
means interpreted) so the performance isn't as good as .NET but development &lt;BR /&gt;
and distribution is simple and in general most tasks won't notice the hit in &lt;BR /&gt;
performance.&lt;BR /&gt;
&lt;BR /&gt;
So, I have yet to develop any customizations in .NET.  This may make me &lt;BR /&gt;
biased in my opinion, but I would welcome a constructive argument on this &lt;BR /&gt;
because I have not been able to justify tackling the learning curve in &lt;BR /&gt;
moving to .NET.  If someone can make a compelling case I would gladly move &lt;BR /&gt;
to it (I develop almost all other programs in .NET).&lt;BR /&gt;
&lt;BR /&gt;
Denis&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: Discussion Admin&lt;/TDCROTTY&gt;</description>
      <pubDate>Mon, 10 Apr 2006 20:41:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574902#M36227</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-04-10T20:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: .NET or VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574903#M36228</link>
      <description>It's quite easy to make a COM object in .NET that you simply call using VBA, regardless of what version of AutoCad is running. The real limit is whether or not your version has access to VBA. If it does, you can simply import the type library you create using .NET.&lt;BR /&gt;
&lt;BR /&gt;
Why would you want to do this? It depends on what you want to do. .NET can do everything that VBA can do; it simply uses a different syntax. It is even possible to run old VBA code by using one of the predefined .NET classes. You gain access to the advanced tools .NET has to offer.&lt;BR /&gt;
&lt;BR /&gt;
The big advantage of using VBA is that you can write code for any version of AutoCad later than 2000 inside the application. You then simply run the code you need through a macro. With .NET to do the same thing you need to learn how to write a COM class, and how to register it before you can call it from AutoCad. ie: it is much more difficult.&lt;BR /&gt;
&lt;BR /&gt;
Simply put, if you don't need the .NET library for anything, and don't expect to, go ahead and use VBA. I doubt Autodesk will remove the VBA ide from their applications any time soon - quite a few people would decide not to upgrade if they did.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
btw, part of the original poster's question asked what the advantages/disadvantages are for VBA/.NET. I only wanted to point out that it is possible to use .NET on any version of AutoCad that supports VBA, and that VBA is not your only option.</description>
      <pubDate>Mon, 10 Apr 2006 22:26:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574903#M36228</guid>
      <dc:creator>jbooth</dc:creator>
      <dc:date>2006-04-10T22:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: .NET or VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574904#M36229</link>
      <description>The AutoCAD .NET API available post 2005 is more powerful than the ActiveX API and is the reason I promote using .NET. I don't see the gain in using .NET if you are still going to use the ActiveX API as I believe some are.&lt;BR /&gt;
&lt;BR /&gt;
Regards - Nathan</description>
      <pubDate>Mon, 10 Apr 2006 23:15:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574904#M36229</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-04-10T23:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: .NET or VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574905#M36230</link>
      <description>this is using .net the same as VB6. I thought the OP was asking&lt;BR /&gt;
about using the .net libraries not activex.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
gl - Paul&lt;BR /&gt;
&lt;JASON booth=""&gt; wrote in message news:5138211@discussion.autodesk.com...&lt;BR /&gt;
It's quite easy to make a COM object in .NET that you simply call using VBA, &lt;BR /&gt;
regardless of what version of AutoCad is running. The real limit is whether &lt;BR /&gt;
or not your version has access to VBA. If it does, you can simply import the &lt;BR /&gt;
type library you create using .NET.&lt;BR /&gt;
&lt;BR /&gt;
Why would you want to do this? It depends on what you want to do. .NET can &lt;BR /&gt;
do everything that VBA can do; it simply uses a different syntax. It is even &lt;BR /&gt;
possible to run old VBA code by using one of the predefined .NET classes. &lt;BR /&gt;
You gain access to the advanced tools .NET has to offer.&lt;BR /&gt;
&lt;BR /&gt;
The big advantage of using VBA is that you can write code for any version of &lt;BR /&gt;
AutoCad later than 2000 inside the application. You then simply run the code &lt;BR /&gt;
you need through a macro. With .NET to do the same thing you need to learn &lt;BR /&gt;
how to write a COM class, and how to register it before you can call it from &lt;BR /&gt;
AutoCad. ie: it is much more difficult.&lt;BR /&gt;
&lt;BR /&gt;
Simply put, if you don't need the .NET library for anything, and don't &lt;BR /&gt;
expect to, go ahead and use VBA. I doubt Autodesk will remove the VBA ide &lt;BR /&gt;
from their applications any time soon - quite a few people would decide not &lt;BR /&gt;
to upgrade if they did.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
btw, part of the original poster's question asked what the &lt;BR /&gt;
advantages/disadvantages are for VBA/.NET. I only wanted to point out that &lt;BR /&gt;
it is possible to use .NET on any version of AutoCad that supports VBA, and &lt;BR /&gt;
that VBA is not your only option.&lt;/JASON&gt;</description>
      <pubDate>Mon, 10 Apr 2006 23:21:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574905#M36230</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-04-10T23:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: .NET or VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574906#M36231</link>
      <description>Hi Nathan,&lt;BR /&gt;
&lt;BR /&gt;
Could you expand on "more powerful"?&lt;BR /&gt;
&lt;BR /&gt;
It sounds a wonderful ambit claim, but how is it actually invoked?&lt;BR /&gt;
&lt;BR /&gt;
Does the power become apparent to the user - or the programmer?&lt;BR /&gt;
I ask this question in particular, because our Advanced Road Design program &lt;BR /&gt;
written in VBA with VB6 DLLs runs so much quicker than AutoCAD's equivalent &lt;BR /&gt;
processes in Civil 3D that it is not even vaguely funny.&lt;BR /&gt;
&lt;BR /&gt;
Does it compute and draw objects in AutoCAD significantly quicker than VBA &lt;BR /&gt;
or lisp?&lt;BR /&gt;
&lt;BR /&gt;
Does it extract information from a drawing and make it available in another &lt;BR /&gt;
format significantly quicker than VBA or lisp?&lt;BR /&gt;
&lt;BR /&gt;
Does it enable the programmer to develop an interface more rapidly than &lt;BR /&gt;
VBA/VB?&lt;BR /&gt;
(I won't include lisp in this question for obvious reasons)&lt;BR /&gt;
&lt;BR /&gt;
Does it provide help files related to the AutoCAD interface to help the new &lt;BR /&gt;
user get started?&lt;BR /&gt;
&lt;BR /&gt;
Is there any significant quantity of sample code relative to AutoCAD &lt;BR /&gt;
available, and from where?&lt;BR /&gt;
&lt;BR /&gt;
I know it does lots of other things which you can't do easily with VBA or &lt;BR /&gt;
lisp, but which of those things are significant to an AutoCAD customiser?&lt;BR /&gt;
&lt;BR /&gt;
Tony Zanzillo mentioned in one of his posts (while continuing his &lt;BR /&gt;
denigration of VB/VBA programmers as distinct from the tools they use), that &lt;BR /&gt;
the algorithms and code are very important.  Is it possible the .NET will &lt;BR /&gt;
provide an environment where the algorithms are "improved" despite the &lt;BR /&gt;
programmer?&lt;BR /&gt;
&lt;BR /&gt;
Does the error handling in .NET improve significantly on what is available &lt;BR /&gt;
in VB/VBA?&lt;BR /&gt;
&lt;BR /&gt;
Is it easier for the programmer to invoke error handling?&lt;BR /&gt;
&lt;BR /&gt;
I'd ask these questions of Tony as well, but he is incapable of answering &lt;BR /&gt;
with a fact as distinct from personal abuse.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;NATHAN taylor=""&gt; wrote in message news:5138253@discussion.autodesk.com...&lt;BR /&gt;
The AutoCAD .NET API available post 2005 is more powerful than the ActiveX &lt;BR /&gt;
API and is the reason I promote using .NET. I don't see the gain in using &lt;BR /&gt;
.NET if you are still going to use the ActiveX API as I believe some are.&lt;BR /&gt;
&lt;BR /&gt;
Regards - Nathan&lt;/NATHAN&gt;</description>
      <pubDate>Mon, 10 Apr 2006 23:51:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574906#M36231</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-04-10T23:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: .NET or VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574907#M36232</link>
      <description>I haven't got time to answer all your questions and Tony probably will anyway.&lt;BR /&gt;
&lt;BR /&gt;
.NET has structured error handling aswell as unstructured like VBA. Structured is a vast improvement over unstructured. Here Is how it works:&lt;BR /&gt;
&lt;BR /&gt;
Try&lt;BR /&gt;
   'Do stuff that might poduce error&lt;BR /&gt;
   Catch&lt;BR /&gt;
      'React to exception&lt;BR /&gt;
   Finally&lt;BR /&gt;
      'Do stuff whether or not there is an exception&lt;BR /&gt;
End Try&lt;BR /&gt;
&lt;BR /&gt;
There is a bit more to it such as the Catch statement can have parameters and there can be multiple catch statements.&lt;BR /&gt;
&lt;BR /&gt;
One thing the .NET API has is a Jig class that allows you to do dynamic graphic manipulation. This is a major nuisance with my VBA routines and I had tried many workarounds but they all had side effects I was not happy with and were very complex.&lt;BR /&gt;
&lt;BR /&gt;
There is now also a .NET API for the CUI.&lt;BR /&gt;
&lt;BR /&gt;
Regards - Nathan</description>
      <pubDate>Tue, 11 Apr 2006 00:26:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574907#M36232</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-04-11T00:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: .NET or VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574908#M36233</link>
      <description>".....There is now also a .NET API for the CUI."&lt;BR /&gt;
&lt;BR /&gt;
OH Boy!</description>
      <pubDate>Tue, 11 Apr 2006 21:22:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/net-or-vba/m-p/1574908#M36233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-04-11T21:22:21Z</dc:date>
    </item>
  </channel>
</rss>

