<?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: SolidUtils.IntersectSolidWithCurve cutGCurveWithGeometry Exception in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/solidutils-intersectsolidwithcurve-cutgcurvewithgeometry/m-p/9754058#M31775</link>
    <description>&lt;P&gt;Thanks &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt; .&amp;nbsp; I think I actually discovered the problem.&amp;nbsp; The solids I was generating to pass into IntersectSolidWithCurve were just degenerate in certain cases.&amp;nbsp; The solid is created by unioning multiple solids using the BooleanOperationUtils class, but in some cases I was unioning solids when it didn't make sense geometrically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I refactored my code to make better solids and no more error. Do you think the development team would still want to take a look?&amp;nbsp; I don't have a good way to provide source code, but I could provide an installer and a sample model.&amp;nbsp; You could easily decompile.&amp;nbsp; Let me know if that'd be helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2020 21:47:12 GMT</pubDate>
    <dc:creator>MattKincaid</dc:creator>
    <dc:date>2020-09-17T21:47:12Z</dc:date>
    <item>
      <title>SolidUtils.IntersectSolidWithCurve cutGCurveWithGeometry Exception</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/solidutils-intersectsolidwithcurve-cutgcurvewithgeometry/m-p/9750992#M31773</link>
      <description>&lt;P&gt;Sometimes when calling IntersectSolidWithCurve we'll see an error like the one below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Autodesk.Revit.Exceptions.InternalException&lt;BR /&gt;HResult=0x80131500&lt;BR /&gt;Message=Error from cutGCurveWithGeometry&lt;BR /&gt;Source=RevitAPI&lt;BR /&gt;StackTrace:&lt;BR /&gt;at Autodesk.Revit.DB.SolidUtils.IntersectSolidWithCurve(Solid solid, Curve curve, SolidCurveIntersectionOptions options)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know why this happens? Any workarounds? &amp;nbsp; I can't find it in the documentation.&amp;nbsp; It seems to happen most commonly when the curve is nearly coincident with the solid's exterior.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 18:25:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/solidutils-intersectsolidwithcurve-cutgcurvewithgeometry/m-p/9750992#M31773</guid>
      <dc:creator>MattKincaid</dc:creator>
      <dc:date>2020-09-16T18:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: SolidUtils.IntersectSolidWithCurve cutGCurveWithGeometry Exception</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/solidutils-intersectsolidwithcurve-cutgcurvewithgeometry/m-p/9751315#M31774</link>
      <description>&lt;P&gt;If you can submit a minimal reproducible case, I'll share that with the development team for analysis:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Afaik, internal exceptions should not leak out into the public API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 20:59:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/solidutils-intersectsolidwithcurve-cutgcurvewithgeometry/m-p/9751315#M31774</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-09-16T20:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: SolidUtils.IntersectSolidWithCurve cutGCurveWithGeometry Exception</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/solidutils-intersectsolidwithcurve-cutgcurvewithgeometry/m-p/9754058#M31775</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt; .&amp;nbsp; I think I actually discovered the problem.&amp;nbsp; The solids I was generating to pass into IntersectSolidWithCurve were just degenerate in certain cases.&amp;nbsp; The solid is created by unioning multiple solids using the BooleanOperationUtils class, but in some cases I was unioning solids when it didn't make sense geometrically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I refactored my code to make better solids and no more error. Do you think the development team would still want to take a look?&amp;nbsp; I don't have a good way to provide source code, but I could provide an installer and a sample model.&amp;nbsp; You could easily decompile.&amp;nbsp; Let me know if that'd be helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 21:47:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/solidutils-intersectsolidwithcurve-cutgcurvewithgeometry/m-p/9754058#M31775</guid>
      <dc:creator>MattKincaid</dc:creator>
      <dc:date>2020-09-17T21:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: SolidUtils.IntersectSolidWithCurve cutGCurveWithGeometry Exception</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/solidutils-intersectsolidwithcurve-cutgcurvewithgeometry/m-p/9754964#M31776</link>
      <description>&lt;P&gt;Dear Matt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Congratulations on solving the issue and thank you for your appreciation and letting us know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think they have more than enough other stuff to keep them well occupied, thank you&amp;nbsp; &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;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 10:12:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/solidutils-intersectsolidwithcurve-cutgcurvewithgeometry/m-p/9754964#M31776</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-09-18T10:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: SolidUtils.IntersectSolidWithCurve cutGCurveWithGeometry Exception</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/solidutils-intersectsolidwithcurve-cutgcurvewithgeometry/m-p/10535818#M31777</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why i cannot find your class (SolidUtils.IntersectSolidWithCurve()) in Revit API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 01:17:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/solidutils-intersectsolidwithcurve-cutgcurvewithgeometry/m-p/10535818#M31777</guid>
      <dc:creator>DanielNgai</dc:creator>
      <dc:date>2021-08-11T01:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: SolidUtils.IntersectSolidWithCurve cutGCurveWithGeometry Exception</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/solidutils-intersectsolidwithcurve-cutgcurvewithgeometry/m-p/10537794#M31778</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11048465"&gt;@DanielNgai&lt;/a&gt;&amp;nbsp;I don't believe the SolidUtils.IntersectSolidWithCurve() method is in the public API.&amp;nbsp;If memory serves, this InternalException was generated by calling the public API method, Solid.IntersectWithCurve() , and passing a solid with degenerate geometry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My guess is the public API method calls an internal method, which then generated the exception.&amp;nbsp; But that's only a guess.&amp;nbsp; One way to work around the issue is to add a Try Catch, and simply catch the InternalException when it occurs (seems to be rare).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 16:21:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/solidutils-intersectsolidwithcurve-cutgcurvewithgeometry/m-p/10537794#M31778</guid>
      <dc:creator>MattKincaid</dc:creator>
      <dc:date>2021-08-11T16:21:52Z</dc:date>
    </item>
  </channel>
</rss>

