<?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 get ceiling material in room in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/get-ceiling-material-in-room/m-p/6875603#M60228</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the&amp;nbsp;SpatialElementGeometryCalculator to access the 3D faces within a room. &amp;nbsp;It finds the walls, floor, and the floor above but the ceiling 3D face seems to be completely ignored. &amp;nbsp;Anybody know how to acquire the ceiling(s) in a room? &amp;nbsp;Better yet, is there a way to acquire everything that is in a room using the boundries provided by the&amp;nbsp;&lt;SPAN&gt;SpatialElementGeometryCalculator?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2017 01:30:04 GMT</pubDate>
    <dc:creator>CADdaddy.com</dc:creator>
    <dc:date>2017-02-14T01:30:04Z</dc:date>
    <item>
      <title>get ceiling material in room</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-ceiling-material-in-room/m-p/6875603#M60228</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the&amp;nbsp;SpatialElementGeometryCalculator to access the 3D faces within a room. &amp;nbsp;It finds the walls, floor, and the floor above but the ceiling 3D face seems to be completely ignored. &amp;nbsp;Anybody know how to acquire the ceiling(s) in a room? &amp;nbsp;Better yet, is there a way to acquire everything that is in a room using the boundries provided by the&amp;nbsp;&lt;SPAN&gt;SpatialElementGeometryCalculator?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 01:30:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-ceiling-material-in-room/m-p/6875603#M60228</guid>
      <dc:creator>CADdaddy.com</dc:creator>
      <dc:date>2017-02-14T01:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: get ceiling material in room</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-ceiling-material-in-room/m-p/6876083#M60229</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear James,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your query.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Have you taken a look at the RoofsRooms SDK sample?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It detects whether a room has a roof.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You may be able to adapt it for ceilings also.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alternatively, you should be able to shoot a ray upwards from the floor of the room using a ReferenceIntersector, and the ceiling should be the first element you hit.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://www.revitapidocs.com/2017/36f82b40-1065-2305-e260-18fc618e756f.htm" target="_blank"&gt;http://www.revitapidocs.com/2017/36f82b40-1065-2305-e260-18fc618e756f.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 09:10:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-ceiling-material-in-room/m-p/6876083#M60229</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-02-14T09:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: get ceiling material in room</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-ceiling-material-in-room/m-p/6876092#M60230</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear James,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To address your second question how to "acquire everything that is in a room":&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The ElementIntersectsSolidFilter class should help with that:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://www.revitapidocs.com/2017/19276b94-fa39-64bb-bfb8-c16967c83485.htm" target="_blank"&gt;http://www.revitapidocs.com/2017/19276b94-fa39-64bb-bfb8-c16967c83485.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You could create a solid representing the room shape and retrieve all elements intersecting that solid.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 09:15:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-ceiling-material-in-room/m-p/6876092#M60230</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-02-14T09:15:01Z</dc:date>
    </item>
  </channel>
</rss>

