<?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: Connection problems with external programs when communicating with AutoCAD in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/connection-problems-with-external-programs-when-communicating/m-p/12044567#M8472</link>
    <description>&lt;P&gt;It is very difficult to say/suggest anything meaningful without knowing what "external AutoCAD program" and "AutoCAD client" are, and how they are supposed to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just a shot in the dark: whatever the "external AutoCAD program" and/or "AutoCAD client" are, it is possible to communicate with running AutoCAD session through AutoCAD COM API, and the "program"/"client" was early bound to AutoCAD COM API (Acad2018).&amp;nbsp; Since you mentioned the reference to "C:\.....\&lt;SPAN&gt;acax24enu.tlb&lt;/SPAN&gt;"), does that mean that the program has been recompiled with the COM API type library of Acad2022?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jun 2023 16:34:13 GMT</pubDate>
    <dc:creator>norman.yuan</dc:creator>
    <dc:date>2023-06-19T16:34:13Z</dc:date>
    <item>
      <title>Connection problems with external programs when communicating with AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/connection-problems-with-external-programs-when-communicating/m-p/12043572#M8471</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the change from AutoCAD (Mechanical) 2018 to 2022 we have several problems with the communication of our external AutoCAD programs to the AutoCAD client.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The messages are always:&lt;BR /&gt;&lt;SPAN&gt;Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED))”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The programs are based on C# with reference to "C:\Program Files\Common Files\Autodesk Shared\acax24enu.tlb."&lt;/P&gt;&lt;P&gt;A conversion to AutoCAD internal running programs (dll) is not possible at the moment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The hints in "&lt;A href="https://through-the-interface.typepad.com/through_the_interface/2010/02/handling-com-calls-rejected-by-autocad-from-an-external-net-application.html" target="_blank" rel="noopener"&gt;Handling COM calls rejected by AutoCAD from an external .NET application&lt;/A&gt;" do not help or better not clear enough for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What else can I do or what am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings tom&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 09:24:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/connection-problems-with-external-programs-when-communicating/m-p/12043572#M8471</guid>
      <dc:creator>TSKZ</dc:creator>
      <dc:date>2023-06-19T09:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Connection problems with external programs when communicating with AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/connection-problems-with-external-programs-when-communicating/m-p/12044567#M8472</link>
      <description>&lt;P&gt;It is very difficult to say/suggest anything meaningful without knowing what "external AutoCAD program" and "AutoCAD client" are, and how they are supposed to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just a shot in the dark: whatever the "external AutoCAD program" and/or "AutoCAD client" are, it is possible to communicate with running AutoCAD session through AutoCAD COM API, and the "program"/"client" was early bound to AutoCAD COM API (Acad2018).&amp;nbsp; Since you mentioned the reference to "C:\.....\&lt;SPAN&gt;acax24enu.tlb&lt;/SPAN&gt;"), does that mean that the program has been recompiled with the COM API type library of Acad2022?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 16:34:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/connection-problems-with-external-programs-when-communicating/m-p/12044567#M8472</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2023-06-19T16:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Connection problems with external programs when communicating with AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/connection-problems-with-external-programs-when-communicating/m-p/12045858#M8473</link>
      <description>&lt;P&gt;"External AutoCAD program" means my written C# program with AutoCAD COM API. And "AutoCAD client" means AutoCAD itself.&lt;/P&gt;&lt;P&gt;Yes, the program was recompiled with the COM API type library of Acad2022.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found out that when the connection problem happens and I press the ESC key on AutoCAD side (inside the drawing) and go back to my program and run the command again then it often works.&lt;/P&gt;&lt;P&gt;Strange.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 06:05:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/connection-problems-with-external-programs-when-communicating/m-p/12045858#M8473</guid>
      <dc:creator>TSKZ</dc:creator>
      <dc:date>2023-06-20T06:05:28Z</dc:date>
    </item>
  </channel>
</rss>

