<?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: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/speed-difference-between-vb-and-vba/m-p/353853#M73550</link>
    <description>set a reference to the dll in your project and it's public subs and&lt;BR /&gt;
functions and classes become available.&lt;BR /&gt;
tools|references&lt;BR /&gt;
if it doesn't show up in the list means it needs to be registered with&lt;BR /&gt;
regsvr but I didn't find that necessary, somehow it just found my dll&lt;BR /&gt;
automatically.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
David M. Gardner &lt;DGARDNER&gt; wrote in message&lt;BR /&gt;
news:D0BE4B99BA8409AFBF968FB2B53BAB2E@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Once you compile to an Activex.dll how do you access the programs?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;/DGARDNER&gt;</description>
    <pubDate>Fri, 07 Jun 2002 06:29:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2002-06-07T06:29:07Z</dc:date>
    <item>
      <title>Speed difference between VB and VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/speed-difference-between-vb-and-vba/m-p/353850#M73547</link>
      <description>I have a routine I created in VBA to automate some processes that I brought&lt;BR /&gt;
over to VB so I can compile into and EXE.  The strange thing is that the VB&lt;BR /&gt;
exe that is made takes almost 4 times the longer to do the processes VBA&lt;BR /&gt;
does.&lt;BR /&gt;
&lt;BR /&gt;
Granted I am not a savvy VB guru but shouldn't the same code that was in VBA&lt;BR /&gt;
be just as fast or faster?&lt;BR /&gt;
&lt;BR /&gt;
TIA&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
  |&lt;BR /&gt;
-+-------------------------------------------------&lt;BR /&gt;
  | Rob "in search of the elusive RR" Starz&lt;BR /&gt;
  | Stardsign cad solutions&lt;BR /&gt;
  | AEC Designer / Consultant / Developer&lt;BR /&gt;
  | Arch Desktop tools www.stardsign.com/adtcadpacx.htm</description>
      <pubDate>Fri, 07 Jun 2002 06:20:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/speed-difference-between-vb-and-vba/m-p/353850#M73547</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-06-07T06:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Speed difference between VB and VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/speed-difference-between-vb-and-vba/m-p/353851#M73548</link>
      <description>Seems like there was a post on this just a couple days ago... to answer your&lt;BR /&gt;
question in breif, no an executable will not be as fast as a vba macro, in&lt;BR /&gt;
fact it can be dramatically slower. The main reason being that the&lt;BR /&gt;
executable runs out-of-process with AutoCAD, whereas vba macros run&lt;BR /&gt;
in-process, sharing the same memory space. If you compile into an activex&lt;BR /&gt;
dll then you will see your speed come back.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
  Jacob Dinardi&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Rob Starz" &lt;ROB&gt; wrote in message&lt;BR /&gt;
news:9FF12406F7883E30F77870DD66AB7195@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I have a routine I created in VBA to automate some processes that I&lt;BR /&gt;
brought&lt;BR /&gt;
&amp;gt; over to VB so I can compile into and EXE.  The strange thing is that the&lt;BR /&gt;
VB&lt;BR /&gt;
&amp;gt; exe that is made takes almost 4 times the longer to do the processes VBA&lt;BR /&gt;
&amp;gt; does.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Granted I am not a savvy VB guru but shouldn't the same code that was in&lt;BR /&gt;
VBA&lt;BR /&gt;
&amp;gt; be just as fast or faster?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; TIA&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt;   |&lt;BR /&gt;
&amp;gt; -+-------------------------------------------------&lt;BR /&gt;
&amp;gt;   | Rob "in search of the elusive RR" Starz&lt;BR /&gt;
&amp;gt;   | Stardsign cad solutions&lt;BR /&gt;
&amp;gt;   | AEC Designer / Consultant / Developer&lt;BR /&gt;
&amp;gt;   | Arch Desktop tools www.stardsign.com/adtcadpacx.htm&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/ROB&gt;</description>
      <pubDate>Fri, 07 Jun 2002 06:23:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/speed-difference-between-vb-and-vba/m-p/353851#M73548</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-06-07T06:23:46Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/speed-difference-between-vb-and-vba/m-p/353852#M73549</link>
      <description>Once you compile to an Activex.dll how do you access the programs?&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
&lt;BR /&gt;
Dave Gardner&lt;BR /&gt;
"Jacob Dinardi" &lt;JACOBD&gt; wrote in message&lt;BR /&gt;
news:57531F049E41C638EB5FA127AF4F5306@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Seems like there was a post on this just a couple days ago... to answer&lt;BR /&gt;
your&lt;BR /&gt;
&amp;gt; question in breif, no an executable will not be as fast as a vba macro, in&lt;BR /&gt;
&amp;gt; fact it can be dramatically slower. The main reason being that the&lt;BR /&gt;
&amp;gt; executable runs out-of-process with AutoCAD, whereas vba macros run&lt;BR /&gt;
&amp;gt; in-process, sharing the same memory space. If you compile into an activex&lt;BR /&gt;
&amp;gt; dll then you will see your speed come back.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Regards,&lt;BR /&gt;
&amp;gt;   Jacob Dinardi&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Rob Starz" &lt;ROB&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:9FF12406F7883E30F77870DD66AB7195@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; I have a routine I created in VBA to automate some processes that I&lt;BR /&gt;
&amp;gt; brought&lt;BR /&gt;
&amp;gt; &amp;gt; over to VB so I can compile into and EXE.  The strange thing is that the&lt;BR /&gt;
&amp;gt; VB&lt;BR /&gt;
&amp;gt; &amp;gt; exe that is made takes almost 4 times the longer to do the processes VBA&lt;BR /&gt;
&amp;gt; &amp;gt; does.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Granted I am not a savvy VB guru but shouldn't the same code that was in&lt;BR /&gt;
&amp;gt; VBA&lt;BR /&gt;
&amp;gt; &amp;gt; be just as fast or faster?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; TIA&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt;   |&lt;BR /&gt;
&amp;gt; &amp;gt; -+-------------------------------------------------&lt;BR /&gt;
&amp;gt; &amp;gt;   | Rob "in search of the elusive RR" Starz&lt;BR /&gt;
&amp;gt; &amp;gt;   | Stardsign cad solutions&lt;BR /&gt;
&amp;gt; &amp;gt;   | AEC Designer / Consultant / Developer&lt;BR /&gt;
&amp;gt; &amp;gt;   | Arch Desktop tools www.stardsign.com/adtcadpacx.htm&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/ROB&gt;&lt;/JACOBD&gt;</description>
      <pubDate>Fri, 07 Jun 2002 06:29:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/speed-difference-between-vb-and-vba/m-p/353852#M73549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-06-07T06:29:07Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/speed-difference-between-vb-and-vba/m-p/353853#M73550</link>
      <description>set a reference to the dll in your project and it's public subs and&lt;BR /&gt;
functions and classes become available.&lt;BR /&gt;
tools|references&lt;BR /&gt;
if it doesn't show up in the list means it needs to be registered with&lt;BR /&gt;
regsvr but I didn't find that necessary, somehow it just found my dll&lt;BR /&gt;
automatically.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
David M. Gardner &lt;DGARDNER&gt; wrote in message&lt;BR /&gt;
news:D0BE4B99BA8409AFBF968FB2B53BAB2E@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Once you compile to an Activex.dll how do you access the programs?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;/DGARDNER&gt;</description>
      <pubDate>Fri, 07 Jun 2002 06:29:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/speed-difference-between-vb-and-vba/m-p/353853#M73550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-06-07T06:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Speed difference between VB and VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/speed-difference-between-vb-and-vba/m-p/353854#M73551</link>
      <description>I'm no expert, but what you are experiencing is normal.  I think it has to do&lt;BR /&gt;
with the fact that with VB, when you make calls to the AutoCAD object model&lt;BR /&gt;
(what is referred to as Automation), this is just an inherently slower process&lt;BR /&gt;
than making the same calls directly inside a program via VBA.&lt;BR /&gt;
&lt;BR /&gt;
** If anybody knows otherwise, please feel free to correct me on this matter&lt;BR /&gt;
&lt;BR /&gt;
Mark Sanchez&lt;BR /&gt;
&lt;BR /&gt;
Rob Starz wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; I have a routine I created in VBA to automate some processes that I brought&lt;BR /&gt;
&amp;gt; over to VB so I can compile into and EXE.  The strange thing is that the VB&lt;BR /&gt;
&amp;gt; exe that is made takes almost 4 times the longer to do the processes VBA&lt;BR /&gt;
&amp;gt; does.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Granted I am not a savvy VB guru but shouldn't the same code that was in VBA&lt;BR /&gt;
&amp;gt; be just as fast or faster?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; TIA&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt;   |&lt;BR /&gt;
&amp;gt; -+-------------------------------------------------&lt;BR /&gt;
&amp;gt;   | Rob "in search of the elusive RR" Starz&lt;BR /&gt;
&amp;gt;   | Stardsign cad solutions&lt;BR /&gt;
&amp;gt;   | AEC Designer / Consultant / Developer&lt;BR /&gt;
&amp;gt;   | Arch Desktop tools www.stardsign.com/adtcadpacx.htm</description>
      <pubDate>Fri, 07 Jun 2002 06:47:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/speed-difference-between-vb-and-vba/m-p/353854#M73551</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-06-07T06:47:20Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/speed-difference-between-vb-and-vba/m-p/353855#M73552</link>
      <description>Your right, it's MUCH slower to work out-of-process. For virtually the same speed as vba make your project a dll with a class to recieve the autocad application from your vba project. In your vba project call the class and set the application to ThisDrawing.Application or if your only working with the active drawing you could do the same thing with that. You will be happy.</description>
      <pubDate>Fri, 07 Jun 2002 06:54:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/speed-difference-between-vb-and-vba/m-p/353855#M73552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-06-07T06:54:47Z</dc:date>
    </item>
  </channel>
</rss>

