<?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: stop command in script in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134682#M26234</link>
    <description>&lt;P&gt;**Also the newly saved &lt;STRONG&gt;dxf&lt;/STRONG&gt; files have an addtional &lt;STRONG&gt;"-R12"&lt;/STRONG&gt; added to the filename so the original is not changed.&lt;/P&gt;&lt;P&gt;I modified &lt;STRONG&gt;Lee's Script Writer&lt;/STRONG&gt; and created this version I've named:&amp;nbsp;&lt;STRONG&gt;ScriptWriterV1-2dxf.lsp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This now will open only&amp;nbsp;&lt;STRONG&gt;dxf&lt;/STRONG&gt; (instead of &lt;STRONG&gt;dwg&lt;/STRONG&gt;) files in the selected folder for you to run &lt;STRONG&gt;foo.lsp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;Script Line&lt;/STRONG&gt; needs to be modified to this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;_.Open *file* (load"foo") (c:foo) _.Close _Y&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_0-1690587487769.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1246644i3DBD4EFB3EAFB61A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_0-1690587487769.png" alt="paullimapa_0-1690587487769.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2023 23:42:44 GMT</pubDate>
    <dc:creator>paullimapa</dc:creator>
    <dc:date>2023-07-28T23:42:44Z</dc:date>
    <item>
      <title>stop command in script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134042#M26216</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After 3 hours of searching and trying I'm in here inquiring.&lt;/P&gt;&lt;P&gt;Would someone please tell me how to stop (cancel) an AutoCAD command while running a script file, but not stop the script so it can continue to process all of the remaining commands to the end?&lt;/P&gt;&lt;P&gt;I tried using ASCII characters to emulate the ESC key, but not luck.&lt;/P&gt;&lt;P&gt;I also tried running a simple LISP routine to cycle the command line, but no luck.&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;Couldn't figure out how to get LISP to run inside a script file.&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;Finally found out how to get LISP to run from a script file.&lt;/P&gt;&lt;P&gt;But that didn't help b/c once the LISP file terminates the script command, it also terminates the remainder of the script file.&lt;/P&gt;&lt;P&gt;I've been using AutoCAD since R10, but quit using it for Inventor since R6, so I'm a bit rusty on all of this AutoCAD stuff.&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2023 18:52:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134042#M26216</guid>
      <dc:creator>cadman777</dc:creator>
      <dc:date>2023-07-30T18:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: stop command in script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134061#M26217</link>
      <description>&lt;P&gt;Did you try (exit) or (command)?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 17:49:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134061#M26217</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2023-07-28T17:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: stop command in script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134091#M26218</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/88249"&gt;@cadman777&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Would someone please tell me how to stop (cancel) an AutoCAD command while running a script file?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you mean to stop just the command, but to have the Script continue?&amp;nbsp; Or to stop the entire Script?&amp;nbsp; Some commands can be "concluded" rather than "cancelled" by just a blank line in the Script, providing their concluding Enter, for example LAYER or LINE or PLINE or COPY when in Multiple mode.&amp;nbsp; Can you describe an example?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 18:07:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134091#M26218</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-07-28T18:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: stop command in script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134093#M26219</link>
      <description>(quit) it, ronjonp.</description>
      <pubDate>Fri, 28 Jul 2023 18:03:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134093#M26219</guid>
      <dc:creator>john.kaulB9QW2</dc:creator>
      <dc:date>2023-07-28T18:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: stop command in script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134105#M26220</link>
      <description>&lt;P&gt;Yes, I tried (command) but it didn't work.&amp;nbsp;But get this: While waiting for a forum answer, I rebooted AutoCAD and tried (command) again, and it worked.&amp;nbsp;Go figure!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I need to 'resume' the script, b/c the command termination was for only one of a string of commands, some of which need to continue.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 18:09:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134105#M26220</guid>
      <dc:creator>cadman777</dc:creator>
      <dc:date>2023-07-28T18:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: stop command in script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134191#M26221</link>
      <description>&lt;P&gt;You should be able to use Backspace key on your keyboard to pause the script and then enter command Resume to continue&lt;/P&gt;&lt;P&gt;Scroll to the bottom to read about these features&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/ACDLT/2022/ENU/?guid=GUID-BE44AE86-7638-48C9-BE5B-C1DF8E4C8808" target="_blank"&gt;https://help.autodesk.com/view/ACDLT/2022/ENU/?guid=GUID-BE44AE86-7638-48C9-BE5B-C1DF8E4C8808&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 18:36:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134191#M26221</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-07-28T18:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: stop command in script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134428#M26222</link>
      <description>&lt;P&gt;Thanks, but I want the script to be fully automated.&lt;/P&gt;&lt;P&gt;Note: I do NOT want to PAUSE the script.&lt;BR /&gt;I plan on using ScriptPro to apply the script to a directory of drawings.&lt;BR /&gt;Any other ideas?&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2023 18:53:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134428#M26222</guid>
      <dc:creator>cadman777</dc:creator>
      <dc:date>2023-07-30T18:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: stop command in script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134435#M26223</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Do you mean to stop just the command, but to have the Script continue?&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to run a script on a directory of DXFs.&lt;/P&gt;&lt;P&gt;First I need to make a reliable script.&lt;/P&gt;&lt;P&gt;I got it to work on a toolbar button (macro), but want a script instead to use w/ScriptPro.&lt;/P&gt;&lt;P&gt;So at least I know it does work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Zoom Extents&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;Explode All&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;Pedit Join All&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;Tilemode 0&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;SaveAs DXF R12&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;Tilemode 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pedit needs to be shut down and the rest of the script resumed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx for your input...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 20:44:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134435#M26223</guid>
      <dc:creator>cadman777</dc:creator>
      <dc:date>2023-07-28T20:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: stop command in script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134445#M26224</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/88249"&gt;@cadman777&lt;/a&gt;&amp;nbsp;Why not use the "JOIN" command?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure I understand what shutting down pedit means.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 20:46:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134445#M26224</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2023-07-28T20:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: stop command in script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134447#M26225</link>
      <description>&lt;P&gt;Unfortunately you cannot pause a script for user input. All the info need to be already there in the script file and must run to completion.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 20:46:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134447#M26225</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-07-28T20:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: stop command in script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134452#M26226</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1137264"&gt;@paullimapa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Unfortunately you cannot pause a script for user input. All the info need to be already there in the script file and must run to completion.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can pause a lisp being called from a script .. but that defeats the purpose of scripting&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;_.OPEN "C:\Path\To\File\TEST.dwg"
(C:MYLISP)
_.CLOSE&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 20:52:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134452#M26226</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2023-07-28T20:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: stop command in script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134470#M26227</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Not sure I understand what shutting down pedit means.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;Draw a few lines that are connected at the ends but are not a polyline.&lt;/P&gt;&lt;P&gt;Invoke Pedit and go through the prompts.&lt;/P&gt;&lt;P&gt;Then make a script that does the same thing, except add some other commands after the script.&lt;/P&gt;&lt;P&gt;See what happens.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2023 18:56:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134470#M26227</guid>
      <dc:creator>cadman777</dc:creator>
      <dc:date>2023-07-30T18:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: stop command in script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134472#M26228</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/88249"&gt;@cadman777&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;LI-CODE lang="general"&gt;Not sure I understand what shutting down pedit means.&lt;/LI-CODE&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;drawing a few lines that are connected at the ends but are not a polyline.&lt;/P&gt;
&lt;P&gt;Invoke Pedit and go through the prompts.&lt;/P&gt;
&lt;P&gt;Then make a script that does the same thing, except add some other commands after the script.&lt;/P&gt;
&lt;P&gt;See what happens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Use the JOIN command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is your purpose to explode all in mspace then switch to pspace after?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 21:07:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134472#M26228</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2023-07-28T21:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: stop command in script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134487#M26229</link>
      <description>&lt;P&gt;OK guys, I'm beginning to see that my 'little' endeavor into scripting has become another MEGA PROJECT due to Autodesk's FUBAR 'programming' system. I can't remember how to code LISP, which I was fair at in the past (90's). Back then I was pretty good at scripts. I have some of my old scripts that setup drawings for different customer's standards. It combined Scripts and LISP, but that was too long ago! Anyway, I also got pretty good at hacking my way through iLogic with Inventor relying on a LOTTA help from the forum gurus. But now, I'm pretty much not 1/2 the man I used to be, so am struggling w/this. Here's what I discovered today after about 8 hours of fumbling around in this old world:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there are no entities that can be Exploded, then the rest of my script fails. So I need to have error checking at that point. Can't recall how to do that. Next caveat is if all the entities are already joined or if none of the entities can be joined. Need error handling for that too. Also, if all the entities are non-polylines, same thing. Then there's Qsave or SaveAs. Another typical case of if/and/but/exceptions/etc. So at this point, I am &lt;STRONG&gt;cursing&lt;/STRONG&gt; Autodesk for making this so g/d difficult for those of us who don't have the gray matter to force our way through it to get 'productive'. I've ranted like this in the Inventor Customization forum more than I'd like to admit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By way of comparison, Rhino3D has a GUI programming environment. It's complex but not too difficult to learn by comparison. We all work in the GUI environment with ALL Autodesk products. One would think...or COMMON SENSE would dictate that we also would use a GUI programming language to handle these things. Anyway, that's my rant b/c I don't have the graystuff to get this done. Too many other irons in the fire, so not enough time to 'power through' it.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 21:18:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134487#M26229</guid>
      <dc:creator>cadman777</dc:creator>
      <dc:date>2023-07-28T21:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: stop command in script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134517#M26230</link>
      <description>&lt;P&gt;Here's the bulk of it sorted out .. assuming you're zooming extents, exploding, then joining all in MODELSPACE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(defun c:foo (/ s)
  ;; To modelspace?
  (setvar 'tilemode 1)
  ;; If we have a selection in modelspace
  (if (setq s (ssget "_X" '((410 . "Model"))))
    (progn ;; Zoom
	   (command "_Zoom" "_Extents")
	   ;; Explode
	   (vl-catch-all-apply 'vl-cmdf (list "_.Explode" s ""))
	   ;; Join
	   (initcommandversion)
	   (vl-catch-all-apply 'vl-cmdf (list "_.Join" "_All" ""))
	   ;; To paperspace
	   (setvar 'tilemode 0)
	   ;; Add your line to save as DXF12 below
      
	   ;; To modelspace
	   (setvar 'tilemode 1)
    )
  )
  (princ)
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 21:40:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134517#M26230</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2023-07-28T21:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: stop command in script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134590#M26231</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;Well...there you have it!&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;I added Qsave and all the switches, and it works.&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;It works on one file only.&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;Thanks for making this for me.&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;I hesitate to ask how long it took you, considering I spent 8 hours and got nowhere!&lt;/P&gt;&lt;P&gt;What? 10 minutes? Maybe 5?&lt;/P&gt;&lt;P&gt;Anyway, thanx for helping with this.&lt;/P&gt;&lt;P&gt;Do you know if there's a utility I can get that I can apply this LISP to multiple files on disk?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UPDATE:&lt;BR /&gt;I can't get Qsave to work right.&lt;/P&gt;&lt;P&gt;I can't get past the "file already exists, do you want to replace it" prompt.&lt;/P&gt;&lt;P&gt;Here's the line I added to the LSP file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(command "filedia" 0)
(command "_Qsave" "dxf" "v" "lt2" 16 "y")
(command "filedia" 1)
(command "Close")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Got any hints at what I may be doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2023 19:00:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134590#M26231</guid>
      <dc:creator>cadman777</dc:creator>
      <dc:date>2023-07-30T19:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: stop command in script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134624#M26232</link>
      <description>&lt;P&gt;The easiest way for you to apply this lisp for example named &lt;STRONG&gt;foo.lsp&lt;/STRONG&gt; to all drawings in a specific folder is with &lt;STRONG&gt;Lee Mac's Script Writer&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.lee-mac.com/scriptwriter.html" target="_blank" rel="noopener"&gt;http://www.lee-mac.com/scriptwriter.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;First make sure &lt;STRONG&gt;foo.lsp&lt;/STRONG&gt; is saved in a trusted folder location specified in &lt;STRONG&gt;AutoCAD&lt;/STRONG&gt; using command: &lt;STRONG&gt;Options&amp;gt;Files&amp;gt;Trusted Locations&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_2-1690583904780.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1246633i80C9AB5723B38DCE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_2-1690583904780.png" alt="paullimapa_2-1690583904780.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next, download &amp;amp; run&amp;nbsp;&lt;A href="http://www.lee-mac.com/lisp/ScriptWriterV1-2.lsp" target="_blank" rel="noopener"&gt;ScriptWriterV1-2.lsp&lt;/A&gt;&amp;nbsp;in an empty drawing by entering at the command prompt:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WScript&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_1-1690583741495.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1246632iE89B5DC1C820068F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_1-1690583741495.png" alt="paullimapa_1-1690583741495.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For &lt;STRONG&gt;Script Line&lt;/STRONG&gt;&amp;nbsp;enter the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;_.Open *file* (load"foo") (c:foo) _.Close&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Click &lt;STRONG&gt;Directory&lt;/STRONG&gt; button and select a folder where you want this to be applied to all the drawings&lt;/P&gt;&lt;P&gt;Finally, click &lt;STRONG&gt;Run Script!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then if all works as expected, you should see &lt;STRONG&gt;AutoCAD&lt;/STRONG&gt;&amp;nbsp;open each drawing and run &lt;STRONG&gt;foo.lsp&lt;/STRONG&gt; before closing.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 22:43:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134624#M26232</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-07-28T22:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: stop command in script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134637#M26233</link>
      <description>&lt;P&gt;Have you tried ScriptWriter with DXF files?&lt;BR /&gt;Have you tried it using LISP files?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 22:56:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134637#M26233</guid>
      <dc:creator>cadman777</dc:creator>
      <dc:date>2023-07-28T22:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: stop command in script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134682#M26234</link>
      <description>&lt;P&gt;**Also the newly saved &lt;STRONG&gt;dxf&lt;/STRONG&gt; files have an addtional &lt;STRONG&gt;"-R12"&lt;/STRONG&gt; added to the filename so the original is not changed.&lt;/P&gt;&lt;P&gt;I modified &lt;STRONG&gt;Lee's Script Writer&lt;/STRONG&gt; and created this version I've named:&amp;nbsp;&lt;STRONG&gt;ScriptWriterV1-2dxf.lsp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This now will open only&amp;nbsp;&lt;STRONG&gt;dxf&lt;/STRONG&gt; (instead of &lt;STRONG&gt;dwg&lt;/STRONG&gt;) files in the selected folder for you to run &lt;STRONG&gt;foo.lsp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;Script Line&lt;/STRONG&gt; needs to be modified to this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;_.Open *file* (load"foo") (c:foo) _.Close _Y&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_0-1690587487769.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1246644i3DBD4EFB3EAFB61A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_0-1690587487769.png" alt="paullimapa_0-1690587487769.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 23:42:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134682#M26234</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-07-28T23:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: stop command in script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134694#M26235</link>
      <description>&lt;P&gt;Thanks a lot for doing that for me.&lt;/P&gt;&lt;P&gt;I have to close down for the day but will be back at it next week to try out your new app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks everyone for helping me with this so far.&lt;/P&gt;&lt;P&gt;Much obliged!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 23:55:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/stop-command-in-script/m-p/12134694#M26235</guid>
      <dc:creator>cadman777</dc:creator>
      <dc:date>2023-07-28T23:55:44Z</dc:date>
    </item>
  </channel>
</rss>

