<?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 Need to run LISP function synchronously from .NET across multiple drawings in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/need-to-run-lisp-function-synchronously-from-net-across-multiple/m-p/3279345#M57800</link>
    <description>&lt;P&gt;I am using the Application.Invoke() method on 2011+ and am finding it to not work well other than from the command line of a single document.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I declare a Commandflag.Session flag for my command, and try calling Invoke using more than one parameter on a new drawing where the command was not run from, it bombs out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, Drawing1.dwg - Run command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A new Drawing2 is opened, saved, and Invoke called to run some LISP, it will fail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have experience with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did read somewhere that Invoke() may need to be run from a Document context. Does that exclude the Session flag?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2012 17:39:58 GMT</pubDate>
    <dc:creator>odoshi</dc:creator>
    <dc:date>2012-01-03T17:39:58Z</dc:date>
    <item>
      <title>Need to run LISP function synchronously from .NET across multiple drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/need-to-run-lisp-function-synchronously-from-net-across-multiple/m-p/3279345#M57800</link>
      <description>&lt;P&gt;I am using the Application.Invoke() method on 2011+ and am finding it to not work well other than from the command line of a single document.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I declare a Commandflag.Session flag for my command, and try calling Invoke using more than one parameter on a new drawing where the command was not run from, it bombs out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, Drawing1.dwg - Run command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A new Drawing2 is opened, saved, and Invoke called to run some LISP, it will fail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have experience with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did read somewhere that Invoke() may need to be run from a Document context. Does that exclude the Session flag?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2012 17:39:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/need-to-run-lisp-function-synchronously-from-net-across-multiple/m-p/3279345#M57800</guid>
      <dc:creator>odoshi</dc:creator>
      <dc:date>2012-01-03T17:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need to run LISP function synchronously from .NET across multiple drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/need-to-run-lisp-function-synchronously-from-net-across-multiple/m-p/3279563#M57801</link>
      <description>&lt;P&gt;Forget it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the Interop DLL's and SendCommand will work synchronously if CommandFlag.Session is used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doh!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2012 19:55:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/need-to-run-lisp-function-synchronously-from-net-across-multiple/m-p/3279563#M57801</guid>
      <dc:creator>odoshi</dc:creator>
      <dc:date>2012-01-03T19:55:14Z</dc:date>
    </item>
  </channel>
</rss>

