<?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: Error message in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5859142#M137633</link>
    <description>&lt;P&gt;Replace&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;command by command-s&lt;BR /&gt;vl-cmdf by command-s&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I fix myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;A greeting.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Oct 2015 13:48:33 GMT</pubDate>
    <dc:creator>carlos_m_gil_p</dc:creator>
    <dc:date>2015-10-13T13:48:33Z</dc:date>
    <item>
      <title>Error message</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5858562#M137628</link>
      <description>&lt;P&gt;What is thi error message for?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Cannot invoke (command) from *error* without prior call to (*push-error-using-command*).&lt;BR /&gt;Converting (command) calls to (command-s) is recommended."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 06:08:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5858562#M137628</guid>
      <dc:creator>sam_safinia</dc:creator>
      <dc:date>2015-10-13T06:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5858693#M137629</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can you give more details(AutoCAD version, Product) regarding when this error message shown ?&lt;/P&gt;
&lt;P&gt;If you are running any lisp routine have you tried replacing the command to command-s as suggested in the error message ?&lt;/P&gt;
&lt;P&gt;&lt;A href="http://help.autodesk.com/view/ACD/2015/ENU/?guid=GUID-620E034A-9151-427F-B6F5-B360D14DA925" target="_blank"&gt;More about this error&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 08:25:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5858693#M137629</guid>
      <dc:creator>Ajilal.Vijayan</dc:creator>
      <dc:date>2015-10-13T08:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5858710#M137630</link>
      <description>You are right. It appears after running lisp. I got this in ver. 2015 &amp;amp; 16.</description>
      <pubDate>Tue, 13 Oct 2015 08:36:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5858710#M137630</guid>
      <dc:creator>sam_safinia</dc:creator>
      <dc:date>2015-10-13T08:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5858715#M137631</link>
      <description>&lt;P&gt;Try after replacing command to command-s, or post the code here to check.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 08:42:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5858715#M137631</guid>
      <dc:creator>Ajilal.Vijayan</dc:creator>
      <dc:date>2015-10-13T08:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5858969#M137632</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/460083"&gt;@Ajilal.Vijayan&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Try after replacing command to command-s....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;... but&amp;nbsp;perhaps only (command) functions&lt;EM&gt; inside&lt;/EM&gt; the *error* handler [typically used for Undo End but also possibly things like UCS resetting, etc.].&amp;nbsp; Read about (command-s) in Help, where the differences between it and (command) are described, as well as &lt;EM&gt;certain restrictions&lt;/EM&gt; -- you &lt;EM&gt;can't&lt;/EM&gt; simply replace &lt;EM&gt;all&lt;/EM&gt; (command) functions with (command-s) functions.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 12:11:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5858969#M137632</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2015-10-13T12:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5859142#M137633</link>
      <description>&lt;P&gt;Replace&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;command by command-s&lt;BR /&gt;vl-cmdf by command-s&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I fix myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;A greeting.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 13:48:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5859142#M137633</guid>
      <dc:creator>carlos_m_gil_p</dc:creator>
      <dc:date>2015-10-13T13:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5859468#M137634</link>
      <description>Actually replacing command-s didn't help. I am just curious regarding&lt;BR /&gt;version of CAD hat this lisp is written for which is quite old.It might be&lt;BR /&gt;version 12 or 13.&lt;BR /&gt;&lt;BR /&gt;After running the routine the DCL appears and everything looks OK but when&lt;BR /&gt;start to invoke the lisp I get this error:&lt;BR /&gt;&lt;BR /&gt;"ERR_CTRL version 1.4 loaded.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;From point:&lt;BR /&gt;&lt;BR /&gt;To point:&lt;BR /&gt;&lt;BR /&gt;Cannot invoke (command) from *error* without prior call to&lt;BR /&gt;(*push-error-using-command*).&lt;BR /&gt;&lt;BR /&gt;Converting (command) calls to (command-s) is recommended."&lt;BR /&gt;&lt;BR /&gt;The lisp is reading a config file and error control routine. I found this&lt;BR /&gt;code in error control lisp:&lt;BR /&gt;&lt;BR /&gt;.....&lt;BR /&gt;&lt;BR /&gt;; Start an undo group so *error* can undo everthing that occured before&lt;BR /&gt;it was called.&lt;BR /&gt;&lt;BR /&gt;; In R12 the command was Group, in R13 it was changed to Begin.&lt;BR /&gt;&lt;BR /&gt;(if (&amp;lt; (atoi (getvar "ACADVER")) 13)&lt;BR /&gt;&lt;BR /&gt;(command "_.UNDO" "_G")&lt;BR /&gt;&lt;BR /&gt;(command "_.UNDO" "_BE")&lt;BR /&gt;&lt;BR /&gt;) ;if&lt;BR /&gt;&lt;BR /&gt;.....&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 13 Oct 2015 16:21:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5859468#M137634</guid>
      <dc:creator>sam_safinia</dc:creator>
      <dc:date>2015-10-13T16:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5859543#M137635</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@s_plant wrote:&lt;BR /&gt;...&amp;nbsp;when&amp;nbsp;start to invoke the lisp I get this error:&lt;BR /&gt;&lt;BR /&gt;"ERR_CTRL version 1.4 loaded.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;From point:&lt;BR /&gt;&lt;BR /&gt;To point:&lt;BR /&gt;&lt;BR /&gt;Cannot invoke (command) from *error* ....&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;....&lt;BR /&gt;(command "_.UNDO" "_G")&lt;BR /&gt;(command "_.UNDO" "_BE")&lt;BR /&gt;....&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There appears to be more wrong than just the (command)-in-*error* problem, if you're getting that message upon giving a point.... &amp;nbsp;But in any case:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There should be something in your error handler that is similar to those Undo-related commands but with the &lt;STRONG&gt;E&lt;/STRONG&gt;nd option, and that is where you should change function names from (command ...) to (command&lt;STRONG&gt;-s&lt;/STRONG&gt; ...). &amp;nbsp;&lt;STRONG&gt;HOWEVER&lt;/STRONG&gt;, if you are also running any computers with AutoCAD older than [I think] 2015, they won't recognize (command-s) as a function. &amp;nbsp;If you have AutoLisp routines with *error* handlers that need to run on &lt;EM&gt;both&lt;/EM&gt; older and newer versions of AutoCAD, you may need to switch to (vla) methods of starting and ending the Undo wrapping, avoiding either (command) or (command-s). &amp;nbsp;Write back if that's what you need to do, or Search for&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(vla-startundomark&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to find examples of code that does it that way.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 16:59:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5859543#M137635</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2015-10-13T16:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5869041#M137636</link>
      <description>&lt;P&gt;Thanks guys but still cannot run my lisp. I try on my end again and again...&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2015 06:21:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5869041#M137636</guid>
      <dc:creator>sam_safinia</dc:creator>
      <dc:date>2015-10-20T06:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5869146#M137637</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@s_plant wrote:&lt;BR /&gt;
&lt;P&gt;Thanks guys but still cannot run my lisp. I try on my end again and again...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi s_plant,&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;would be easier&lt;/SPAN&gt; to help, &lt;SPAN class="hps"&gt;if&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;you show&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;us&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;your&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;code...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;Henrique&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2015 07:53:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/error-message/m-p/5869146#M137637</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-10-20T07:53:18Z</dc:date>
    </item>
  </channel>
</rss>

