<?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: finding The floor right under specific beam in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/finding-the-floor-right-under-specific-beam/m-p/6215859#M66950</link>
    <description>&lt;P&gt;Heres something that worked for me when i wanted to get the floor of a room:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;BoundingBoxXYZ roomBoundingBox = room.get_BoundingBox(null);
Outline outline = new Outline(roomBoundingBox.Min, roomBoundingBox.Max);
BoundingBoxIntersectsFilter bbfilter = new BoundingBoxIntersectsFilter(outline);
FilteredElementCollector floorCollector = new FilteredElementCollector(document).OfClass(typeof(Floor)).WherePasses(bbfilter);
if (floorCollector.Count() != 1)
{
Debug.Print(string.Format("More or less than one floor found for Room {0}", room.Id));
continue;
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Credits go to Jerremy.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Mar 2016 08:26:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-15T08:26:41Z</dc:date>
    <item>
      <title>finding The floor right under specific beam</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/finding-the-floor-right-under-specific-beam/m-p/6213142#M66947</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to find the floor element which is right bellow a specific beam element, (to find out the height of necessary shorings&amp;nbsp;); and looking for the best way to accomplish this,&lt;/P&gt;&lt;P&gt;Right now i'm considering to list all floors in the model and then find those with elevation lower than The beam, and then check out if that floor extends to the bottom of that beam. (checking if xy of the beam is inside floor face); but it seems complicated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;- it is not accurate to just take elevation into account because the floor may be a &lt;SPAN&gt;mezzanine-&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any better way to do&amp;nbsp;this using revit api 2015;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2016 13:45:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/finding-the-floor-right-under-specific-beam/m-p/6213142#M66947</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-13T13:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: finding The floor right under specific beam</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/finding-the-floor-right-under-specific-beam/m-p/6213255#M66948</link>
      <description>For Now i used curve.GetEndPoint of beam and Face.Project() of floor to accomplish This.</description>
      <pubDate>Sun, 13 Mar 2016 17:27:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/finding-the-floor-right-under-specific-beam/m-p/6213255#M66948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-13T17:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: finding The floor right under specific beam</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/finding-the-floor-right-under-specific-beam/m-p/6214454#M66949</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;since a floor could contain holes (e.g. for stairs), it would be better to project a series of points following the curve (instead of just using one end point).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2016 14:46:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/finding-the-floor-right-under-specific-beam/m-p/6214454#M66949</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2016-03-14T14:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: finding The floor right under specific beam</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/finding-the-floor-right-under-specific-beam/m-p/6215859#M66950</link>
      <description>&lt;P&gt;Heres something that worked for me when i wanted to get the floor of a room:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;BoundingBoxXYZ roomBoundingBox = room.get_BoundingBox(null);
Outline outline = new Outline(roomBoundingBox.Min, roomBoundingBox.Max);
BoundingBoxIntersectsFilter bbfilter = new BoundingBoxIntersectsFilter(outline);
FilteredElementCollector floorCollector = new FilteredElementCollector(document).OfClass(typeof(Floor)).WherePasses(bbfilter);
if (floorCollector.Count() != 1)
{
Debug.Print(string.Format("More or less than one floor found for Room {0}", room.Id));
continue;
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Credits go to Jerremy.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 08:26:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/finding-the-floor-right-under-specific-beam/m-p/6215859#M66950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-15T08:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: finding The floor right under specific beam</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/finding-the-floor-right-under-specific-beam/m-p/6215962#M66951</link>
      <description>&lt;P&gt;Since The Beam doesn't intersects with its bottom floor, i need to first project it to the floor, and then evaluate if it intersects with floors or &amp;nbsp;not. here Project() command works better.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But thank you for introducing the &amp;nbsp;idea of boundingbox ,outlines (with contain and intersect property) and intersectfilters , they&amp;nbsp;would be of great use to&amp;nbsp;me for other purposes.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 09:49:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/finding-the-floor-right-under-specific-beam/m-p/6215962#M66951</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-15T09:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: finding The floor right under specific beam</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/finding-the-floor-right-under-specific-beam/m-p/6215993#M66952</link>
      <description>Hi, Thank you for your idea, that's right and necessary for accurate results.&lt;BR /&gt;but here i need to choose a single floor and the one with biggest distance from the beam, so for big holes considering a single point is ok.&lt;BR /&gt;but since i used middle point between two end points of the beam, this would be a problem if a small (and negligible) hole exists just in the bottom of the midpoint of the beam. i hope that wouldn't happen in practice !&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Mar 2016 10:04:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/finding-the-floor-right-under-specific-beam/m-p/6215993#M66952</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-15T10:04:32Z</dc:date>
    </item>
  </channel>
</rss>

