<?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 (command...) from invoked lisp? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/run-command-from-invoked-lisp/m-p/5609767#M40334</link>
    <description>&lt;P&gt;Hi James,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please try the code snippet from this blog post ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2015/04/calling-lisp-commands-from-palette.html" target="_blank"&gt;http://adndevblog.typepad.com/autocad/2015/04/calling-lisp-commands-from-palette.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The context becomes important if you have (command-s ...) calls in your Lisp code that is being invoked from .Net code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;</description>
    <pubDate>Mon, 27 Apr 2015 17:32:13 GMT</pubDate>
    <dc:creator>Balaji_Ram</dc:creator>
    <dc:date>2015-04-27T17:32:13Z</dc:date>
    <item>
      <title>run (command...) from invoked lisp?</title>
      <link>https://forums.autodesk.com/t5/net-forum/run-command-from-invoked-lisp/m-p/5604323#M40333</link>
      <description>&lt;P&gt;I still have some code in my lisp functions that use (command.....).&lt;/P&gt;&lt;P&gt;I want to call some of those functions from my palette, and am getting the "command rejected..." message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I read you need to set commandflags.modal or session to do this, but that only seems applicable when you are defining a command via .net.&lt;/P&gt;&lt;P&gt;I am not defining a command, the dialog is invoking the lisp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most examples are oriented around calling the commands straight from .net, so I have not found a similar situation to compare to.&lt;/P&gt;&lt;P&gt;Part of my need to do certain activities in lisp is my xdata attachment mechanism is complex and written in lisp (but does not use command calls&amp;nbsp;itself)&lt;/P&gt;&lt;P&gt;I may have to split up activities if (command....) cannot be called from an invoked lisp, and draw using .net and then transfer to lisp to finish off...&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 00:27:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/run-command-from-invoked-lisp/m-p/5604323#M40333</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2015-04-23T00:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: run (command...) from invoked lisp?</title>
      <link>https://forums.autodesk.com/t5/net-forum/run-command-from-invoked-lisp/m-p/5609767#M40334</link>
      <description>&lt;P&gt;Hi James,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please try the code snippet from this blog post ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2015/04/calling-lisp-commands-from-palette.html" target="_blank"&gt;http://adndevblog.typepad.com/autocad/2015/04/calling-lisp-commands-from-palette.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The context becomes important if you have (command-s ...) calls in your Lisp code that is being invoked from .Net code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 17:32:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/run-command-from-invoked-lisp/m-p/5609767#M40334</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2015-04-27T17:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: run (command...) from invoked lisp?</title>
      <link>https://forums.autodesk.com/t5/net-forum/run-command-from-invoked-lisp/m-p/5616122#M40335</link>
      <description>&lt;P&gt;finally got back to this.&lt;/P&gt;&lt;P&gt;I am supporting back to acad 2013, so must use sendstringtoexecute.&lt;/P&gt;&lt;P&gt;Only problem is I am sending a huge set of parameters to the routine to do the drawing.&lt;/P&gt;&lt;P&gt;Sometimes its thousands of points, all serialized to string so way too much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will have to make the ents with entmake instead.I am using&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2015 22:56:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/run-command-from-invoked-lisp/m-p/5616122#M40335</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2015-05-01T22:56:39Z</dc:date>
    </item>
  </channel>
</rss>

