<?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: How to Identify unallocated volume towards rooms and spaces in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-identify-unallocated-volume-towards-rooms-and-spaces/m-p/11833257#M13201</link>
    <description>&lt;P&gt;Rooms and spaces have a &lt;U&gt;ClosedShell&lt;/U&gt; property:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.revitapidocs.com/2023/1a510aef-63f6-4d32-c0ff-a8071f5e23b8.htm" target="_blank"&gt;https://www.revitapidocs.com/2023/1a510aef-63f6-4d32-c0ff-a8071f5e23b8.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That would be one way to get the enclosed spaces that have been properly defined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to determine the entire enclosed building volume is another topic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some suggestions to determine&amp;nbsp;&lt;SPAN&gt;Gross volume of a building:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.revitcity.com/forums.php?action=viewthread&amp;amp;thread_id=11551" target="_blank"&gt;https://www.revitcity.com/forums.php?action=viewthread&amp;amp;thread_id=11551&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Mar 2023 08:27:10 GMT</pubDate>
    <dc:creator>jeremy_tammik</dc:creator>
    <dc:date>2023-03-20T08:27:10Z</dc:date>
    <item>
      <title>How to Identify unallocated volume towards rooms and spaces</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-identify-unallocated-volume-towards-rooms-and-spaces/m-p/11833137#M13200</link>
      <description>&lt;P&gt;Hi, I am looking for a way to "scan" a model in order to retrieve the amount of volume (inclosed by walls)&lt;BR /&gt;which was not classified as room nor as space.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume this may be a multi-step solution where I need to somehow get and store in memory each&lt;BR /&gt;"volume instance"&amp;nbsp; in a List&amp;lt;T&amp;gt;&amp;nbsp; which I will itterate over to check if the volume has a room or a space in it&lt;BR /&gt;and subtract the room/space&amp;nbsp;volume from the volume instance.&lt;BR /&gt;&lt;BR /&gt;The problem is that I can't figure out how to get the "volume instances" I mentioned in the first place....&lt;BR /&gt;if there is a better&amp;nbsp;idea/approach to solve this I will gladly try it as well, thanks!&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;</description>
      <pubDate>Mon, 20 Mar 2023 07:29:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-identify-unallocated-volume-towards-rooms-and-spaces/m-p/11833137#M13200</guid>
      <dc:creator>TomB.ADV</dc:creator>
      <dc:date>2023-03-20T07:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify unallocated volume towards rooms and spaces</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-identify-unallocated-volume-towards-rooms-and-spaces/m-p/11833257#M13201</link>
      <description>&lt;P&gt;Rooms and spaces have a &lt;U&gt;ClosedShell&lt;/U&gt; property:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.revitapidocs.com/2023/1a510aef-63f6-4d32-c0ff-a8071f5e23b8.htm" target="_blank"&gt;https://www.revitapidocs.com/2023/1a510aef-63f6-4d32-c0ff-a8071f5e23b8.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That would be one way to get the enclosed spaces that have been properly defined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to determine the entire enclosed building volume is another topic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some suggestions to determine&amp;nbsp;&lt;SPAN&gt;Gross volume of a building:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.revitcity.com/forums.php?action=viewthread&amp;amp;thread_id=11551" target="_blank"&gt;https://www.revitcity.com/forums.php?action=viewthread&amp;amp;thread_id=11551&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 08:27:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-identify-unallocated-volume-towards-rooms-and-spaces/m-p/11833257#M13201</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-03-20T08:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify unallocated volume towards rooms and spaces</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-identify-unallocated-volume-towards-rooms-and-spaces/m-p/11833302#M13202</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I did notice that property while reviewing the API docs. The real problem is to get the amount of enclosed partitions in the building and each partition volume.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I was hoping there is some reliable method to do this since the suggestions in the RevitCity forum are extremely outdated (2008).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Is there a way to programmatically identify and quantify enclosed spaces and get them as an Element or as a BoundingBox or an Outline or any other Revit API Class that will allow me to accurately do the task I described without using funky math which probably won't work in a non-typical project environment?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 08:52:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-identify-unallocated-volume-towards-rooms-and-spaces/m-p/11833302#M13202</guid>
      <dc:creator>TomB.ADV</dc:creator>
      <dc:date>2023-03-20T08:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify unallocated volume towards rooms and spaces</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-identify-unallocated-volume-towards-rooms-and-spaces/m-p/11853388#M13203</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp; after some more research I came accross the below thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/finding-a-room-by-wall/m-p/10190251#M54650" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/revit-api-forum/finding-a-room-by-wall/m-p/10190251#M54650&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;def get_rooms(wall):
    document = wall.Document
    wall_bb = wall.get_BoundingBox(None)
    outline = Outline(wall_bb.Min, wall_bb.Max)
    bbfilter = BoundingBoxIntersectsFilter(outline)
    rooms = FilteredElementCollector(document).OfCategory(BuiltInCategory.OST_Rooms).\
        WherePasses(bbfilter).ToElements()
    return rooms&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above code by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7050200"&gt;@SergeyShvydko&lt;/a&gt;&amp;nbsp;suggests that there is an option to get all the rooms which are associated with a specific wall. This gave me an idea to create a Dictionary&amp;lt;Room, List&amp;lt;Wall&amp;gt;&amp;gt; object to use for my calculations.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;First, I will use LINQ to get all the rooms located on the desired floor. Then, I will get a .Distinct() list of walls associated with all the rooms. Afterward, I will calculate the area of all the walls associated with the rooms.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;At this point, I will have the Floor Area, All Rooms Area, All Walls Area. Rooms Area + Walls Area should be&lt;BR /&gt;approximately equal to the Floor Area. If there is more than x% difference, there is probably a room missing&lt;BR /&gt;on that level which wasn't placed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts/suggestions to make this work better or to be more reliable method in general ?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 12:59:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-identify-unallocated-volume-towards-rooms-and-spaces/m-p/11853388#M13203</guid>
      <dc:creator>TomB.ADV</dc:creator>
      <dc:date>2023-03-28T12:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify unallocated volume towards rooms and spaces</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-identify-unallocated-volume-towards-rooms-and-spaces/m-p/11855281#M13204</link>
      <description>&lt;P&gt;Sounds like an effective and robust approach to me. Brilliant! Looking forward to hearing how it works out in real life, and seeing the final implementation. Good luck and have fun implementing and testing!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 06:09:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-identify-unallocated-volume-towards-rooms-and-spaces/m-p/11855281#M13204</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-03-29T06:09:29Z</dc:date>
    </item>
  </channel>
</rss>

