<?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 vs vba ?? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142991#M76035</link>
    <description>If you're ready to start learning vb.net you can get started at no cost.&lt;BR /&gt;
&lt;BR /&gt;
Download the vb.net express edition for free from microsoft, and check out kean's blog post on debugging autocad with .net express editions.  Threre are some really good AU handouts on vb.net.  All links are in the following post.&lt;BR /&gt;
&lt;BR /&gt;
http://civil3dblog.com/2007/12/01/autocad-civil3d-debugging-with-net-express/&lt;BR /&gt;
&lt;BR /&gt;
If you do start out learning VBA most of your coding experience can be moved over to vb.net.  I started out coding standalone vb.net applications.  Simple engineering calculations, channel flow, etc.  This really helped me learn visual basic in general.  There are a lot of samples out there.  Come up with an idea that you want your application to do and get started.  If you need help there are lots of vba/.net discussion groups.  Don't be afraid to stray beyond the autodesk groups.  There are a lot of people out there willing to help.&lt;BR /&gt;
&lt;BR /&gt;
Good luck, happy coding.</description>
    <pubDate>Fri, 21 Dec 2007 11:55:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-12-21T11:55:33Z</dc:date>
    <item>
      <title>.net vs vba ??</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142984#M76028</link>
      <description>I am considering learning .net / and or VBA, I am getting direction to go &lt;BR /&gt;
with .net.&lt;BR /&gt;
Can anyone tell me the differences between the two?  i.e. is .net way &lt;BR /&gt;
harder, but more powerfull?&lt;BR /&gt;
Does .net have all the same functionality as vba?&lt;BR /&gt;
&lt;BR /&gt;
Thanks a million, - a newbie to vb</description>
      <pubDate>Thu, 20 Dec 2007 15:32:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142984#M76028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-12-20T15:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: .net vs vba ??</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142985#M76029</link>
      <description>Way harder, but definitely more powerful.  If you haven't done so already, check here:&lt;BR /&gt;
&lt;BR /&gt;
http://forums.augi.com/showthread.php?t=67675&lt;BR /&gt;
&lt;BR /&gt;
Your choice of what to do will depend on what your objective is.  Are you going to be a software developer, making add-on packages/extensions for sale?  Are you going to be a CAD support person, customizing AutoCAD to support a companies internal needs and maintaining its current system?  Are you "just a user" (no offense, can't think of a better term) looking for a few extra shortcuts to make your own work processes faster?&lt;BR /&gt;
&lt;BR /&gt;
Naturally, if you ask in the .NET area, most responses will be to promote .NET, rather than VBA.  Same thing in the VBA area, but with a lower percentage.

Message was edited by: dgorsman</description>
      <pubDate>Thu, 20 Dec 2007 15:50:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142985#M76029</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2007-12-20T15:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: .net vs vba ??</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142986#M76030</link>
      <description>And a lot more easier to crash AutoCAD, if your programming skill is not up &lt;BR /&gt;
to "professional level".&lt;BR /&gt;
&lt;BR /&gt;
"dgorsman" wrote in message news:5805929@discussion.autodesk.com...&lt;BR /&gt;
Way harder, but definitely more powerful.  If you haven't done so already, &lt;BR /&gt;
check here:&lt;BR /&gt;
&lt;BR /&gt;
http://forums.augi.com/showthread.php?t=67675&lt;BR /&gt;
&lt;BR /&gt;
Your choice of what to do will depend on what your objective is.  Are you &lt;BR /&gt;
going to be a software developer, making add-on packages/extensions for &lt;BR /&gt;
sale?  Are you going to be a CAD support person, customizing AutoCAD to &lt;BR /&gt;
support a companies internal needs and maintaining its current system?  Are &lt;BR /&gt;
you "just a user" (no offense, can't think of a better term) looking for a &lt;BR /&gt;
few extra shortcuts to make your own work processes faster?&lt;BR /&gt;
&lt;BR /&gt;
Naturally, if you ask in the .NET area, most responses will be to promote &lt;BR /&gt;
.NET, rather than VBA.  Same thing in the VBA area, but with a lower &lt;BR /&gt;
percentage.&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: dgorsman</description>
      <pubDate>Thu, 20 Dec 2007 17:09:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142986#M76030</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-12-20T17:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: .net vs vba ??</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142987#M76031</link>
      <description>If you learn VBA you will be limited (mostly) to programming with Autocad, Word, Excel, etc...&lt;BR /&gt;
&lt;BR /&gt;
If you learn .NET you will not have this limitation, but you will have more difficulty accessing the Autocad API. However, if you learn how to create and manipulate activeX objects, you can do just as much as if you were using VBA.&lt;BR /&gt;
&lt;BR /&gt;
It's up to you how far you want to go. If you want to write Autocad macros use VBA. The Autocad VBA package can do most of the things that most people want done when it comes to Autocad. If you want to use the extensive .NET libraries to do more involved things (ex: create web components or database connections) use .NET.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Most importantly is that using .NET doesn't necessarily mean you need to use the ObjectARX .NET managed wrappers. You can easily use COM interop and write code similar to what would be seen in Autocad VBA.&lt;BR /&gt;
&lt;BR /&gt;
Too bad you have to buy Visual Studio in order to use .NET. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 20 Dec 2007 17:57:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142987#M76031</guid>
      <dc:creator>jbooth</dc:creator>
      <dc:date>2007-12-20T17:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: .net vs vba ??</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142988#M76032</link>
      <description>For starters, my advice would be to not put too much stock in the AUGI thread you were pointed you to, because the participants make it clear in that thread, that they're somewhat misinformed, and its also a known fact that some of them have little-to-no practical experience with .NET, which means they are basically guessing and speculating, and are unable to offer a qualified opinion. &lt;BR /&gt;
&lt;BR /&gt;
It isn't always a question of what is 'easier'. It's also a question of what is the best investment in terms of the future.&lt;BR /&gt;
&lt;BR /&gt;
I fully expect a large number of AutoCADs to be running on 64 bit machines in the not-too-distant future, mainly because of its ability to address greater amounts of RAM, and the many benefits that offers to AutoCAD users, most of whom are pushing their current 32 bit hardware to its limits.&lt;BR /&gt;
&lt;BR /&gt;
Microsoft has already made it clear that there will be no port of VBA to 64 bit, and if we consider just that one simple fact, I think the choice is a no-brainer. The 'hack' that Autodesk and others have resorted to in 64 bit versions of their applications, essentially amonts to running VBA as a seperate 32-bit process, which means that performance suffers to the extent that any use of VBA is like dragging around a ball and chain, and completely unacceptable for most.&lt;BR /&gt;
&lt;BR /&gt;
If you look in the VBA newsgroup, you will see many who experience the same set of common problems, and the kind of 'kludges' they are forced to use to work around them. Some of them are not only ugly, but they also don't work all of the time, and only tend to create as many or more problems than they attempt to solve.&lt;BR /&gt;
&lt;BR /&gt;
For example, .NET lets you use the AutoCAD command line in the exact same way you can with LISP's (command) function, which for many things, represents the shortest distance between two points, and a much easier way to just get something done without all the headaches you have doing the equvalent in VBA with it's hideous 'SendCommand' kludge-o-rama.&lt;BR /&gt;
&lt;BR /&gt;
Another important factor is that .NET allows you to use the same ActiveX API that VBA uses, which means that you can use it from .NET and avoid the more difficult-to-use managed ObjectARX API until you are comfortable with it. You can also freely mix both ActiveX and managed APIs in the same code, which means that you can gradually tap into the managed API in small and measured ways, and use it to solve problems that ActiveX doesn't offer good solutions for.&lt;BR /&gt;
&lt;BR /&gt;
What that means is that with .NET, you have access to the best features and aspects of each of AutoCAD's APIs, rolled into one seamless environment:&lt;BR /&gt;
&lt;BR /&gt;
  1. The ability to script the command line easily &lt;BR /&gt;
      and synchronously as you can do from LISP.&lt;BR /&gt;
&lt;BR /&gt;
  2. Access to the same ActiveX API that VBA is based on.&lt;BR /&gt;
&lt;BR /&gt;
  3. Access to the much more powerful managed ObjectARX &lt;BR /&gt;
      API for cases where its power is warranted.&lt;BR /&gt;
&lt;BR /&gt;
Finally, you also have all the power which the .NET framework offers for all types of development, like much richer user interfaces; database access; internet and XML development, and you get that without any of the hideous 'baggage' that comparable ActiveX-based applications written in VB or VBA must tow around with them.&lt;BR /&gt;
&lt;BR /&gt;
Is the VB.NET language more difficult to learn than VBA? I don't think it is. &lt;BR /&gt;
&lt;BR /&gt;
Many people tend to confuse languages and the APIs used with them. In terms of the language alone, VB.NET was designed to make it easy for VB programmers to migrate to, and isn't much more difficult to learn.&lt;BR /&gt;
&lt;BR /&gt;
However, the .NET framework is a very large _API_ that VBA does not have access to in the first place. And yes, learning to use that API is certainly something that VBA programmers don't have to contend with. Learning to drive a Formula 1 race car also takes longer than learning to ride a three-wheeled tricycle.&lt;BR /&gt;
&lt;BR /&gt;
As far as VBA goes, I would summarize it thusly: &lt;BR /&gt;
&lt;BR /&gt;
   "No pain, no gain".&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 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com</description>
      <pubDate>Thu, 20 Dec 2007 19:03:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142988#M76032</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-12-20T19:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: .net vs vba ??</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142989#M76033</link>
      <description>&amp;gt;Too bad you have to buy Visual Studio in order to use .NET. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
No you don't.  I use the free SharpDevelop and am able to code up .Net (C#) to use within Acad.&lt;BR /&gt;
&lt;BR /&gt;
http://www.icsharpcode.net/OpenSource/SD/</description>
      <pubDate>Fri, 21 Dec 2007 00:09:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142989#M76033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-12-21T00:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: .net vs vba ??</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142990#M76034</link>
      <description>SharpDevelop is great, and there also the Express versions of Visual Studio that are free as well.&lt;BR /&gt;
&lt;BR /&gt;
No one else has mentioned it but if you're going to go the .NET route rather than VBA I would recommend going with C# rather than VB.NET it's not really that much more complicated and you get even alot more benefit from C# than you with VB.NET, let alone you will find alot more Autocad examples in C# than VB.NET&lt;BR /&gt;
&lt;BR /&gt;
But either one is fine.</description>
      <pubDate>Fri, 21 Dec 2007 00:25:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142990#M76034</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-12-21T00:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: .net vs vba ??</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142991#M76035</link>
      <description>If you're ready to start learning vb.net you can get started at no cost.&lt;BR /&gt;
&lt;BR /&gt;
Download the vb.net express edition for free from microsoft, and check out kean's blog post on debugging autocad with .net express editions.  Threre are some really good AU handouts on vb.net.  All links are in the following post.&lt;BR /&gt;
&lt;BR /&gt;
http://civil3dblog.com/2007/12/01/autocad-civil3d-debugging-with-net-express/&lt;BR /&gt;
&lt;BR /&gt;
If you do start out learning VBA most of your coding experience can be moved over to vb.net.  I started out coding standalone vb.net applications.  Simple engineering calculations, channel flow, etc.  This really helped me learn visual basic in general.  There are a lot of samples out there.  Come up with an idea that you want your application to do and get started.  If you need help there are lots of vba/.net discussion groups.  Don't be afraid to stray beyond the autodesk groups.  There are a lot of people out there willing to help.&lt;BR /&gt;
&lt;BR /&gt;
Good luck, happy coding.</description>
      <pubDate>Fri, 21 Dec 2007 11:55:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142991#M76035</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-12-21T11:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: .net vs vba ??</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142992#M76036</link>
      <description>Thanks Tony!&lt;BR /&gt;
&lt;BR /&gt;
What about the vb.net versus c++.net thing?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
Robert Quinn&lt;BR /&gt;
President RCM,Inc., Revcam, LLC, Heliforming Technologies&lt;BR /&gt;
Tel: 586-336-1237&lt;BR /&gt;
Fax: 586-336-1287&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO&gt; wrote in message &lt;BR /&gt;
news:5806149@discussion.autodesk.com...&lt;BR /&gt;
For starters, my advice would be to not put too much stock in the AUGI &lt;BR /&gt;
thread you were pointed you to, because the participants make it clear in &lt;BR /&gt;
that thread, that they're somewhat misinformed, and its also a known fact &lt;BR /&gt;
that some of them have little-to-no practical experience with .NET, which &lt;BR /&gt;
means they are basically guessing and speculating, and are unable to offer a &lt;BR /&gt;
qualified opinion.&lt;BR /&gt;
&lt;BR /&gt;
It isn't always a question of what is 'easier'. It's also a question of what &lt;BR /&gt;
is the best investment in terms of the future.&lt;BR /&gt;
&lt;BR /&gt;
I fully expect a large number of AutoCADs to be running on 64 bit machines &lt;BR /&gt;
in the not-too-distant future, mainly because of its ability to address &lt;BR /&gt;
greater amounts of RAM, and the many benefits that offers to AutoCAD users, &lt;BR /&gt;
most of whom are pushing their current 32 bit hardware to its limits.&lt;BR /&gt;
&lt;BR /&gt;
Microsoft has already made it clear that there will be no port of VBA to 64 &lt;BR /&gt;
bit, and if we consider just that one simple fact, I think the choice is a &lt;BR /&gt;
no-brainer. The 'hack' that Autodesk and others have resorted to in 64 bit &lt;BR /&gt;
versions of their applications, essentially amonts to running VBA as a &lt;BR /&gt;
seperate 32-bit process, which means that performance suffers to the extent &lt;BR /&gt;
that any use of VBA is like dragging around a ball and chain, and completely &lt;BR /&gt;
unacceptable for most.&lt;BR /&gt;
&lt;BR /&gt;
If you look in the VBA newsgroup, you will see many who experience the same &lt;BR /&gt;
set of common problems, and the kind of 'kludges' they are forced to use to &lt;BR /&gt;
work around them. Some of them are not only ugly, but they also don't work &lt;BR /&gt;
all of the time, and only tend to create as many or more problems than they &lt;BR /&gt;
attempt to solve.&lt;BR /&gt;
&lt;BR /&gt;
For example, .NET lets you use the AutoCAD command line in the exact same &lt;BR /&gt;
way you can with LISP's (command) function, which for many things, &lt;BR /&gt;
represents the shortest distance between two points, and a much easier way &lt;BR /&gt;
to just get something done without all the headaches you have doing the &lt;BR /&gt;
equvalent in VBA with it's hideous 'SendCommand' kludge-o-rama.&lt;BR /&gt;
&lt;BR /&gt;
Another important factor is that .NET allows you to use the same ActiveX API &lt;BR /&gt;
that VBA uses, which means that you can use it from .NET and avoid the more &lt;BR /&gt;
difficult-to-use managed ObjectARX API until you are comfortable with it. &lt;BR /&gt;
You can also freely mix both ActiveX and managed APIs in the same code, &lt;BR /&gt;
which means that you can gradually tap into the managed API in small and &lt;BR /&gt;
measured ways, and use it to solve problems that ActiveX doesn't offer good &lt;BR /&gt;
solutions for.&lt;BR /&gt;
&lt;BR /&gt;
What that means is that with .NET, you have access to the best features and &lt;BR /&gt;
aspects of each of AutoCAD's APIs, rolled into one seamless environment:&lt;BR /&gt;
&lt;BR /&gt;
  1. The ability to script the command line easily&lt;BR /&gt;
      and synchronously as you can do from LISP.&lt;BR /&gt;
&lt;BR /&gt;
  2. Access to the same ActiveX API that VBA is based on.&lt;BR /&gt;
&lt;BR /&gt;
  3. Access to the much more powerful managed ObjectARX&lt;BR /&gt;
      API for cases where its power is warranted.&lt;BR /&gt;
&lt;BR /&gt;
Finally, you also have all the power which the .NET framework offers for all &lt;BR /&gt;
types of development, like much richer user interfaces; database access; &lt;BR /&gt;
internet and XML development, and you get that without any of the hideous &lt;BR /&gt;
'baggage' that comparable ActiveX-based applications written in VB or VBA &lt;BR /&gt;
must tow around with them.&lt;BR /&gt;
&lt;BR /&gt;
Is the VB.NET language more difficult to learn than VBA? I don't think it &lt;BR /&gt;
is.&lt;BR /&gt;
&lt;BR /&gt;
Many people tend to confuse languages and the APIs used with them. In terms &lt;BR /&gt;
of the language alone, VB.NET was designed to make it easy for VB &lt;BR /&gt;
programmers to migrate to, and isn't much more difficult to learn.&lt;BR /&gt;
&lt;BR /&gt;
However, the .NET framework is a very large _API_ that VBA does not have &lt;BR /&gt;
access to in the first place. And yes, learning to use that API is certainly &lt;BR /&gt;
something that VBA programmers don't have to contend with. Learning to drive &lt;BR /&gt;
a Formula 1 race car also takes longer than learning to ride a three-wheeled &lt;BR /&gt;
tricycle.&lt;BR /&gt;
&lt;BR /&gt;
As far as VBA goes, I would summarize it thusly:&lt;BR /&gt;
&lt;BR /&gt;
   "No pain, no gain".&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 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;/TONY.TANZILLO&gt;</description>
      <pubDate>Fri, 21 Dec 2007 15:07:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142992#M76036</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-12-21T15:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: .net vs vba ??</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142993#M76037</link>
      <description>It's mostly a personal preference, but I've always recommended C# for someone that is new to programming and has no prior experience with VB.&lt;BR /&gt;
&lt;BR /&gt;
There are several reasons for that.&lt;BR /&gt;
&lt;BR /&gt;
First, you will find more and better quality source code and examples written in C#, because it is the overwhelming choice of more experienced and professional programmers, most of whom have prior, extensive C++ experience. IOW, people who write code for a living, generally choose C# as their .NET langauge.&lt;BR /&gt;
&lt;BR /&gt;
The other reason relates to another aspect of learning .NET, which is its object oriented nature. and the fact that .NET is an object-oriented API. Both VB.NET and C# are true object-oriented programming langauges. Taking full advantage of either requires a reasonable understanding of the basic principles and concepts of OOP.  VBA and VB6 only 'flirt' with those concepts, and are not true OOP langauges, so a big hurdle in transitioning from either of those languages to any .NET langauge, is learning OOP concepts. &lt;BR /&gt;
&lt;BR /&gt;
If you're just starting out, IMO, it's far easier to grasp the basic concepts of OOP with C#, as compared to VB.NET. So, if you've never coded in any form of VB, my advice is to go the C# route.&lt;BR /&gt;
&lt;BR /&gt;
Additionlly, the latest version of C# uses functional programming to a greater extent (Functional programming is where code or functions that contain code, is treated just like other kinds of data). Since LISP is the premere functional programming langauge, if you are coming from a LISP background and are reasonably familiar with LISP's functional programming aspects (e.g, things like the (mapcar) and (foreach) fuctions), you can apply those same concepts in C#:&lt;BR /&gt;
&lt;BR /&gt;
For example:&lt;BR /&gt;
&lt;BR /&gt;
  (setq mylist '(100 200 300 400))&lt;BR /&gt;
&lt;BR /&gt;
  (setq result (mapcar '(lambda (x) (+ x 1)) mylist))&lt;BR /&gt;
&lt;BR /&gt;
  (print result)&lt;BR /&gt;
  -&amp;gt; (101 201 301 401)&lt;BR /&gt;
&lt;BR /&gt;
In C#:&lt;BR /&gt;
&lt;BR /&gt;
  List&lt;INT&gt; mylist = {100, 200, 300, 400};  // C# 3.0 only.&lt;BR /&gt;
&lt;BR /&gt;
  List&lt;INT&gt; result = mylist.ConvertAll&lt;INT&gt;(delegate(int x) {return x+1;});&lt;BR /&gt;
&lt;BR /&gt;
  Console.WriteLine(result.ToArray().ToString());&lt;BR /&gt;
&lt;BR /&gt;
  -&amp;gt; {101, 201, 301, 401}&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
In the above, these are functionally equivalent:&lt;BR /&gt;
&lt;BR /&gt;
    (lambda (x) (+ x 1))&lt;BR /&gt;
&lt;BR /&gt;
    delegate(int x) { return x + 1;}&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 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Bob Quinn" &lt;BOB&gt; wrote in message news:5806834@discussion.autodesk.com...&lt;BR /&gt;
Thanks Tony!&lt;BR /&gt;
&lt;BR /&gt;
What about the vb.net versus c++.net thing?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
Robert Quinn&lt;BR /&gt;
President RCM,Inc., Revcam, LLC, Heliforming Technologies&lt;BR /&gt;
Tel: 586-336-1237&lt;BR /&gt;
Fax: 586-336-1287&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO&gt; wrote in message &lt;BR /&gt;
news:5806149@discussion.autodesk.com...&lt;BR /&gt;
For starters, my advice would be to not put too much stock in the AUGI &lt;BR /&gt;
thread you were pointed you to, because the participants make it clear in &lt;BR /&gt;
that thread, that they're somewhat misinformed, and its also a known fact &lt;BR /&gt;
that some of them have little-to-no practical experience with .NET, which &lt;BR /&gt;
means they are basically guessing and speculating, and are unable to offer a &lt;BR /&gt;
qualified opinion.&lt;BR /&gt;
&lt;BR /&gt;
It isn't always a question of what is 'easier'. It's also a question of what &lt;BR /&gt;
is the best investment in terms of the future.&lt;BR /&gt;
&lt;BR /&gt;
I fully expect a large number of AutoCADs to be running on 64 bit machines &lt;BR /&gt;
in the not-too-distant future, mainly because of its ability to address &lt;BR /&gt;
greater amounts of RAM, and the many benefits that offers to AutoCAD users, &lt;BR /&gt;
most of whom are pushing their current 32 bit hardware to its limits.&lt;BR /&gt;
&lt;BR /&gt;
Microsoft has already made it clear that there will be no port of VBA to 64 &lt;BR /&gt;
bit, and if we consider just that one simple fact, I think the choice is a &lt;BR /&gt;
no-brainer. The 'hack' that Autodesk and others have resorted to in 64 bit &lt;BR /&gt;
versions of their applications, essentially amonts to running VBA as a &lt;BR /&gt;
seperate 32-bit process, which means that performance suffers to the extent &lt;BR /&gt;
that any use of VBA is like dragging around a ball and chain, and completely &lt;BR /&gt;
unacceptable for most.&lt;BR /&gt;
&lt;BR /&gt;
If you look in the VBA newsgroup, you will see many who experience the same &lt;BR /&gt;
set of common problems, and the kind of 'kludges' they are forced to use to &lt;BR /&gt;
work around them. Some of them are not only ugly, but they also don't work &lt;BR /&gt;
all of the time, and only tend to create as many or more problems than they &lt;BR /&gt;
attempt to solve.&lt;BR /&gt;
&lt;BR /&gt;
For example, .NET lets you use the AutoCAD command line in the exact same &lt;BR /&gt;
way you can with LISP's (command) function, which for many things, &lt;BR /&gt;
represents the shortest distance between two points, and a much easier way &lt;BR /&gt;
to just get something done without all the headaches you have doing the &lt;BR /&gt;
equvalent in VBA with it's hideous 'SendCommand' kludge-o-rama.&lt;BR /&gt;
&lt;BR /&gt;
Another important factor is that .NET allows you to use the same ActiveX API &lt;BR /&gt;
that VBA uses, which means that you can use it from .NET and avoid the more &lt;BR /&gt;
difficult-to-use managed ObjectARX API until you are comfortable with it. &lt;BR /&gt;
You can also freely mix both ActiveX and managed APIs in the same code, &lt;BR /&gt;
which means that you can gradually tap into the managed API in small and &lt;BR /&gt;
measured ways, and use it to solve problems that ActiveX doesn't offer good &lt;BR /&gt;
solutions for.&lt;BR /&gt;
&lt;BR /&gt;
What that means is that with .NET, you have access to the best features and &lt;BR /&gt;
aspects of each of AutoCAD's APIs, rolled into one seamless environment:&lt;BR /&gt;
&lt;BR /&gt;
  1. The ability to script the command line easily&lt;BR /&gt;
      and synchronously as you can do from LISP.&lt;BR /&gt;
&lt;BR /&gt;
  2. Access to the same ActiveX API that VBA is based on.&lt;BR /&gt;
&lt;BR /&gt;
  3. Access to the much more powerful managed ObjectARX&lt;BR /&gt;
      API for cases where its power is warranted.&lt;BR /&gt;
&lt;BR /&gt;
Finally, you also have all the power which the .NET framework offers for all &lt;BR /&gt;
types of development, like much richer user interfaces; database access; &lt;BR /&gt;
internet and XML development, and you get that without any of the hideous &lt;BR /&gt;
'baggage' that comparable ActiveX-based applications written in VB or VBA &lt;BR /&gt;
must tow around with them.&lt;BR /&gt;
&lt;BR /&gt;
Is the VB.NET language more difficult to learn than VBA? I don't think it &lt;BR /&gt;
is.&lt;BR /&gt;
&lt;BR /&gt;
Many people tend to confuse languages and the APIs used with them. In terms &lt;BR /&gt;
of the language alone, VB.NET was designed to make it easy for VB &lt;BR /&gt;
programmers to migrate to, and isn't much more difficult to learn.&lt;BR /&gt;
&lt;BR /&gt;
However, the .NET framework is a very large _API_ that VBA does not have &lt;BR /&gt;
access to in the first place. And yes, learning to use that API is certainly &lt;BR /&gt;
something that VBA programmers don't have to contend with. Learning to drive &lt;BR /&gt;
a Formula 1 race car also takes longer than learning to ride a three-wheeled &lt;BR /&gt;
tricycle.&lt;BR /&gt;
&lt;BR /&gt;
As far as VBA goes, I would summarize it thusly:&lt;BR /&gt;
&lt;BR /&gt;
   "No pain, no gain".&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 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;/TONY.TANZILLO&gt;&lt;/BOB&gt;&lt;/INT&gt;&lt;/INT&gt;&lt;/INT&gt;</description>
      <pubDate>Fri, 21 Dec 2007 16:41:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-vs-vba/m-p/2142993#M76037</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-12-21T16:41:40Z</dc:date>
    </item>
  </channel>
</rss>

