<?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 acad.lsp + acaddoc.lsp clash in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/acad-lsp-acaddoc-lsp-clash/m-p/2149500#M21829</link>
    <description>I have read a lot of postings but I still can't quite find the answer to &lt;BR /&gt;
this:-&lt;BR /&gt;
&lt;BR /&gt;
I have a desktop icon which starts AutoCAD in a directory with the following &lt;BR /&gt;
2 files:-&lt;BR /&gt;
&lt;BR /&gt;
acad.lsp which contains the following&lt;BR /&gt;
&lt;BR /&gt;
(defun S::STARTUP()&lt;BR /&gt;
 (command "_-vbaload" "StoreSpace.dvb")&lt;BR /&gt;
 (command "_-VBARUN" "Initialise")&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
and acaddoc.lsp which contains the following:-&lt;BR /&gt;
(defun S::STARTUP()&lt;BR /&gt;
 (command "_-VBARUN" "Runsynchronise")&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
This produces the following error:-&lt;BR /&gt;
"Command: -vbarun&lt;BR /&gt;
Macro name: ShowFixtures Execution error"&lt;BR /&gt;
&lt;BR /&gt;
and StoreSpace.dvb is not loaded.&lt;BR /&gt;
&lt;BR /&gt;
If I move acaddoc.lsp, acad.lsp runs and loads StoreSpace.dvb but obviously &lt;BR /&gt;
the ShowFixtures sub does not run, unless I move it back into the directory &lt;BR /&gt;
after starting up AutoCAD in which case it runs on each drawing opening. I &lt;BR /&gt;
don't understand why this causes a problem. I would expect acad.lsp to run &lt;BR /&gt;
on startup then acaddoc.lsp to run on opening of each drawing.&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
&lt;BR /&gt;
Dave Preston</description>
    <pubDate>Mon, 07 Jan 2008 10:36:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-01-07T10:36:38Z</dc:date>
    <item>
      <title>acad.lsp + acaddoc.lsp clash</title>
      <link>https://forums.autodesk.com/t5/vba-forum/acad-lsp-acaddoc-lsp-clash/m-p/2149500#M21829</link>
      <description>I have read a lot of postings but I still can't quite find the answer to &lt;BR /&gt;
this:-&lt;BR /&gt;
&lt;BR /&gt;
I have a desktop icon which starts AutoCAD in a directory with the following &lt;BR /&gt;
2 files:-&lt;BR /&gt;
&lt;BR /&gt;
acad.lsp which contains the following&lt;BR /&gt;
&lt;BR /&gt;
(defun S::STARTUP()&lt;BR /&gt;
 (command "_-vbaload" "StoreSpace.dvb")&lt;BR /&gt;
 (command "_-VBARUN" "Initialise")&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
and acaddoc.lsp which contains the following:-&lt;BR /&gt;
(defun S::STARTUP()&lt;BR /&gt;
 (command "_-VBARUN" "Runsynchronise")&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
This produces the following error:-&lt;BR /&gt;
"Command: -vbarun&lt;BR /&gt;
Macro name: ShowFixtures Execution error"&lt;BR /&gt;
&lt;BR /&gt;
and StoreSpace.dvb is not loaded.&lt;BR /&gt;
&lt;BR /&gt;
If I move acaddoc.lsp, acad.lsp runs and loads StoreSpace.dvb but obviously &lt;BR /&gt;
the ShowFixtures sub does not run, unless I move it back into the directory &lt;BR /&gt;
after starting up AutoCAD in which case it runs on each drawing opening. I &lt;BR /&gt;
don't understand why this causes a problem. I would expect acad.lsp to run &lt;BR /&gt;
on startup then acaddoc.lsp to run on opening of each drawing.&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
&lt;BR /&gt;
Dave Preston</description>
      <pubDate>Mon, 07 Jan 2008 10:36:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/acad-lsp-acaddoc-lsp-clash/m-p/2149500#M21829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-07T10:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: acad.lsp + acaddoc.lsp clash</title>
      <link>https://forums.autodesk.com/t5/vba-forum/acad-lsp-acaddoc-lsp-clash/m-p/2149501#M21830</link>
      <description>Dave Preston wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I have a desktop icon which starts AutoCAD in a directory with the following &lt;BR /&gt;
&amp;gt; 2 files:-&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; acad.lsp which contains the following&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; (defun S::STARTUP()&lt;BR /&gt;
&amp;gt;  (command "_-vbaload" "StoreSpace.dvb")&lt;BR /&gt;
&amp;gt;  (command "_-VBARUN" "Initialise")&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; and acaddoc.lsp which contains the following:-&lt;BR /&gt;
&amp;gt; (defun S::STARTUP()&lt;BR /&gt;
&amp;gt;  (command "_-VBARUN" "Runsynchronise")&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&lt;BR /&gt;
Your "S::STARTUP" function in "acaddoc.lsp" is overwriting &lt;BR /&gt;
the same function as defined in "acad.lsp"&lt;BR /&gt;
&lt;BR /&gt;
"Acad.lsp" loads first, defining S::STARTUP.&lt;BR /&gt;
Then "acaddoc.lsp" loads, redefining S::STARTUP.&lt;BR /&gt;
&lt;BR /&gt;
Put all your startup code in a function called "mystartup", &lt;BR /&gt;
(in "acaddoc.lsp") and append it to S::Startup, in case it's &lt;BR /&gt;
already defined somewhere else...&lt;BR /&gt;
&lt;BR /&gt;
(defun-q mystartup ()&lt;BR /&gt;
   (this is my startup code)&lt;BR /&gt;
)&lt;BR /&gt;
(setq S::STARTUP (append S::STARTUP mystartup))&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
R.K. McSwain&lt;BR /&gt;
http://rkmcswain.blogspot.com</description>
      <pubDate>Mon, 07 Jan 2008 14:24:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/acad-lsp-acaddoc-lsp-clash/m-p/2149501#M21830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-07T14:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: acad.lsp + acaddoc.lsp clash</title>
      <link>https://forums.autodesk.com/t5/vba-forum/acad-lsp-acaddoc-lsp-clash/m-p/2149502#M21831</link>
      <description>Many thanks. That works perfectly&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Dave Preston&lt;BR /&gt;
&lt;BR /&gt;
"R.K. McSwain" &lt;RKMCSWAIN&gt; wrote in message &lt;BR /&gt;
news:5813787@discussion.autodesk.com...&lt;BR /&gt;
Dave Preston wrote:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I have a desktop icon which starts AutoCAD in a directory with the &lt;BR /&gt;
&amp;gt; following&lt;BR /&gt;
&amp;gt; 2 files:-&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; acad.lsp which contains the following&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (defun S::STARTUP()&lt;BR /&gt;
&amp;gt;  (command "_-vbaload" "StoreSpace.dvb")&lt;BR /&gt;
&amp;gt;  (command "_-VBARUN" "Initialise")&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; and acaddoc.lsp which contains the following:-&lt;BR /&gt;
&amp;gt; (defun S::STARTUP()&lt;BR /&gt;
&amp;gt;  (command "_-VBARUN" "Runsynchronise")&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
Your "S::STARTUP" function in "acaddoc.lsp" is overwriting&lt;BR /&gt;
the same function as defined in "acad.lsp"&lt;BR /&gt;
&lt;BR /&gt;
"Acad.lsp" loads first, defining S::STARTUP.&lt;BR /&gt;
Then "acaddoc.lsp" loads, redefining S::STARTUP.&lt;BR /&gt;
&lt;BR /&gt;
Put all your startup code in a function called "mystartup",&lt;BR /&gt;
(in "acaddoc.lsp") and append it to S::Startup, in case it's&lt;BR /&gt;
already defined somewhere else...&lt;BR /&gt;
&lt;BR /&gt;
(defun-q mystartup ()&lt;BR /&gt;
   (this is my startup code)&lt;BR /&gt;
)&lt;BR /&gt;
(setq S::STARTUP (append S::STARTUP mystartup))&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
R.K. McSwain&lt;BR /&gt;
http://rkmcswain.blogspot.com&lt;/RKMCSWAIN&gt;</description>
      <pubDate>Mon, 07 Jan 2008 15:04:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/acad-lsp-acaddoc-lsp-clash/m-p/2149502#M21831</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-07T15:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: acad.lsp + acaddoc.lsp clash</title>
      <link>https://forums.autodesk.com/t5/vba-forum/acad-lsp-acaddoc-lsp-clash/m-p/2149503#M21832</link>
      <description>Hmm. Although everything works perfectly I have just noticed that I get the &lt;BR /&gt;
following error when starting AutoCAD if the acaddoc.lsp is present:-&lt;BR /&gt;
&lt;BR /&gt;
AutoCAD menu utilities loaded.; error: Invalid attempt to access a compiled&lt;BR /&gt;
function definition.  You may want to define it using defun-q: #&lt;SUBR&gt;&lt;BR /&gt;
@0f40ee38&lt;BR /&gt;
S::STARTUP&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
My acad.lsp contains the following:-&lt;BR /&gt;
(defun S::STARTUP()&lt;BR /&gt;
 (command "_-vbaload" "StoreSpace.dvb")&lt;BR /&gt;
 (command "_-VBARUN" "Initialise")&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
My acaddoc.lsp contains the following:-&lt;BR /&gt;
(defun-q docStartup()&lt;BR /&gt;
 (command "-VBARUN" "Runsynchronise")&lt;BR /&gt;
)&lt;BR /&gt;
(setq S::STARTUP (append S::STARTUP docStartup))&lt;BR /&gt;
&lt;BR /&gt;
"R.K. McSwain" &lt;RKMCSWAIN&gt; wrote in message &lt;BR /&gt;
news:5813787@discussion.autodesk.com...&lt;BR /&gt;
Dave Preston wrote:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I have a desktop icon which starts AutoCAD in a directory with the &lt;BR /&gt;
&amp;gt; following&lt;BR /&gt;
&amp;gt; 2 files:-&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; acad.lsp which contains the following&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (defun S::STARTUP()&lt;BR /&gt;
&amp;gt;  (command "_-vbaload" "StoreSpace.dvb")&lt;BR /&gt;
&amp;gt;  (command "_-VBARUN" "Initialise")&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; and acaddoc.lsp which contains the following:-&lt;BR /&gt;
&amp;gt; (defun S::STARTUP()&lt;BR /&gt;
&amp;gt;  (command "_-VBARUN" "Runsynchronise")&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
Your "S::STARTUP" function in "acaddoc.lsp" is overwriting&lt;BR /&gt;
the same function as defined in "acad.lsp"&lt;BR /&gt;
&lt;BR /&gt;
"Acad.lsp" loads first, defining S::STARTUP.&lt;BR /&gt;
Then "acaddoc.lsp" loads, redefining S::STARTUP.&lt;BR /&gt;
&lt;BR /&gt;
Put all your startup code in a function called "mystartup",&lt;BR /&gt;
(in "acaddoc.lsp") and append it to S::Startup, in case it's&lt;BR /&gt;
already defined somewhere else...&lt;BR /&gt;
&lt;BR /&gt;
(defun-q mystartup ()&lt;BR /&gt;
   (this is my startup code)&lt;BR /&gt;
)&lt;BR /&gt;
(setq S::STARTUP (append S::STARTUP mystartup))&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
R.K. McSwain&lt;BR /&gt;
http://rkmcswain.blogspot.com&lt;/RKMCSWAIN&gt;&lt;/SUBR&gt;</description>
      <pubDate>Thu, 10 Jan 2008 10:22:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/acad-lsp-acaddoc-lsp-clash/m-p/2149503#M21832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-10T10:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: acad.lsp + acaddoc.lsp clash</title>
      <link>https://forums.autodesk.com/t5/vba-forum/acad-lsp-acaddoc-lsp-clash/m-p/2149504#M21833</link>
      <description>You need to used defun-q for your s::startup too. This will allow the append &lt;BR /&gt;
to work.&lt;BR /&gt;
&lt;BR /&gt;
Dave Preston wrote:&lt;BR /&gt;
&amp;gt; Hmm. Although everything works perfectly I have just noticed that I get the &lt;BR /&gt;
&amp;gt; following error when starting AutoCAD if the acaddoc.lsp is present:-&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; AutoCAD menu utilities loaded.; error: Invalid attempt to access a compiled&lt;BR /&gt;
&amp;gt; function definition.  You may want to define it using defun-q: #&lt;SUBR&gt;&lt;BR /&gt;
&amp;gt; @0f40ee38&lt;BR /&gt;
&amp;gt; S::STARTUP&amp;gt;&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; My acad.lsp contains the following:-&lt;BR /&gt;
&amp;gt; (defun S::STARTUP()&lt;BR /&gt;
&amp;gt;  (command "_-vbaload" "StoreSpace.dvb")&lt;BR /&gt;
&amp;gt;  (command "_-VBARUN" "Initialise")&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; My acaddoc.lsp contains the following:-&lt;BR /&gt;
&amp;gt; (defun-q docStartup()&lt;BR /&gt;
&amp;gt;  (command "-VBARUN" "Runsynchronise")&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt; (setq S::STARTUP (append S::STARTUP docStartup))&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; "R.K. McSwain" &lt;RKMCSWAIN&gt; wrote in message &lt;BR /&gt;
&amp;gt; news:5813787@discussion.autodesk.com...&lt;BR /&gt;
&amp;gt; Dave Preston wrote:&lt;BR /&gt;
&amp;gt;&amp;gt; I have a desktop icon which starts AutoCAD in a directory with the &lt;BR /&gt;
&amp;gt;&amp;gt; following&lt;BR /&gt;
&amp;gt;&amp;gt; 2 files:-&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; acad.lsp which contains the following&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; (defun S::STARTUP()&lt;BR /&gt;
&amp;gt;&amp;gt;  (command "_-vbaload" "StoreSpace.dvb")&lt;BR /&gt;
&amp;gt;&amp;gt;  (command "_-VBARUN" "Initialise")&lt;BR /&gt;
&amp;gt;&amp;gt; )&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; and acaddoc.lsp which contains the following:-&lt;BR /&gt;
&amp;gt;&amp;gt; (defun S::STARTUP()&lt;BR /&gt;
&amp;gt;&amp;gt;  (command "_-VBARUN" "Runsynchronise")&lt;BR /&gt;
&amp;gt;&amp;gt; )&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Your "S::STARTUP" function in "acaddoc.lsp" is overwriting&lt;BR /&gt;
&amp;gt; the same function as defined in "acad.lsp"&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; "Acad.lsp" loads first, defining S::STARTUP.&lt;BR /&gt;
&amp;gt; Then "acaddoc.lsp" loads, redefining S::STARTUP.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Put all your startup code in a function called "mystartup",&lt;BR /&gt;
&amp;gt; (in "acaddoc.lsp") and append it to S::Startup, in case it's&lt;BR /&gt;
&amp;gt; already defined somewhere else...&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; (defun-q mystartup ()&lt;BR /&gt;
&amp;gt;    (this is my startup code)&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt; (setq S::STARTUP (append S::STARTUP mystartup))&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; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;&lt;/RKMCSWAIN&gt;&lt;/SUBR&gt;</description>
      <pubDate>Thu, 10 Jan 2008 13:16:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/acad-lsp-acaddoc-lsp-clash/m-p/2149504#M21833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-10T13:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: acad.lsp + acaddoc.lsp clash</title>
      <link>https://forums.autodesk.com/t5/vba-forum/acad-lsp-acaddoc-lsp-clash/m-p/2149505#M21834</link>
      <description>Cheers Ken, I missed that subtle difference. It's not something I know much &lt;BR /&gt;
about. That said, the first CAD programming I did was autolisp 22 years ago, &lt;BR /&gt;
and not used it much since so a bit rusty now!&lt;BR /&gt;
&lt;BR /&gt;
Dave&lt;BR /&gt;
&lt;BR /&gt;
"Ken Krupa" &lt;GO_TO_MY_WEBSITE&gt; wrote in message &lt;BR /&gt;
news:5816824@discussion.autodesk.com...&lt;BR /&gt;
You need to used defun-q for your s::startup too. This will allow the append&lt;BR /&gt;
to work.&lt;BR /&gt;
&lt;BR /&gt;
Dave Preston wrote:&lt;BR /&gt;
&amp;gt; Hmm. Although everything works perfectly I have just noticed that I get &lt;BR /&gt;
&amp;gt; the&lt;BR /&gt;
&amp;gt; following error when starting AutoCAD if the acaddoc.lsp is present:-&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; AutoCAD menu utilities loaded.; error: Invalid attempt to access a &lt;BR /&gt;
&amp;gt; compiled&lt;BR /&gt;
&amp;gt; function definition.  You may want to define it using defun-q: #&lt;SUBR&gt;&lt;BR /&gt;
&amp;gt; @0f40ee38&lt;BR /&gt;
&amp;gt; S::STARTUP&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; My acad.lsp contains the following:-&lt;BR /&gt;
&amp;gt; (defun S::STARTUP()&lt;BR /&gt;
&amp;gt;  (command "_-vbaload" "StoreSpace.dvb")&lt;BR /&gt;
&amp;gt;  (command "_-VBARUN" "Initialise")&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; My acaddoc.lsp contains the following:-&lt;BR /&gt;
&amp;gt; (defun-q docStartup()&lt;BR /&gt;
&amp;gt;  (command "-VBARUN" "Runsynchronise")&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt; (setq S::STARTUP (append S::STARTUP docStartup))&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "R.K. McSwain" &lt;RKMCSWAIN&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:5813787@discussion.autodesk.com...&lt;BR /&gt;
&amp;gt; Dave Preston wrote:&lt;BR /&gt;
&amp;gt;&amp;gt; I have a desktop icon which starts AutoCAD in a directory with the&lt;BR /&gt;
&amp;gt;&amp;gt; following&lt;BR /&gt;
&amp;gt;&amp;gt; 2 files:-&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; acad.lsp which contains the following&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; (defun S::STARTUP()&lt;BR /&gt;
&amp;gt;&amp;gt;  (command "_-vbaload" "StoreSpace.dvb")&lt;BR /&gt;
&amp;gt;&amp;gt;  (command "_-VBARUN" "Initialise")&lt;BR /&gt;
&amp;gt;&amp;gt; )&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; and acaddoc.lsp which contains the following:-&lt;BR /&gt;
&amp;gt;&amp;gt; (defun S::STARTUP()&lt;BR /&gt;
&amp;gt;&amp;gt;  (command "_-VBARUN" "Runsynchronise")&lt;BR /&gt;
&amp;gt;&amp;gt; )&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Your "S::STARTUP" function in "acaddoc.lsp" is overwriting&lt;BR /&gt;
&amp;gt; the same function as defined in "acad.lsp"&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Acad.lsp" loads first, defining S::STARTUP.&lt;BR /&gt;
&amp;gt; Then "acaddoc.lsp" loads, redefining S::STARTUP.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Put all your startup code in a function called "mystartup",&lt;BR /&gt;
&amp;gt; (in "acaddoc.lsp") and append it to S::Startup, in case it's&lt;BR /&gt;
&amp;gt; already defined somewhere else...&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (defun-q mystartup ()&lt;BR /&gt;
&amp;gt;    (this is my startup code)&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt; (setq S::STARTUP (append S::STARTUP mystartup))&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;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/RKMCSWAIN&gt;&lt;/SUBR&gt;&lt;/GO_TO_MY_WEBSITE&gt;</description>
      <pubDate>Fri, 11 Jan 2008 08:45:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/acad-lsp-acaddoc-lsp-clash/m-p/2149505#M21834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-11T08:45:29Z</dc:date>
    </item>
  </channel>
</rss>

