<?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/vba-loading-question/m-p/303625#M64982</link>
    <description>&amp;gt; I can go into VBAIDE to adjust the code for the error, but when I go back into AutoCAD 2002, it is still running the 'bad' code.  &lt;BR /&gt;&lt;BR /&gt;
  &lt;BR /&gt;&lt;BR /&gt;
Forgive me if I'm stating the obvious, but are you pressing the 'Reset' button (ie the one with the square on it) in the VBAIDE?  &lt;BR /&gt;&lt;BR /&gt;
  &lt;BR /&gt;&lt;BR /&gt;
If so, and your program is still running the 'bad' code, I'd suggest putting a Break Point on the line *before* the code you changed and then doing a Step Trace to see what is actually being executed.  &lt;BR /&gt;&lt;BR /&gt;
  &lt;BR /&gt;&lt;BR /&gt;
Regards  &lt;BR /&gt;&lt;BR /&gt;
  &lt;BR /&gt;&lt;BR /&gt;
Wayne Ivory  &lt;BR /&gt;&lt;BR /&gt;
IT Analyst Programmer  &lt;BR /&gt;&lt;BR /&gt;
Wespine Industries Pty Ltd  &lt;BR /&gt;</description>
    <pubDate>Thu, 20 Mar 2003 17:50:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2003-03-20T17:50:25Z</dc:date>
    <item>
      <title>VBA loading question...</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-loading-question/m-p/303621#M64978</link>
      <description>When I'm working on a VBA project (dvb file) and I'm changing lines of code,&lt;BR /&gt;
I can typically just execute the macro and the routine (sub/function/etc.)&lt;BR /&gt;
will run with the new code.  Even without having done a save of the dvb&lt;BR /&gt;
file.  Then if I open a new drawing, it's reloaded.  I'm working on a&lt;BR /&gt;
machine running XP and ACAD2000.&lt;BR /&gt;
&lt;BR /&gt;
However, if I go to a machine running ACAD2002, I have to shutdown ACAD&lt;BR /&gt;
completely and reopen before it'll load the modified dvb file.&lt;BR /&gt;
&lt;BR /&gt;
Is there a way to make corrections for this?&lt;BR /&gt;
&lt;BR /&gt;
I had thought that 2002 would reload the dvb file as it's a load call in one&lt;BR /&gt;
of my controlling LISP functions (i.e. (vl-vbaload (strcat #JEG_VBA&lt;BR /&gt;
"JEG.dvb")) ).  However, it only seems to happen on Acad2000 systems, not&lt;BR /&gt;
2002.</description>
      <pubDate>Wed, 19 Mar 2003 15:55:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-loading-question/m-p/303621#M64978</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-03-19T15:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: VBA loading question...</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-loading-question/m-p/303622#M64979</link>
      <description>I'd have to look into it further for you, but for starters, you are &lt;BR /&gt;
working in two different versions of vba and lisp which could be causing &lt;BR /&gt;
you problems. 2000 is vba5 and 2002 is vba6; 2002 sports some &lt;BR /&gt;
refinements to autolisp in its vl- functions.&lt;BR /&gt;
&lt;BR /&gt;
___________________________&lt;BR /&gt;
Mike Tuersley&lt;BR /&gt;
AutoCAD Clinic&lt;BR /&gt;
Rand IMAGINiT Technologies</description>
      <pubDate>Thu, 20 Mar 2003 03:52:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-loading-question/m-p/303622#M64979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-03-20T03:52:25Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-loading-question/m-p/303623#M64980</link>
      <description>Use&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
(vl-vbarun "macroname")&lt;BR /&gt;
&lt;/PRE&gt;&lt;BR /&gt;
Joe&lt;BR /&gt;
--</description>
      <pubDate>Thu, 20 Mar 2003 07:07:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-loading-question/m-p/303623#M64980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-03-20T07:07:26Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-loading-question/m-p/303624#M64981</link>
      <description>&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Joe,&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Yeah, I use that when I create my shortcut for the &lt;BR /&gt;
macro via LISP.&amp;nbsp; That's not the issue.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Particular to my instance:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;I am writing a form interface that does a sheet &lt;BR /&gt;
setup.&amp;nbsp; If I get a debug error, then I go into VBAIDE, I review my code, &lt;BR /&gt;
make an adjustment.&amp;nbsp; WITHOUT saving the DVB file whatsoever, I can go back &lt;BR /&gt;
to AutoCAD, run the macro via my LISP shortcut and it'll run with the adjusted &lt;BR /&gt;
code.&amp;nbsp; Again, this is on a system running XP w/ 2000.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;However, when I take the same action on a system &lt;BR /&gt;
running W2K w/ 2002.&amp;nbsp; I can go into VBAIDE to adjust the code for the &lt;BR /&gt;
error, but when I go back into AutoCAD 2002, it is still running the 'bad' &lt;BR /&gt;
code.&amp;nbsp; I even save the DVB first.&amp;nbsp; I have to completely exit AutoCAD &lt;BR /&gt;
2002 and restart the application before it will reload the revised code into &lt;BR /&gt;
residual memory for the AutoCAD session.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;The difference that I can determine at this point &lt;BR /&gt;
is that AutoCAD 2000 will reload DVB with every drawing that is opened.&amp;nbsp; &lt;BR /&gt;
However, 2002 only reads the DVB file ones and will not reload the code when &lt;BR /&gt;
each drawing is opened, though it is reloading the same LISP with each drawing &lt;BR /&gt;
opened that in turn has the load call to the DVB file in it.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Hope that makes sense...&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"joesu" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:joesu@worldnet.att.net"&amp;gt;joesu@worldnet.att.net&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
  message &lt;A&gt;&lt;BR /&gt;
  href="news:f150162.1@WebX.maYIadrTaRb"&amp;gt;news:f150162.1@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Use &lt;BR /&gt;
&lt;PRE&gt; &lt;BR /&gt;
(vl-vbarun "macroname") &lt;BR /&gt;
&lt;/PRE&gt;Joe &lt;BR /&gt;--&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 20 Mar 2003 13:01:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-loading-question/m-p/303624#M64981</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-03-20T13:01:06Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-loading-question/m-p/303625#M64982</link>
      <description>&amp;gt; I can go into VBAIDE to adjust the code for the error, but when I go back into AutoCAD 2002, it is still running the 'bad' code.  &lt;BR /&gt;&lt;BR /&gt;
  &lt;BR /&gt;&lt;BR /&gt;
Forgive me if I'm stating the obvious, but are you pressing the 'Reset' button (ie the one with the square on it) in the VBAIDE?  &lt;BR /&gt;&lt;BR /&gt;
  &lt;BR /&gt;&lt;BR /&gt;
If so, and your program is still running the 'bad' code, I'd suggest putting a Break Point on the line *before* the code you changed and then doing a Step Trace to see what is actually being executed.  &lt;BR /&gt;&lt;BR /&gt;
  &lt;BR /&gt;&lt;BR /&gt;
Regards  &lt;BR /&gt;&lt;BR /&gt;
  &lt;BR /&gt;&lt;BR /&gt;
Wayne Ivory  &lt;BR /&gt;&lt;BR /&gt;
IT Analyst Programmer  &lt;BR /&gt;&lt;BR /&gt;
Wespine Industries Pty Ltd  &lt;BR /&gt;</description>
      <pubDate>Thu, 20 Mar 2003 17:50:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-loading-question/m-p/303625#M64982</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-03-20T17:50:25Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-loading-question/m-p/303626#M64983</link>
      <description>Jason,&lt;BR /&gt;
&lt;BR /&gt;
I use the exact approach that you are describing and have done so in 2000, i, 2002 and 2004 and have never had any problems. I noticed that Wayne made a comment and I would to perhaps expand upon that. When you say "fixed" your code are you referring to being in break mode, fix-it, then continue? Or are you stopping execution completely, fix-it, then re-execute?&lt;BR /&gt;
&lt;BR /&gt;
If none of the above is the case then my first suggestion would be to re-install 2002.&lt;BR /&gt;
&lt;BR /&gt;
Joe&lt;BR /&gt;
--</description>
      <pubDate>Fri, 21 Mar 2003 04:44:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-loading-question/m-p/303626#M64983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-03-21T04:44:29Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-loading-question/m-p/303627#M64984</link>
      <description>&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;I'll take another look and see if I'm missing the &lt;BR /&gt;
reset button that Wayne has mentioned.&amp;nbsp;However, my basic note is that I &lt;BR /&gt;
don't have to do any sort of reset with 2000, it seems to 'reread' the DVB code &lt;BR /&gt;
at each execution, whether I save the file, or to any reload.&amp;nbsp; At this &lt;BR /&gt;
point, 2002 doesn't seem to do that.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&amp;nbsp;Yes, I completely stop execution, change the &lt;BR /&gt;
code, then re-execute.&amp;nbsp; I&lt;/FONT&gt;&lt;FONT face="Tahoma" size="2"&gt;t's not that it's &lt;BR /&gt;
a big deal, the user can deal with having to reopen AutoCAD, just wondered if &lt;BR /&gt;
perhaps there were something I'm missing.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"joesu" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:joesu@worldnet.att.net"&amp;gt;joesu@worldnet.att.net&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
  message &lt;A&gt;&lt;BR /&gt;
  href="news:f150162.4@WebX.maYIadrTaRb"&amp;gt;news:f150162.4@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Jason, &lt;BR /&gt;
&lt;BR /&gt;
  &lt;P&gt;I use the exact approach that you are describing and have done so in 2000, &lt;BR /&gt;
  i, 2002 and 2004 and have never had any problems. I noticed that Wayne made a &lt;BR /&gt;
  comment and I would to perhaps expand upon that. When you say "fixed" your &lt;BR /&gt;
  code are you referring to being in break mode, fix-it, then continue? Or are &lt;BR /&gt;
  you stopping execution completely, fix-it, then re-execute? &lt;BR /&gt;
  &lt;/P&gt;&lt;P&gt;If none of the above is the case then my first suggestion would be to &lt;BR /&gt;
  re-install 2002. &lt;BR /&gt;
  &lt;/P&gt;&lt;P&gt;Joe &lt;BR /&gt;--&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 21 Mar 2003 07:55:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-loading-question/m-p/303627#M64984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-03-21T07:55:00Z</dc:date>
    </item>
  </channel>
</rss>

