<?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: Invoke command or function from other thread in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/invoke-command-or-function-from-other-thread/m-p/2760950#M64116</link>
    <description>&lt;P&gt;I've solved this problem by calling ActiveX SendCommand method from my background thread. But it's very odd solution - call AutoCAD by ActiveX from self!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it's important to implement invoking commands and methods from other threads in AutoCAD. maybe, not from Document.Editor, maybe from Application object, but multithreading is important now. It's useful in huge area - from parallel computing to AJAX-like interfaces.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Sep 2010 03:06:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-09-02T03:06:49Z</dc:date>
    <item>
      <title>Invoke command or function from other thread</title>
      <link>https://forums.autodesk.com/t5/net-forum/invoke-command-or-function-from-other-thread/m-p/2755351#M64112</link>
      <description>&lt;P&gt;I know that ObjectARX API not available from other threads except AutoCAD thread. But maybe I can invoke command or function from other thread to run command in AutoCAD thread?&lt;/P&gt;&lt;P&gt;And&amp;nbsp;what is&amp;nbsp;Application.Invoke() method? I can't find info about this method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2010 07:36:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/invoke-command-or-function-from-other-thread/m-p/2755351#M64112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-26T07:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke command or function from other thread</title>
      <link>https://forums.autodesk.com/t5/net-forum/invoke-command-or-function-from-other-thread/m-p/2755441#M64113</link>
      <description>&lt;P&gt;You can try calling the ActiveX SendCommand() method from&amp;nbsp;the&lt;/P&gt;&lt;P&gt;other thread, and use it to invoke a CommandMethod you define,&lt;/P&gt;&lt;P&gt;that can do the work in the AutoCAD thread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Invoke() method invokes LISP functions, but only works from the&lt;/P&gt;&lt;P&gt;document context.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2010 11:22:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/invoke-command-or-function-from-other-thread/m-p/2755441#M64113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-26T11:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke command or function from other thread</title>
      <link>https://forums.autodesk.com/t5/net-forum/invoke-command-or-function-from-other-thread/m-p/2756407#M64114</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-user-name UserName"&gt;&lt;A rel="nofollow" target="_self" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/78044"&gt;&lt;SPAN&gt;caddzone&lt;/SPAN&gt;&lt;/A&gt;, thank you for the answer, but I don't understand,&amp;nbsp;how Invoke() method of Application object can be used. Application object available from any thread, and I can use Alert() method from other thread, for example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-user-name UserName"&gt;Please explain how I can use invoke() method. Maybe you can give a sample.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2010 03:09:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/invoke-command-or-function-from-other-thread/m-p/2756407#M64114</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-27T03:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke command or function from other thread</title>
      <link>https://forums.autodesk.com/t5/net-forum/invoke-command-or-function-from-other-thread/m-p/2756549#M64115</link>
      <description>&lt;P&gt;I already said that you can't call Invoke() from another thread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It can only be called from the document exection context.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2010 10:01:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/invoke-command-or-function-from-other-thread/m-p/2756549#M64115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-27T10:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke command or function from other thread</title>
      <link>https://forums.autodesk.com/t5/net-forum/invoke-command-or-function-from-other-thread/m-p/2760950#M64116</link>
      <description>&lt;P&gt;I've solved this problem by calling ActiveX SendCommand method from my background thread. But it's very odd solution - call AutoCAD by ActiveX from self!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it's important to implement invoking commands and methods from other threads in AutoCAD. maybe, not from Document.Editor, maybe from Application object, but multithreading is important now. It's useful in huge area - from parallel computing to AJAX-like interfaces.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2010 03:06:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/invoke-command-or-function-from-other-thread/m-p/2760950#M64116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-02T03:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke command or function from other thread</title>
      <link>https://forums.autodesk.com/t5/net-forum/invoke-command-or-function-from-other-thread/m-p/2762134#M64117</link>
      <description>&lt;P&gt;Also I've found another solution. I can implement multithreading via windows form and it's Invoke() method. Form loads in autodesk thread, so I can access object model from form methods. Other threads call Invoke() method.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2010 04:51:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/invoke-command-or-function-from-other-thread/m-p/2762134#M64117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-03T04:51:56Z</dc:date>
    </item>
  </channel>
</rss>

