<?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: Call VBA by lisp in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/call-vba-by-lisp/m-p/1972085#M25330</link>
    <description>Thanks Laurie,&lt;BR /&gt;
&lt;BR /&gt;
So the final format should be like:&lt;BR /&gt;
&lt;BR /&gt;
(princ)&lt;BR /&gt;
(defun RunMyMacro()&lt;BR /&gt;
(VL_VBARUN" "E:/ENGINEERING FOLDER/001-Ready/004-CAD &lt;BR /&gt;
IMPORTANT/01-CADUTIL.dvb!Starter")&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
The Starter is a module from the same DVB file which has been loaded am I &lt;BR /&gt;
right? as a matter of fact I have tried this and is not working did I miss &lt;BR /&gt;
anything?&lt;BR /&gt;
&lt;BR /&gt;
Thank you.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
======================================================================================&lt;BR /&gt;
"Laurie Comerford" &lt;LAURIE.COMERFORD&gt; wrote in message &lt;BR /&gt;
news:5590133@discussion.autodesk.com...&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
This question gets asked and answered in this NG at least once every couple&lt;BR /&gt;
of weeks.&lt;BR /&gt;
&lt;BR /&gt;
The optimum method is not to load the VBA programs till they are needed.&lt;BR /&gt;
You do this with VL_VBARUN as shown below.&lt;BR /&gt;
&lt;BR /&gt;
(princ)&lt;BR /&gt;
(defun RunMyMacro()&lt;BR /&gt;
(VL_VBARUN" "E:/ENGINEERING FOLDER/001-Ready/004-CAD&lt;BR /&gt;
IMPORTANT/01-CADUTIL.dvb!MyMacro")&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
VL_VBARUN checks if the program is loaded and if necessary loads it, the&lt;BR /&gt;
runs the called macro.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
CADApps&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
www.civil3Dtools.com&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
CADApps&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
www.civil3Dtools.com&lt;BR /&gt;
"2007-User" &lt;NO-EMAIL&gt; wrote in message&lt;BR /&gt;
news:5590013@discussion.autodesk.com...&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
I have inserted the following lisp instructions in to my acad2007.lsp file&lt;BR /&gt;
to load a VBA file automatically.&lt;BR /&gt;
&lt;BR /&gt;
My problem is, every time I open a new DWG file the lisp is trying to reload&lt;BR /&gt;
the VBA file, is there any way to load the VBA just once when AutoCAD&lt;BR /&gt;
starts?&lt;BR /&gt;
Is there any better way to do this in lieu of using lisp?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
(princ)&lt;BR /&gt;
(defun S::STARTUP()&lt;BR /&gt;
(command "_VBALOAD" "E:/ENGINEERING FOLDER/001-Ready/004-CAD&lt;BR /&gt;
IMPORTANT/01-CADUTIL.dvb")&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.&lt;/NO-EMAIL&gt;&lt;/LAURIE.COMERFORD&gt;</description>
    <pubDate>Fri, 18 May 2007 21:50:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-05-18T21:50:28Z</dc:date>
    <item>
      <title>Call VBA by lisp</title>
      <link>https://forums.autodesk.com/t5/vba-forum/call-vba-by-lisp/m-p/1972082#M25327</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I have inserted the following lisp instructions in to my acad2007.lsp file &lt;BR /&gt;
to load a VBA file automatically.&lt;BR /&gt;
&lt;BR /&gt;
My problem is, every time I open a new DWG file the lisp is trying to reload &lt;BR /&gt;
the VBA file, is there any way to load the VBA just once when AutoCAD &lt;BR /&gt;
starts?&lt;BR /&gt;
Is there any better way to do this in lieu of using lisp?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
(princ)&lt;BR /&gt;
(defun S::STARTUP()&lt;BR /&gt;
(command "_VBALOAD" "E:/ENGINEERING FOLDER/001-Ready/004-CAD &lt;BR /&gt;
IMPORTANT/01-CADUTIL.dvb")&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.</description>
      <pubDate>Fri, 18 May 2007 04:41:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/call-vba-by-lisp/m-p/1972082#M25327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-05-18T04:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Call VBA by lisp</title>
      <link>https://forums.autodesk.com/t5/vba-forum/call-vba-by-lisp/m-p/1972083#M25328</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
This question gets asked and answered in this NG at least once every couple &lt;BR /&gt;
of weeks.&lt;BR /&gt;
&lt;BR /&gt;
The optimum method is not to load the VBA programs till they are needed. &lt;BR /&gt;
You do this with VL_VBARUN as shown below.&lt;BR /&gt;
&lt;BR /&gt;
(princ)&lt;BR /&gt;
(defun RunMyMacro()&lt;BR /&gt;
(VL_VBARUN" "E:/ENGINEERING FOLDER/001-Ready/004-CAD&lt;BR /&gt;
IMPORTANT/01-CADUTIL.dvb!MyMacro")&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
VL_VBARUN checks if the program is loaded and if necessary loads it, the &lt;BR /&gt;
runs the called macro.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
CADApps&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
www.civil3Dtools.com&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
CADApps&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
www.civil3Dtools.com&lt;BR /&gt;
"2007-User" &lt;NO-EMAIL&gt; wrote in message &lt;BR /&gt;
news:5590013@discussion.autodesk.com...&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
I have inserted the following lisp instructions in to my acad2007.lsp file&lt;BR /&gt;
to load a VBA file automatically.&lt;BR /&gt;
&lt;BR /&gt;
My problem is, every time I open a new DWG file the lisp is trying to reload&lt;BR /&gt;
the VBA file, is there any way to load the VBA just once when AutoCAD&lt;BR /&gt;
starts?&lt;BR /&gt;
Is there any better way to do this in lieu of using lisp?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
(princ)&lt;BR /&gt;
(defun S::STARTUP()&lt;BR /&gt;
(command "_VBALOAD" "E:/ENGINEERING FOLDER/001-Ready/004-CAD&lt;BR /&gt;
IMPORTANT/01-CADUTIL.dvb")&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.&lt;/NO-EMAIL&gt;</description>
      <pubDate>Fri, 18 May 2007 08:36:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/call-vba-by-lisp/m-p/1972083#M25328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-05-18T08:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Call VBA by lisp</title>
      <link>https://forums.autodesk.com/t5/vba-forum/call-vba-by-lisp/m-p/1972084#M25329</link>
      <description>Also, check the value of ACADLISPASDOC.</description>
      <pubDate>Fri, 18 May 2007 14:28:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/call-vba-by-lisp/m-p/1972084#M25329</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2007-05-18T14:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Call VBA by lisp</title>
      <link>https://forums.autodesk.com/t5/vba-forum/call-vba-by-lisp/m-p/1972085#M25330</link>
      <description>Thanks Laurie,&lt;BR /&gt;
&lt;BR /&gt;
So the final format should be like:&lt;BR /&gt;
&lt;BR /&gt;
(princ)&lt;BR /&gt;
(defun RunMyMacro()&lt;BR /&gt;
(VL_VBARUN" "E:/ENGINEERING FOLDER/001-Ready/004-CAD &lt;BR /&gt;
IMPORTANT/01-CADUTIL.dvb!Starter")&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
The Starter is a module from the same DVB file which has been loaded am I &lt;BR /&gt;
right? as a matter of fact I have tried this and is not working did I miss &lt;BR /&gt;
anything?&lt;BR /&gt;
&lt;BR /&gt;
Thank you.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
======================================================================================&lt;BR /&gt;
"Laurie Comerford" &lt;LAURIE.COMERFORD&gt; wrote in message &lt;BR /&gt;
news:5590133@discussion.autodesk.com...&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
This question gets asked and answered in this NG at least once every couple&lt;BR /&gt;
of weeks.&lt;BR /&gt;
&lt;BR /&gt;
The optimum method is not to load the VBA programs till they are needed.&lt;BR /&gt;
You do this with VL_VBARUN as shown below.&lt;BR /&gt;
&lt;BR /&gt;
(princ)&lt;BR /&gt;
(defun RunMyMacro()&lt;BR /&gt;
(VL_VBARUN" "E:/ENGINEERING FOLDER/001-Ready/004-CAD&lt;BR /&gt;
IMPORTANT/01-CADUTIL.dvb!MyMacro")&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
VL_VBARUN checks if the program is loaded and if necessary loads it, the&lt;BR /&gt;
runs the called macro.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
CADApps&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
www.civil3Dtools.com&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
CADApps&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
www.civil3Dtools.com&lt;BR /&gt;
"2007-User" &lt;NO-EMAIL&gt; wrote in message&lt;BR /&gt;
news:5590013@discussion.autodesk.com...&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
I have inserted the following lisp instructions in to my acad2007.lsp file&lt;BR /&gt;
to load a VBA file automatically.&lt;BR /&gt;
&lt;BR /&gt;
My problem is, every time I open a new DWG file the lisp is trying to reload&lt;BR /&gt;
the VBA file, is there any way to load the VBA just once when AutoCAD&lt;BR /&gt;
starts?&lt;BR /&gt;
Is there any better way to do this in lieu of using lisp?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
(princ)&lt;BR /&gt;
(defun S::STARTUP()&lt;BR /&gt;
(command "_VBALOAD" "E:/ENGINEERING FOLDER/001-Ready/004-CAD&lt;BR /&gt;
IMPORTANT/01-CADUTIL.dvb")&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.&lt;/NO-EMAIL&gt;&lt;/LAURIE.COMERFORD&gt;</description>
      <pubDate>Fri, 18 May 2007 21:50:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/call-vba-by-lisp/m-p/1972085#M25330</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-05-18T21:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Call VBA by lisp</title>
      <link>https://forums.autodesk.com/t5/vba-forum/call-vba-by-lisp/m-p/1972086#M25331</link>
      <description>That still isn't going to prevent it from loading at every drawing opening if you are loading the lisp with every drawing. There are two types of autoloading lisp files, acad.lsp and acaddoc.lsp. acad.lsp loads once when the app starts and acaddoc.lsp loads with every dwg...Except if you've set ACADLSPASDOC to 1. Then everything loads with every dwg.</description>
      <pubDate>Mon, 21 May 2007 14:35:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/call-vba-by-lisp/m-p/1972086#M25331</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2007-05-21T14:35:27Z</dc:date>
    </item>
  </channel>
</rss>

