<?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: Get cutting void instances in the floor in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/get-cutting-void-instances-in-the-floor/m-p/7173220#M57548</link>
    <description>&lt;P&gt;Many thanks yet again to Fair59 for his accurate and succinct solution, and to Axel for raising the issue and confirming it!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once again, I think this needs to be preserved and easily found, so I edited and shared on The Building Coder:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2017/06/findinserts-determines-void-instances-cutting-a-floor.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2017/06/findinserts-determines-void-instances-cutting-a-floor.html&lt;/A&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;</description>
    <pubDate>Fri, 23 Jun 2017 09:28:01 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2017-06-23T09:28:01Z</dc:date>
    <item>
      <title>Get cutting void instances in the floor</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-cutting-void-instances-in-the-floor/m-p/7169042#M57543</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a floor on which a familyinstance is inserted on the face of the floor (the instance to host: the floor). I checked in the family the "Cut with Void When Loaded" parameter so that the void created on the floor. I want to retrieve the instance that creates the void in the floor.&lt;/P&gt;&lt;P&gt;I did some research, and found this link: http: //thebuildingcoder.typepad.com/blog/2011/06/boolean-operations-and-instancevoidcututils.html But when I use InstanceVoidCutUtils.GetCuttingVoidInstances(element) returns an empty list.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 20:25:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-cutting-void-instances-in-the-floor/m-p/7169042#M57543</guid>
      <dc:creator>minet.axel</dc:creator>
      <dc:date>2017-06-21T20:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get cutting void instances in the floor</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-cutting-void-instances-in-the-floor/m-p/7169997#M57544</link>
      <description>&lt;P&gt;This discussion should provide hints to all you need:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2015/07/intersect-solid-filter-avf-and-directshape-for-debugging.html#2" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2015/07/intersect-solid-filter-avf-and-directshape-for-debugging.html#2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let us know how it goes and how you end up resolving this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&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;</description>
      <pubDate>Thu, 22 Jun 2017 07:41:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-cutting-void-instances-in-the-floor/m-p/7169997#M57544</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-06-22T07:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get cutting void instances in the floor</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-cutting-void-instances-in-the-floor/m-p/7170073#M57545</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lsdlfs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to deduce the voids in the floor. But when I use ElementIntersectsElementFilter or ElementIntersectsSolidFilter, I do not have the expected result (no elements intersect).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First case : area = 607.558m2 and&amp;nbsp;Volume = 243.023m3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.PNG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/370171iFDF2A9F4C07A55C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Second&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;case : area = 607.558m2 &lt;/SPAN&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Volume = 243.023m3&lt;/SPAN&gt;&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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.PNG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/370170i3F9BBE8E8AE7B6D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.PNG" alt="2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Family parameter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Family" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/370172iCB2D88B116077442/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.PNG" alt="3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;FamilyInstance cutting&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.PNG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/370174i7823C39F3DCF2255/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.PNG" alt="4.PNG" /&gt;&lt;/span&gt;&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;PRE&gt;Solid solid = floor.get_Geometry(new Options())&lt;BR /&gt;.OfType&amp;lt;Solid&amp;gt;()
.Where&amp;lt;Solid&amp;gt;(s =&amp;gt; null != s &amp;amp;&amp;amp; !s.Edges.IsEmpty)
.FirstOrDefault();

FilteredElementCollector intersectingInstances = new FilteredElementCollector(doc)
.OfClass(typeof(FamilyInstance))
.WherePasses(new ElementIntersectsSolidFilter(solid));

int n1 = intersectingInstances.Count&amp;lt;Element&amp;gt;();

intersectingInstances = new FilteredElementCollector(doc)
.OfClass(typeof(FamilyInstance))
.WherePasses(new ElementIntersectsElementFilter(floor));

int n = intersectingInstances.Count&amp;lt;Element&amp;gt;();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here "n" and "n1" are equal to 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 08:23:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-cutting-void-instances-in-the-floor/m-p/7170073#M57545</guid>
      <dc:creator>minet.axel</dc:creator>
      <dc:date>2017-06-22T08:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get cutting void instances in the floor</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-cutting-void-instances-in-the-floor/m-p/7170142#M57546</link>
      <description>&lt;P&gt;try using&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;                List&amp;lt;ElementId&amp;gt; intersectingInstanceIds = floor.FindInserts(false,false,false,true).ToList();
&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Jun 2017 08:43:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-cutting-void-instances-in-the-floor/m-p/7170142#M57546</guid>
      <dc:creator>FAIR59</dc:creator>
      <dc:date>2017-06-22T08:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get cutting void instances in the floor</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-cutting-void-instances-in-the-floor/m-p/7170237#M57547</link>
      <description>&lt;P&gt;I have done some tests and here are my returns.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6 ppt.PNG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/370202i8D4B1EE8C3355790/image-size/large?v=v2&amp;amp;px=999" role="button" title="6 ppt.PNG" alt="6 ppt.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FindInserts returns FI_1 even if its host (Level 3) is not the floor. Its good.I think we can say that the problem is solved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you FAIR59 ;).&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 09:23:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-cutting-void-instances-in-the-floor/m-p/7170237#M57547</guid>
      <dc:creator>minet.axel</dc:creator>
      <dc:date>2017-06-22T09:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get cutting void instances in the floor</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-cutting-void-instances-in-the-floor/m-p/7173220#M57548</link>
      <description>&lt;P&gt;Many thanks yet again to Fair59 for his accurate and succinct solution, and to Axel for raising the issue and confirming it!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once again, I think this needs to be preserved and easily found, so I edited and shared on The Building Coder:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2017/06/findinserts-determines-void-instances-cutting-a-floor.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2017/06/findinserts-determines-void-instances-cutting-a-floor.html&lt;/A&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;</description>
      <pubDate>Fri, 23 Jun 2017 09:28:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-cutting-void-instances-in-the-floor/m-p/7173220#M57548</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-06-23T09:28:01Z</dc:date>
    </item>
  </channel>
</rss>

