<?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 Intersection fails in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/intersection-fails/m-p/10294420#M26127</link>
    <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;I'm using the&amp;nbsp;BooleanOperationsUtils.ExecuteBooleanOperation(solidA, solidB, BooleanOperationsType.Intersect)&lt;BR /&gt;And I'm finding several errors. I've verified that in every case the solid A and Solid B are not null with a face count &amp;gt;0 and the correct volume, But in some cases the intersection result is null even if the solids are intersecting.&lt;BR /&gt;Anyone experiencing this problem?&lt;/P&gt;</description>
    <pubDate>Thu, 06 May 2021 10:14:10 GMT</pubDate>
    <dc:creator>amilcar.ferreira</dc:creator>
    <dc:date>2021-05-06T10:14:10Z</dc:date>
    <item>
      <title>Intersection fails</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/intersection-fails/m-p/10294420#M26127</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;I'm using the&amp;nbsp;BooleanOperationsUtils.ExecuteBooleanOperation(solidA, solidB, BooleanOperationsType.Intersect)&lt;BR /&gt;And I'm finding several errors. I've verified that in every case the solid A and Solid B are not null with a face count &amp;gt;0 and the correct volume, But in some cases the intersection result is null even if the solids are intersecting.&lt;BR /&gt;Anyone experiencing this problem?&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 10:14:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/intersection-fails/m-p/10294420#M26127</guid>
      <dc:creator>amilcar.ferreira</dc:creator>
      <dc:date>2021-05-06T10:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection fails</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/intersection-fails/m-p/10294516#M26128</link>
      <description>&lt;P&gt;Just a bit more info about the issue:&lt;BR /&gt;in this case I'm intersecting a rooms and elements&lt;BR /&gt;&lt;BR /&gt;The rooms solid I got it like this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;var calculator = new SpatialElementGeometryCalculator(doc, new SpatialElementBoundaryOptions() { SpatialElementBoundaryLocation = SpatialElementBoundaryLocation.Center });
Solid roomSolid = calculator.CalculateSpatialElementGeometry(r).GetGeometry();&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;The element is a floor with only one layer:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Options opt = new Options();
opt.IncludeNonVisibleObjects = false;
GeometryElement geo = element.get_Geometry(opt);
solid = geo.OfType&amp;lt;Solid&amp;gt;().Where(s =&amp;gt; s != null &amp;amp;&amp;amp; s.Faces.Size &amp;gt; 0).FirstOrDefault();&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;It is working for the must part of the elements, walls, ceilings etc, but some like the floor in the image are not detecting the intersection&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 10:49:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/intersection-fails/m-p/10294516#M26128</guid>
      <dc:creator>amilcar.ferreira</dc:creator>
      <dc:date>2021-05-06T10:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection fails</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/intersection-fails/m-p/10299814#M26129</link>
      <description>&lt;P&gt;If your intersection creates a sliver then this often will fail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would show the two solids by creating direct shapes to understand if a solid resulting from such Boolean operation would be realistic in terms of edges lengths of a face, distances between parallel faces etc.&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 15:21:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/intersection-fails/m-p/10299814#M26129</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2021-05-08T15:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection fails</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/intersection-fails/m-p/10318523#M26130</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1035859"&gt;@RPTHOMAS108&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you for your feedback, in this case the intersection of both elements is a viable solid.&lt;BR /&gt;&lt;BR /&gt;Other issues I'm founding with solids and intersections are:&lt;BR /&gt;1 - family instances gepmetry, it only gets solids from the geometries that are visible in medium detail level, other geometries with coarse or fine detail level&amp;nbsp; are not being detected.&lt;BR /&gt;2 - for elements inside groups, it allways gets the solid from an element of the same group instance.&lt;BR /&gt;In other words, if I have 2 instances of the same group, when I get the solids from one element inside each instance of this group it will get me the same solid no metter what instance I pick.&lt;BR /&gt;3 -&amp;nbsp; Get spacial elements from rooms in linked files: it doesn't work properly. In a file with 198 I got the solid of each room without problems, but if this file is linked in another revit file, and I try to get the spacial elements for those rooms from the otehr file it only gives me 110 of the 198 rooms.&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 15:52:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/intersection-fails/m-p/10318523#M26130</guid>
      <dc:creator>amilcar.ferreira</dc:creator>
      <dc:date>2021-05-17T15:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection fails</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/intersection-fails/m-p/10319206#M26131</link>
      <description>&lt;P&gt;The shell of the room is going to be the internal space, intersecting this with a floor/ceiling (a boundary object) seems a dubious operation by description. You could graphically indicate here what you are trying to get the intersection of in order to highlight the result should be viable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For 1: You have to use Options class with a view of appropriate detail level or set the level of detail in the Options class.&lt;/P&gt;&lt;P&gt;For 2: I don't fully understand but you should just see groups as containers they have no geometry themselves really. They are not like blocks in AutoCAD (where one version is copied around) i.e. two groups the same have their own elements even though they are the same. Are you looking at instance or symbol geometry for the elements within?&lt;/P&gt;&lt;P&gt;For 3: You probably have to indicate some code for that (room calculation options may play a part). I would investigate which rooms don't return a solid and if there are any similarities for those.&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 21:12:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/intersection-fails/m-p/10319206#M26131</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2021-05-17T21:12:35Z</dc:date>
    </item>
  </channel>
</rss>

