<?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: Accessing AutoCAD's COM api from .Net framework in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/accessing-autocad-s-com-api-from-net-framework/m-p/13428385#M333</link>
    <description>&lt;P&gt;Thank you. I ended up using&amp;nbsp;&lt;SPAN&gt;SynchronizationContext.Post().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There is no choice but to use it out-of-process as another application is launching and controlling autocad. That other application works well when AutoCAD is on the Main Thread. Its a requirement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-TK&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Apr 2025 05:29:27 GMT</pubDate>
    <dc:creator>TK_Rao5AR2</dc:creator>
    <dc:date>2025-04-16T05:29:27Z</dc:date>
    <item>
      <title>Accessing AutoCAD's COM api from .Net framework</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-autocad-s-com-api-from-net-framework/m-p/13420425#M331</link>
      <description>&lt;P&gt;Accessing AutoCAD's COM api from out-of-process is not a challenge (I am using .Net framework 4.8). However when I react to events such as ObjectAdded, ObjectModified etc., they are executed in a worker thread.&lt;/P&gt;&lt;P&gt;There is a need to keep these events on the Main thread. Any ideas on how to achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;TK&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 05:20:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-autocad-s-com-api-from-net-framework/m-p/13420425#M331</guid>
      <dc:creator>TK_Rao5AR2</dc:creator>
      <dc:date>2025-04-11T05:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AutoCAD's COM api from .Net framework</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-autocad-s-com-api-from-net-framework/m-p/13421670#M332</link>
      <description>&lt;P&gt;I don't think there's any option for configuring what thread the events are raised on, as that's determined by the server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can deal with it using Control.Invoke() or SynchronizationContext.Post().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would also point out that events like those you cite can fire at a very high frequency, and when handling them from an out-of-process client, there will be significant overhead imposed on the end user. Given the other options for AutoCAD development, handling high-frequency events in an out-of-process client is not something I would recommend.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 18:35:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-autocad-s-com-api-from-net-framework/m-p/13421670#M332</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2025-04-11T18:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AutoCAD's COM api from .Net framework</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-autocad-s-com-api-from-net-framework/m-p/13428385#M333</link>
      <description>&lt;P&gt;Thank you. I ended up using&amp;nbsp;&lt;SPAN&gt;SynchronizationContext.Post().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There is no choice but to use it out-of-process as another application is launching and controlling autocad. That other application works well when AutoCAD is on the Main Thread. Its a requirement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-TK&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 05:29:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-autocad-s-com-api-from-net-framework/m-p/13428385#M333</guid>
      <dc:creator>TK_Rao5AR2</dc:creator>
      <dc:date>2025-04-16T05:29:27Z</dc:date>
    </item>
  </channel>
</rss>

