<?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: C# COM API: Intersection / Interference of Solid and Surface in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/c-com-api-intersection-interference-of-solid-and-surface/m-p/8462770#M24045</link>
    <description>&lt;P&gt;Thank you very much for your quick answer.&lt;/P&gt;
&lt;P&gt;I will try to use another solid instead of a surface then.&lt;/P&gt;
&lt;P&gt;I chose to use the COM API instead of the .NET API (for an in-process app) because it gives me full control over AutoCAD. What I need to do is insert a solid and get the return value from the interference method and I prefer to let my out-process app control the inputs and outputs instead of handing it over to AutoCAD,&amp;nbsp;executing a custom command and then reading some user variable. (I tried this and find it a bit unsatisfying.)&lt;/P&gt;
&lt;P&gt;And I don't know any C++ yet.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Dec 2018 13:37:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-12-12T13:37:12Z</dc:date>
    <item>
      <title>C# COM API: Intersection / Interference of Solid and Surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/c-com-api-intersection-interference-of-solid-and-surface/m-p/8460339#M24043</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want to control AutoCAD via the COM API in C# (an out-process app) and get possible intersections / interference objects of an AutoCAD.AcadSurface and AutoCAD.Acad3DSolid.&lt;/P&gt;
&lt;P&gt;I tried several methods but none works:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Acad3DSolid.CheckInterference(AcadSurface, false, out bool interference) =&amp;gt; won't compile because this method only wants to take another 3dSolid&lt;/LI&gt;
&lt;LI&gt;Acad3DSolid.Boolean() =&amp;gt; same as above&lt;/LI&gt;
&lt;LI&gt;AcadSurface.IntersectWith(Acad3DSolid, AutoCAD.AcExtendOption.acExtendNone) =&amp;gt; exception from HRESULT: 0x80200001&lt;/LI&gt;
&lt;LI&gt;Acad3DSolid.IntersectWith(AcadSurface, AutoCAD.AcExtendOption.acExtendNone) =&amp;gt; throws an exception: "Not yet implemented"&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;In .NET API (in-process) there is a method Surface.createInterferenceObjects() (see here: &lt;A href="https://forums.autodesk.com/t5/net/solid3d-checkinterference-overload-with-other-entities-e-g/m-p/8228987#M60111" target="_blank"&gt;https://forums.autodesk.com/t5/net/solid3d-checkinterference-overload-with-other-entities-e-g/m-p/8228987#M60111&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In C++ ObjectARX there is also a method AcDbSurface::createIntereferenceObjects() (see here: &lt;A href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2017/ENU/OARXMAC-RefGuide/files/OREFMAC-AcDbSurface--createInterferenceObjects-AcArray-AcDbEntity----AcDbEntity--unsigned-int-const-html.html" target="_blank"&gt;https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2017/ENU/OARXMAC-RefGuide/files/OREFMAC-AcDbSurface--createInterferenceObjects-AcArray-AcDbEntity----AcDbEntity--unsigned-int-const-html.html&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to do this in COM API in C#? I would be very happy if someone could help me. Many thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use AutoCAD Mechanical 2019 and Windows 10.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 16:02:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/c-com-api-intersection-interference-of-solid-and-surface/m-p/8460339#M24043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-11T16:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: C# COM API: Intersection / Interference of Solid and Surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/c-com-api-intersection-interference-of-solid-and-surface/m-p/8461257#M24044</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;Is there a way to do this in COM API in C#? I would be very happy if someone could help me. Many thanks in advance.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Sorry for bad news but in COM API there is no methods for that. But you can create arx-plugin, load it into AutoCAD and communicate with it.&lt;/P&gt;
&lt;P&gt;AcDbSurface::createInterferenceObjects and AcDbSurface::booleanIntersect methods can help you.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 21:14:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/c-com-api-intersection-interference-of-solid-and-surface/m-p/8461257#M24044</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2018-12-11T21:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: C# COM API: Intersection / Interference of Solid and Surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/c-com-api-intersection-interference-of-solid-and-surface/m-p/8462770#M24045</link>
      <description>&lt;P&gt;Thank you very much for your quick answer.&lt;/P&gt;
&lt;P&gt;I will try to use another solid instead of a surface then.&lt;/P&gt;
&lt;P&gt;I chose to use the COM API instead of the .NET API (for an in-process app) because it gives me full control over AutoCAD. What I need to do is insert a solid and get the return value from the interference method and I prefer to let my out-process app control the inputs and outputs instead of handing it over to AutoCAD,&amp;nbsp;executing a custom command and then reading some user variable. (I tried this and find it a bit unsatisfying.)&lt;/P&gt;
&lt;P&gt;And I don't know any C++ yet.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 13:37:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/c-com-api-intersection-interference-of-solid-and-surface/m-p/8462770#M24045</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-12T13:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: C# COM API: Intersection / Interference of Solid and Surface</title>
      <link>https://forums.autodesk.com/t5/net-forum/c-com-api-intersection-interference-of-solid-and-surface/m-p/8462845#M24046</link>
      <description>&lt;P&gt;1. AutoCAD COM/ActiveX API has not been developed for more than 10 years.&lt;/P&gt;
&lt;P&gt;2. Out-process is much slower than In-process&lt;/P&gt;
&lt;P&gt;I think in your case you can use AcCoreConsole. You can start it from your external application and load .NET-plugin into it to use all functionality of AutoCAD .NET API instead of COM API. This is the fastest and most effective method. IMHO.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 13:57:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/c-com-api-intersection-interference-of-solid-and-surface/m-p/8462845#M24046</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2018-12-12T13:57:04Z</dc:date>
    </item>
  </channel>
</rss>

