<?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: Run script file in existing Autocad instance from external program in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5720473#M323144</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt; wrote:&lt;BR /&gt;Thank you for the information. Good to know.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You're welcome, BeekeeCZ&lt;BR /&gt;Glad I could help&lt;BR /&gt;&lt;BR /&gt;Henrique&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jul 2015 12:18:27 GMT</pubDate>
    <dc:creator>hmsilva</dc:creator>
    <dc:date>2015-07-15T12:18:27Z</dc:date>
    <item>
      <title>Run script file in existing Autocad instance from external program</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5698635#M323138</link>
      <description>&lt;P&gt;I have a small program that generates script files, opens an instance of Autocad and passes the script in using the /b switch, like "C:\Program Files\Autodesk\AutoCAD 2015\acad.exe" /b "script.scr"&lt;/P&gt;&lt;P&gt;This works great and runs the script, however it opens a new instance of Autocad each time (which makes sense, as I'm opening the exe).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wondering if there would be a way to open a new drawing and run a script file, without opening a new instance of acad each time?&lt;/P&gt;&lt;P&gt;I've had a look at the DWG launcher but as far as I can tell the only switch for this is which dwg to open (/O), with no provisions to run a script. If there's no other way, could I have a DWG file that runs a script at a certain location when it's opened?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Aviv&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2015 23:05:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5698635#M323138</guid>
      <dc:creator>avivmintz</dc:creator>
      <dc:date>2015-06-29T23:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Run script file in existing Autocad instance from external program</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5698963#M323139</link>
      <description>&lt;P&gt;What program do you use to generate the script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got a program that uses a 'script template" that uses a place holder for a filename, replaces the place holders with selected files, and generates a script that runs multiple files in a single instance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps you could modify your program to work like that.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 01:22:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5698963#M323139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-30T01:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Run script file in existing Autocad instance from external program</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5720159#M323140</link>
      <description>&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;I wrote my own program in C#. It writes a script file, then launches autocad using the /b switch.&lt;/P&gt;&lt;P&gt;The problem is when the program is used they'll generate different files at different times, so I can't have a file that opens multiple files at once because I can't know what scripts they'll generate in the future.&lt;/P&gt;&lt;P&gt;Is there any way to run a script in a new file in an existing instance?&lt;/P&gt;&lt;P&gt;Or maybe even have a .dwg that runs a script every time it's opened? That way I could tell dwglauncher to open that file and it'd open it in the same instance.&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2015 06:38:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5720159#M323140</guid>
      <dc:creator>avivmintz</dc:creator>
      <dc:date>2015-07-15T06:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Run script file in existing Autocad instance from external program</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5720302#M323141</link>
      <description>&lt;P&gt;You can put this line&lt;BR /&gt;(command "_.script" "myscript.scr")&lt;BR /&gt;in acaddoc.lsp or acad201*doc.lsp...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: just for newones&lt;/P&gt;&lt;P&gt;(if (wcmatch (getvar 'DWGNAME) "Drawing*")&amp;nbsp;&lt;SPAN&gt;(command "_.script" "myscript.scr"))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2015 09:57:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5720302#M323141</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2015-07-15T09:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Run script file in existing Autocad instance from external program</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5720435#M323142</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;You can put this line&lt;BR /&gt;(command "_.script" "myscript.scr")&lt;BR /&gt;in acaddoc.lsp or acad201*doc.lsp...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: just for newones&lt;/P&gt;
&lt;P&gt;(if (wcmatch (getvar 'DWGNAME) "Drawing*")&amp;nbsp;&lt;SPAN&gt;(command "_.script" "myscript.scr"))&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi BeekeeCZ,&lt;/P&gt;
&lt;P&gt;to add the code line at 'acaddoc.lsp' file, &lt;SPAN&gt;It will be&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a good way to run the script in &lt;SPAN class="hps alt-edited"&gt;every new&lt;/SPAN&gt; dwg, but the '&lt;EM class="ph i" id="GUID-FDB4038D-1620-4A56-8824-D37729D42520__GUID-94BDCB8C-D058-4478-84A3-5DFAFF179DB6"&gt;acad&amp;lt;release&amp;gt;doc.lsp'&lt;/EM&gt; file, should &lt;SPAN class="hps"&gt;not be edited&lt;/SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;From the help files:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://help.autodesk.com/view/ACD/2016/ENU/?guid=GUID-FDB4038D-1620-4A56-8824-D37729D42520" target="_blank"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="notetitle"&gt;Note:&lt;/SPAN&gt; Do not modify the reserved &lt;EM class="ph i" id="GUID-FDB4038D-1620-4A56-8824-D37729D42520__GUID-FBAFDC16-BA0E-4071-9F76-07FAA6486D54"&gt;acad&amp;lt;release&amp;gt;doc.lsp&lt;/EM&gt; file. Autodesk provides the &lt;EM class="ph i" id="GUID-FDB4038D-1620-4A56-8824-D37729D42520__GUID-94BDCB8C-D058-4478-84A3-5DFAFF179DB6"&gt;acad&amp;lt;release&amp;gt;doc.lsp&lt;/EM&gt; file, which contains required, release-specific, AutoLISP-defined functions. This file is...&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps, &lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2015 11:44:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5720435#M323142</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-07-15T11:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Run script file in existing Autocad instance from external program</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5720455#M323143</link>
      <description>Thank you for the information. Good to know.</description>
      <pubDate>Wed, 15 Jul 2015 12:00:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5720455#M323143</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2015-07-15T12:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Run script file in existing Autocad instance from external program</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5720473#M323144</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt; wrote:&lt;BR /&gt;Thank you for the information. Good to know.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You're welcome, BeekeeCZ&lt;BR /&gt;Glad I could help&lt;BR /&gt;&lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2015 12:18:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5720473#M323144</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-07-15T12:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Run script file in existing Autocad instance from external program</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5722301#M323145</link>
      <description>hmsilva, this solution worked great!&lt;BR /&gt;My only issue i have now is, the computer that I need this to work on use Autocad 2010 LT, and as far as I can tell won't run lisp files.&lt;BR /&gt;Is there any way to use a similar method without lisp?</description>
      <pubDate>Thu, 16 Jul 2015 03:20:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5722301#M323145</guid>
      <dc:creator>avivmintz</dc:creator>
      <dc:date>2015-07-16T03:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Run script file in existing Autocad instance from external program</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5722534#M323146</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2073978"&gt;@avivmintz&lt;/a&gt; wrote:&lt;BR /&gt;hmsilva, this solution worked great!&lt;BR /&gt;My only issue i have now is, the computer that I need this to work on use Autocad 2010 LT, and as far as I can tell won't run lisp files.&lt;BR /&gt;Is there any way to use a similar method without lisp?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi Aviv,&lt;/P&gt;
&lt;P&gt;the solution wasn't mine, was from &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;As far as I&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;know&lt;/SPAN&gt;, using AutoCAD LT, &lt;SPAN class="hps"&gt;I can't see a &lt;/SPAN&gt;workaround for the batch (/b) startup switch to run a script file...&lt;/P&gt;
&lt;P&gt;I'm not a LT guy, &lt;SPAN class="hps alt-edited"&gt;perhaps an LT user may have &lt;SPAN class="hps"&gt;another approach&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps alt-edited"&gt;Henrique&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 10:15:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5722534#M323146</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-07-16T10:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Run script file in existing Autocad instance from external program</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5724051#M323147</link>
      <description>Whoops, clearly wasn't paying attention! Thanks BeeKeeCZ. Would I be better off posting this in the Autocad LT Forum?</description>
      <pubDate>Thu, 16 Jul 2015 22:18:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/5724051#M323147</guid>
      <dc:creator>avivmintz</dc:creator>
      <dc:date>2015-07-16T22:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Run script file in existing Autocad instance from external program</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/6006132#M323148</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you need a small program that works with AutoCAD LT as well as AutoCAD full then our program Multi-Batch can help you. It has five wizards for creating new routines including two for plotting, plus plenty of standard routines to get you started, from here you can add your own custom routines.&amp;nbsp;The scripts are stored in a database making it easy to backup and share across a network.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;See what current users have to say at &lt;A href="http://www.multi-batch.com/testimonials.htm" target="_self"&gt;http://www.multi-batch.com/testimonials.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you need any help let us know.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Patrick&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.multi-batch.com/" target="_self"&gt;http://www.multi-batch.com/&lt;/A&gt;&lt;BR /&gt;For your entire batch processing needs&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 07:05:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/run-script-file-in-existing-autocad-instance-from-external/m-p/6006132#M323148</guid>
      <dc:creator>PatrickByrne</dc:creator>
      <dc:date>2016-01-26T07:05:50Z</dc:date>
    </item>
  </channel>
</rss>

