<?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 Betreff: Script stops running after lisp in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-stops-running-after-lisp/m-p/9193607#M80792</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/71745"&gt;@cadffm&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Do not CANCEL the insert command - Your NIL canceled the command and breaks the script.&lt;/P&gt;
&lt;P&gt;Insert the block-reference and delete them.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[Without setting up the situation and experimenting....]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The (command) function always returns nil.&amp;nbsp; If a nil return "breaks the script," wouldn't any (command) function do so, whether or not it ends with nil internally?&lt;/P&gt;</description>
    <pubDate>Tue, 10 Dec 2019 15:20:31 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2019-12-10T15:20:31Z</dc:date>
    <item>
      <title>Script stops running after lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-stops-running-after-lisp/m-p/9193346#M80790</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a script (see below) that stops running after the "_Situatie" (Insert_Situatie.lsp).&lt;/P&gt;&lt;P&gt;The lisp "_Situatie" works fine, it's even executed by the script, but is causes to stop running the last part of the script.&lt;/P&gt;&lt;P&gt;I have run the script without the "_Situatie" (Insert_Situatie.lsp) and than it runs fine untill the end so the problm is caused by the lisp&amp;nbsp; "Insert_Situatie" but I can't figer out why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----Script code-----&lt;/P&gt;&lt;P&gt;_open&lt;BR /&gt;"H:\BV3-TRANSMIT\Onderhoek\A\RV CZE A E0000\RV CZE A E0000.dwg"&lt;BR /&gt;_Situatie&lt;BR /&gt;_Stempel&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;-----lisp code-----&lt;/P&gt;&lt;P&gt;(defun C:Situatie ()&lt;/P&gt;&lt;P&gt;(command "_insert" "Situatie=E:\\data_tek\\AutoCAD-Custom_JHD\\Algemeen\\Situatie\\Situatie.dwg" nil)&lt;/P&gt;&lt;P&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 13:52:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-stops-running-after-lisp/m-p/9193346#M80790</guid>
      <dc:creator>djurk_haas</dc:creator>
      <dc:date>2019-12-10T13:52:23Z</dc:date>
    </item>
    <item>
      <title>Betreff: Script stops running after lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-stops-running-after-lisp/m-p/9193359#M80791</link>
      <description>&lt;P&gt;Do not CANCEL the insert command - Your NIL canceled the command and breaks the script.&lt;/P&gt;
&lt;P&gt;Insert the block-reference and delete them.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 13:57:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-stops-running-after-lisp/m-p/9193359#M80791</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2019-12-10T13:57:16Z</dc:date>
    </item>
    <item>
      <title>Betreff: Script stops running after lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-stops-running-after-lisp/m-p/9193607#M80792</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/71745"&gt;@cadffm&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Do not CANCEL the insert command - Your NIL canceled the command and breaks the script.&lt;/P&gt;
&lt;P&gt;Insert the block-reference and delete them.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[Without setting up the situation and experimenting....]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The (command) function always returns nil.&amp;nbsp; If a nil return "breaks the script," wouldn't any (command) function do so, whether or not it ends with nil internally?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 15:20:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-stops-running-after-lisp/m-p/9193607#M80792</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2019-12-10T15:20:31Z</dc:date>
    </item>
    <item>
      <title>Betreff: Script stops running after lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-stops-running-after-lisp/m-p/9193963#M80793</link>
      <description>&lt;P&gt;Maybe you can instead use &lt;FONT color="#000000"&gt;&lt;STRONG&gt;(vl-cmdf)&lt;/STRONG&gt;&lt;/FONT&gt;, which always returns T.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 17:56:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-stops-running-after-lisp/m-p/9193963#M80793</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2019-12-10T17:56:24Z</dc:date>
    </item>
    <item>
      <title>Betreff: Script stops running after lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-stops-running-after-lisp/m-p/9194019#M80794</link>
      <description>&lt;P&gt;the returning is not the problem&lt;/P&gt;
&lt;P&gt;(&lt;FONT color="#000000"&gt;&lt;STRONG&gt;vl-cmdf&lt;/STRONG&gt;&lt;/FONT&gt;) or (command) at the right place will evaluate(? wrong wording) to [ESC]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(defun C:Situatie ()&lt;BR /&gt;(command "_insert" "Situatie=E:\\data_tek\\AutoCAD-Custom_JHD\\Algemeen\\Situatie\\Situatie.dwg")&lt;BR /&gt;(command) ; or (vl-cmdf)&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;works,&lt;/P&gt;
&lt;P&gt;but in 2020 is a bug and iam not sure that it is a problem in this case (an invisible problem which users not seeing in time)&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 18:21:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-stops-running-after-lisp/m-p/9194019#M80794</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2019-12-10T18:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Script stops running after lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-stops-running-after-lisp/m-p/9194985#M80795</link>
      <description>&lt;P&gt;A -insert requires name pt X Y rot so where are they ? This will stop a script. You can erase "last" block definition is still in dwg.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 04:47:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-stops-running-after-lisp/m-p/9194985#M80795</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2019-12-11T04:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script stops running after lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-stops-running-after-lisp/m-p/9195131#M80796</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as i wrote too, but:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you and me wrotes is just the normal way to ends the command sequence fully.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if&amp;nbsp;ONLY like to redefining a block in AutoCAD (by hand) you&lt;/P&gt;
&lt;P&gt;starts the (classic) INSERT command, choose your DWG,&lt;/P&gt;
&lt;P&gt;acknowledge the re-define question and....&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exactly: You don't set the insertion point, scale and rotation and deletes the new blockreference,&lt;/P&gt;
&lt;P&gt;you skip the command by pressing [ESC] and you can do this in&amp;nbsp; Lisp too,&amp;nbsp; by using the (command) or (vl-cmdf) statement.&lt;/P&gt;
&lt;P&gt;____&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;U&gt;&lt;FONT color="#00CCFF"&gt;cadffm&lt;/FONT&gt;&lt;/U&gt; schrieb:&lt;BR /&gt;
&lt;P&gt;..but in 2020 is a bug and iam not sure that it is a problem in this case (an invisible problem which users not seeing in time)&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I checked this: It was just a Problem when you want to create a blockreference, but here in this thread we don't want to create a block reference, so it is´also in 2020 not a problem to go this way.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 07:16:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-stops-running-after-lisp/m-p/9195131#M80796</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2019-12-11T07:16:48Z</dc:date>
    </item>
  </channel>
</rss>

