<?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 How can I load a VBA project automatically when AutoCAD is launched in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/how-can-i-load-a-vba-project-automatically-when-autocad-is/m-p/310674#M60121</link>
    <description>I need to automatically load and run a VBA project when AutoCAD is launched. The following method did not work:&lt;BR /&gt;
----&lt;BR /&gt;
Any project other than the default, acad.dvb, can be used by explicitly loading that project at startup using the VBALOAD command. The following code sample uses the AutoLISP startup file to load VBA and a VBA project named myproj.dvb when AutoCAD is started. Start notepad.exe and create (or append to) acad.lsp the following lines: &lt;BR /&gt;
(defun S::STARTUP()&lt;BR /&gt;
(command "_VBALOAD" "myproj.dvb")&lt;BR /&gt;
) &lt;BR /&gt;
----&lt;BR /&gt;
&lt;BR /&gt;
I don't have acad.lsp file. I created this file and save it under 'C:\Program Files\AutoCAD2004' folder. But when I started the AutoCAD it did not load the VBA project! Could someone help please?</description>
    <pubDate>Wed, 08 Oct 2003 10:32:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2003-10-08T10:32:54Z</dc:date>
    <item>
      <title>How can I load a VBA project automatically when AutoCAD is launched</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-can-i-load-a-vba-project-automatically-when-autocad-is/m-p/310674#M60121</link>
      <description>I need to automatically load and run a VBA project when AutoCAD is launched. The following method did not work:&lt;BR /&gt;
----&lt;BR /&gt;
Any project other than the default, acad.dvb, can be used by explicitly loading that project at startup using the VBALOAD command. The following code sample uses the AutoLISP startup file to load VBA and a VBA project named myproj.dvb when AutoCAD is started. Start notepad.exe and create (or append to) acad.lsp the following lines: &lt;BR /&gt;
(defun S::STARTUP()&lt;BR /&gt;
(command "_VBALOAD" "myproj.dvb")&lt;BR /&gt;
) &lt;BR /&gt;
----&lt;BR /&gt;
&lt;BR /&gt;
I don't have acad.lsp file. I created this file and save it under 'C:\Program Files\AutoCAD2004' folder. But when I started the AutoCAD it did not load the VBA project! Could someone help please?</description>
      <pubDate>Wed, 08 Oct 2003 10:32:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-can-i-load-a-vba-project-automatically-when-autocad-is/m-p/310674#M60121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-08T10:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I load a VBA project automatically when AutoCAD is launched</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-can-i-load-a-vba-project-automatically-when-autocad-is/m-p/310675#M60122</link>
      <description>1. Create a text file named ACAD.RX in your support directory and place &lt;BR /&gt;
one line in it - acadvba.arx with/without the path to it&lt;BR /&gt;
2. Place acad.dvb in your support directory and in it create a sub &lt;BR /&gt;
called ACADStartup()&lt;BR /&gt;
&lt;BR /&gt;
For more info, read the help file!&lt;BR /&gt;
&lt;BR /&gt;
___________________________&lt;BR /&gt;
Mike Tuersley&lt;BR /&gt;
AutoCAD Clinic&lt;BR /&gt;
Rand IMAGINiT Technologies</description>
      <pubDate>Wed, 08 Oct 2003 11:21:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-can-i-load-a-vba-project-automatically-when-autocad-is/m-p/310675#M60122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-08T11:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I load a VBA project automatically when AutoCAD is launched</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-can-i-load-a-vba-project-automatically-when-autocad-is/m-p/310676#M60123</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Have you looked into the startup &lt;BR /&gt;
suite?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&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;"amiryr" &amp;lt;&lt;A href="mailto:amiryr@yaoo.com"&gt;amiryr@yaoo.com&lt;/A&gt;&amp;gt; &lt;BR /&gt;
  wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:f19154c.-1@WebX.maYIadrTaRb"&amp;gt;news:f19154c.-1@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;I &lt;BR /&gt;
  need to automatically load and run a VBA project when AutoCAD is launched. The &lt;BR /&gt;
  following method did not work: &lt;BR /&gt;---- &lt;BR /&gt;Any project other than the &lt;BR /&gt;
  default, acad.dvb, can be used by explicitly loading that project at startup &lt;BR /&gt;
  using the VBALOAD command. The following code sample uses the AutoLISP startup &lt;BR /&gt;
  file to load VBA and a VBA project named myproj.dvb when AutoCAD is started. &lt;BR /&gt;
  Start notepad.exe and create (or append to) acad.lsp the following lines: &lt;BR /&gt;
  &lt;BR /&gt;(defun S::STARTUP() &lt;BR /&gt;(command "_VBALOAD" "myproj.dvb") &lt;BR /&gt;) &lt;BR /&gt;---- &lt;BR /&gt;
  &lt;P&gt;I don't have acad.lsp file. I created this file and save it under &lt;BR /&gt;
  'C:\Program Files\AutoCAD2004' folder. But when I started the AutoCAD it did &lt;BR /&gt;
  not load the VBA project! Could someone help &lt;BR /&gt;
please?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 08 Oct 2003 13:08:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-can-i-load-a-vba-project-automatically-when-autocad-is/m-p/310676#M60123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-08T13:08:56Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-can-i-load-a-vba-project-automatically-when-autocad-is/m-p/310677#M60124</link>
      <description>Thanks Mike, But will you explain for me a little more. I have a project that is saved on "C:\Projects\RK\RKCADInt\RKCADInt.dvb". This project is nothing but just a simple VBA form that I a select some dwg files and then I am trying to open all of the in one dwg file.&lt;BR /&gt;
&lt;BR /&gt;
1) I created ACAD.RX in support folder.&lt;BR /&gt;
2) I added the following line:&lt;BR /&gt;
acadvba.arx&lt;BR /&gt;
I don't have any file with name acadvba.arx. But I did the same as you have mentioned.&lt;BR /&gt;
I copied "RKCADInt.dvb" into support folder. &lt;BR /&gt;
After launcing the ACAD, I get the following message in command line level of the CAD, which indicate it can not load the project:&lt;BR /&gt;
&lt;BR /&gt;
Regenerating model.&lt;BR /&gt;
acrxGetApiVersion not found in C:\Projects\RK\RKCADInt\RKCADInt.dvb&lt;BR /&gt;
Make sure the app links with rxapi.lib and export the symbol.AcRxDynamicLinker &lt;BR /&gt;
failed to load 'C:\Projects\RK\RKCADInt\RKCADInt.dvb'&lt;BR /&gt;
C:\Program Files\AutoCAD2004\acad.exe&lt;BR /&gt;
&lt;BR /&gt;
Does loading a project is equivalent by making the form visible? Where I am going wrong? Many Thanks, Amir</description>
      <pubDate>Wed, 08 Oct 2003 13:14:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-can-i-load-a-vba-project-automatically-when-autocad-is/m-p/310677#M60124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-08T13:14:46Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-can-i-load-a-vba-project-automatically-when-autocad-is/m-p/310678#M60125</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;In regards to your original post, your startup line &lt;BR /&gt;
would probably work if you included the full path to your project. Note that &lt;BR /&gt;
vbaload only loads the dvb, you still have to run a macro.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;In regards to Mike's suggestion, I think you need &lt;BR /&gt;
to modify that to work with 2004. To be more consistent with other file naming &lt;BR /&gt;
conventions, the file was renamed to: acvba.arx.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;BR /&gt;-- &lt;BR /&gt;--&lt;BR /&gt;Ed&lt;BR /&gt;--&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;"amiryr" &amp;lt;&lt;A href="mailto:amiryr@yaoo.com"&gt;amiryr@yaoo.com&lt;/A&gt;&amp;gt; &lt;BR /&gt;
  wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:f19154c.2@WebX.maYIadrTaRb"&amp;gt;news:f19154c.2@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Thanks &lt;BR /&gt;
  Mike, But will you explain for me a little more. I have a project that is &lt;BR /&gt;
  saved on "C:\Projects\RK\RKCADInt\RKCADInt.dvb". This project is nothing but &lt;BR /&gt;
  just a simple VBA form that I a select some dwg files and then I am trying to &lt;BR /&gt;
  open all of the in one dwg file. &lt;BR /&gt;
  &lt;P&gt;1) I created ACAD.RX in support folder. &lt;BR /&gt;2) I added the following line: &lt;BR /&gt;
  &lt;BR /&gt;acadvba.arx &lt;BR /&gt;I don't have any file with name acadvba.arx. But I did the &lt;BR /&gt;
  same as you have mentioned. &lt;BR /&gt;I copied "RKCADInt.dvb" into support folder. &lt;BR /&gt;
  &lt;BR /&gt;After launcing the ACAD, I get the following message in command line level &lt;BR /&gt;
  of the CAD, which indicate it can not load the project: &lt;BR /&gt;
  &lt;/P&gt;&lt;P&gt;Regenerating model. &lt;BR /&gt;acrxGetApiVersion not found in &lt;BR /&gt;
  C:\Projects\RK\RKCADInt\RKCADInt.dvb &lt;BR /&gt;Make sure the app links with &lt;BR /&gt;
  rxapi.lib and export the symbol.AcRxDynamicLinker &lt;BR /&gt;failed to load &lt;BR /&gt;
  'C:\Projects\RK\RKCADInt\RKCADInt.dvb' &lt;BR /&gt;C:\Program &lt;BR /&gt;
  Files\AutoCAD2004\acad.exe &lt;BR /&gt;
  &lt;/P&gt;&lt;P&gt;Does loading a project is equivalent by making the form visible? Where I am &lt;BR /&gt;
  going wrong? Many Thanks, Amir&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 08 Oct 2003 14:17:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-can-i-load-a-vba-project-automatically-when-autocad-is/m-p/310678#M60125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-08T14:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I load a VBA project automatically when AutoCAD is launched</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-can-i-load-a-vba-project-automatically-when-autocad-is/m-p/310679#M60126</link>
      <description>What I do is create a Lisp file and use the vl-vbarun command to load and launch the vba routine.  This is also allows you to define commands that can be run from the command line without typing the vbarun syntax and makes menu customization much simpler.</description>
      <pubDate>Wed, 08 Oct 2003 17:55:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-can-i-load-a-vba-project-automatically-when-autocad-is/m-p/310679#M60126</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-08T17:55:57Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-can-i-load-a-vba-project-automatically-when-autocad-is/m-p/310680#M60127</link>
      <description>Thanks Ed, I forgot to mention that 2004 renamed the file to acadvba.arx &lt;BR /&gt;
___________________________&lt;BR /&gt;
Mike Tuersley&lt;BR /&gt;
AutoCAD Clinic&lt;BR /&gt;
Rand IMAGINiT Technologies</description>
      <pubDate>Thu, 09 Oct 2003 06:20:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-can-i-load-a-vba-project-automatically-when-autocad-is/m-p/310680#M60127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-09T06:20:48Z</dc:date>
    </item>
  </channel>
</rss>

