<?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: Create Direct Shape from Room in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6715477#M61824</link>
    <description>&lt;P&gt;I havent read through all your material, so Im not sure about if your specific case needs something special, but it can extract solid geometry and I havent seen any drawbacks. &lt;BR /&gt;The Room type directly inherits SpatialElement so yes it sure works.&lt;/P&gt;
&lt;P&gt;Here is a sample from the documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;// Calculate a room's geometry and find its boundary faces
SpatialElementGeometryCalculator calculator = new SpatialElementGeometryCalculator(doc);
SpatialElementGeometryResults results = calculator.CalculateSpatialElementGeometry(room); // compute the room geometry 
Solid roomSolid = results.GetGeometry(); // get the solid representing the room's geometry
foreach (Face face in roomSolid.Faces)
{
    double faceArea = face.Area;
    IList&amp;lt;SpatialElementBoundarySubface&amp;gt; subfaceList = results.GetBoundaryFaceInfo(face); // get the sub-faces for the face of the room
    foreach (SpatialElementBoundarySubface subface in subfaceList)
    {
        if (subfaceList.Count &amp;gt; 1) // there are multiple sub-faces that define the face
        {
            double subfaceArea = subface.GetSubface().Area; // get the area of each sub-face
            // sub-faces exist in situations such as when a room-bounding wall has been
            // horizontally split and the faces of each split wall combine to create the 
            // entire face of the room
        }
    }
}&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 Nov 2016 12:19:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-11-29T12:19:21Z</dc:date>
    <item>
      <title>Create Direct Shape from Room</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6703123#M61818</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I create Direct Shape from rooms with holes ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I read many discussion and post but&amp;nbsp;I wasn't able to solve the problem !&amp;nbsp;&lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://forums.autodesk.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More info and source in this issue :&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Tamu/Revit3Drooms/issues/1" target="_self"&gt;https://github.com/Tamu/Revit3Drooms/issues/1&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source code :&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Tamu/Revit3Drooms" target="_self"&gt;https://github.com/Tamu/Revit3Drooms&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last reading :&lt;/P&gt;&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2008/12/2d-polygon-areas-and-outer-loop.html" target="_self"&gt;2d-polygon-areas-and-outer-loop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/create-mass-from-room/td-p/3674458" target="_self"&gt;create-mass-from-room&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for help !&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 17:17:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6703123#M61818</guid>
      <dc:creator>thomashachler</dc:creator>
      <dc:date>2016-11-22T17:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create Direct Shape from Room</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6704565#M61819</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Platform5rd,&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 interesting 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;It is not completely clear to me what exactly you are after.&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;If you want the room with holes, then there will be nothing left.&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 room is a hole.&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;What else is a room except a hole?&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;Do you mean that you would like to recreate the shape of all the walls with their openings?&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;Do you mean that you have a room whose plan view includes holes?&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;Let's assume the latter.&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;In that case, if your walls are all vertical, this is absolutely trivial.&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 can collect the room boundary edges and assemble them into the outer and inner wall loops.&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;This is demonstrated very effectively by the 2D room editor, which retrieves this information, converts it to a simplified 2D view in SVG, and displays the room outline in a web browser:&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="https://github.com/jeremytammik/RoomEditorApp" target="_blank"&gt;https://github.com/jeremytammik/RoomEditorApp&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;Here is a demo recording and lots of other supporting material:&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://thebuildingcoder.typepad.com/blog/2016/10/connecting-desktop-and-cloud-at-rtc-material.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2016/10/connecting-desktop-and-cloud-at-rtc-material.html&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;If you want a 3D direct shape instead of a 2D flat version, you will obviously need to determine the ceiling height and location and take that into account as well.&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;Update:&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;OK, I now went and read your problem description.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Very clear. Thank you for 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;Thank you also for your appreciation!&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;That issue is indeed addressed by the RoomEditorApp that I already pointed to.&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;When you retrieve the room boundary, the edges may not be contiguous in the right order.&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 need to order them yourself.&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;There are several ways of achieving that:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt; DIY. I love do it yourself. Search for SortCurvesContiguous.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;&lt;SPAN&gt; ExporterIFCUtils.ValidateCurveLoops. Maybe. The Edge.AsCurveFollowingFace method. Maybe. But read on through the following, and note the note in the last of the discussions listed below.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For the former, here is some reading material:&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;2D Polygon Areas and Outer Loop -- &lt;A href="http://thebuildingcoder.typepad.com/blog/2008/12/2d-polygon-areas-and-outer-loop.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2008/12/2d-polygon-areas-and-outer-loop.html&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;Curve Following Face and Bounding Box Implementation -- &lt;A href="http://thebuildingcoder.typepad.com/blog/2013/03/sort-and-orient-curves-to-form-a-contiguous-loop.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/03/sort-and-orient-curves-to-form-a-contiguous-loop.html&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;Retrieving Plan View Room Boundary Polygon Loops -- &lt;A href="http://thebuildingcoder.typepad.com/blog/2013/03/revit-2014-api-and-room-plan-view-boundary-polygon-loops.html#3" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/03/revit-2014-api-and-room-plan-view-boundary-polygon-loops.html#3&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;Extrusion Analyser and Plan View Boundaries -- &lt;A href="http://thebuildingcoder.typepad.com/blog/2013/04/extrusion-analyser-and-plan-view-boundaries.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/04/extrusion-analyser-and-plan-view-boundaries.html&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;Room and Furniture Loops Using Symbols -- &lt;A href="http://thebuildingcoder.typepad.com/blog/2013/04/room-and-furniture-loops-using-symbols.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/04/room-and-furniture-loops-using-symbols.html&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;&lt;A href="https://github.com/jeremytammik/RoomEditorApp/blob/master/RoomEditorApp/ContiguousCurveSorter.cs" target="_blank"&gt;https://github.com/jeremytammik/RoomEditorApp/blob/master/RoomEditorApp/ContiguousCurveSorter.cs&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;Sorting Face Loop Edges -- &lt;A href="http://thebuildingcoder.typepad.com/blog/2015/01/autodesk-internship-in-california-and-sorting-edges.html#3" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2015/01/autodesk-internship-in-california-and-sorting-edges.html#3&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 have explored and written lots more on this topic, as you can see if you follow the various links in the discussions listed above.&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 am confident that this will give you all you need.&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 see that what you are after is basically the floor slabs under the rooms.&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 assume that you are not interested in querying the slabs for their geometry?&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 want to create these shapes form the room boundaries?&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;Well, I think you have all you need now for 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;Good luck and have fun!&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>Wed, 23 Nov 2016 08:34:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6704565#M61819</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-11-23T08:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create Direct Shape from Room</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6704793#M61820</link>
      <description>&lt;P&gt;Thanks Jeremy !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Do you mean that you have a room whose plan view includes holes?"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes,&amp;nbsp;I would like to create the volume of the&amp;nbsp;room. If the room has holes (Because walls),&amp;nbsp;I would also like to subtract the volume of the&amp;nbsp;hole.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In short, I feel ... that you translated perfectly my strange English !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;"You want to create these shapes form the room boundaries?"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, exactly. For the&amp;nbsp;elevation, I need only a fixed height (very simple).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I go back to work !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 10:33:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6704793#M61820</guid>
      <dc:creator>thomashachler</dc:creator>
      <dc:date>2016-11-23T10:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create Direct Shape from Room</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6715208#M61821</link>
      <description>&lt;P&gt;Here is the solution :&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was necessary to add in the Boundary loop : curveLoopList.Add(curveLoop);&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;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; foreach (IList&amp;lt;BoundarySegment&amp;gt; b in boundaries) // 2012
                            {
                                List&amp;lt;Curve&amp;gt; profile = new List&amp;lt;Curve&amp;gt;();
                                ++iBoundary;
                                iSegment = 0;

                                foreach (BoundarySegment s in b)
                                {
                                    ++iSegment;
                                    Curve curve = s.GetCurve(); // 2016

                                    profile.Add(curve); //add shape for instant object

                                }


                                try
                                {
                                    &lt;FONT color="#0000FF"&gt;CurveLoop curveLoop = CurveLoop.Create(profile);
                                    curveLoopList.Add(curveLoop);&lt;/FONT&gt;
                                }
                                catch (Exception ex)
                                {
                                    Debug.WriteLine(ex.Message);
                                }

                            }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Full code/demo&amp;nbsp;: &lt;A href="https://github.com/Tamu/Revit3Drooms" target="_self"&gt;https://github.com/Tamu/Revit3Drooms&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 10:06:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6715208#M61821</guid>
      <dc:creator>thomashachler</dc:creator>
      <dc:date>2016-11-29T10:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create Direct Shape from Room</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6715279#M61822</link>
      <description>&lt;P&gt;Maybe Im missing something here, but why cant you use the SpatialElementGeometryCalculator?&lt;BR /&gt;That gives you the solid you require for the DirectShape immedietly, I've used this for quite a few implementations. &lt;BR /&gt;Does this not take holes into account?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 10:35:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6715279#M61822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-29T10:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create Direct Shape from Room</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6715420#M61823</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Erik,&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&amp;nbsp;SpatialElementGeometryCalculator works for Rooms ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For a general case this works well but I did not succeed for rooms.&amp;nbsp;Have you already tried ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thomas&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 11:57:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6715420#M61823</guid>
      <dc:creator>thomashachler</dc:creator>
      <dc:date>2016-11-29T11:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create Direct Shape from Room</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6715477#M61824</link>
      <description>&lt;P&gt;I havent read through all your material, so Im not sure about if your specific case needs something special, but it can extract solid geometry and I havent seen any drawbacks. &lt;BR /&gt;The Room type directly inherits SpatialElement so yes it sure works.&lt;/P&gt;
&lt;P&gt;Here is a sample from the documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;// Calculate a room's geometry and find its boundary faces
SpatialElementGeometryCalculator calculator = new SpatialElementGeometryCalculator(doc);
SpatialElementGeometryResults results = calculator.CalculateSpatialElementGeometry(room); // compute the room geometry 
Solid roomSolid = results.GetGeometry(); // get the solid representing the room's geometry
foreach (Face face in roomSolid.Faces)
{
    double faceArea = face.Area;
    IList&amp;lt;SpatialElementBoundarySubface&amp;gt; subfaceList = results.GetBoundaryFaceInfo(face); // get the sub-faces for the face of the room
    foreach (SpatialElementBoundarySubface subface in subfaceList)
    {
        if (subfaceList.Count &amp;gt; 1) // there are multiple sub-faces that define the face
        {
            double subfaceArea = subface.GetSubface().Area; // get the area of each sub-face
            // sub-faces exist in situations such as when a room-bounding wall has been
            // horizontally split and the faces of each split wall combine to create the 
            // entire face of the room
        }
    }
}&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Nov 2016 12:19:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6715477#M61824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-29T12:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create Direct Shape from Room</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6715516#M61825</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much ! That seems really good !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only special thing : I must have a cut to 1 ft from the floor&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 12:34:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6715516#M61825</guid>
      <dc:creator>thomashachler</dc:creator>
      <dc:date>2016-11-29T12:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create Direct Shape from Room</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6715548#M61826</link>
      <description>&lt;P&gt;The BooleanOperationsUtils class gives you some options where I think the CutWithHalfSpace seems like the most useful one.&lt;BR /&gt;However, I mean, if your code works, then go for it. I was just hinting at a more easy solution for future use. &lt;BR /&gt;&lt;BR /&gt;And I also want to see if Jeremy (or another Autodesk employee) has anything to say about wether SpatialGeometryElementCalculator has any limitations...&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 12:42:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6715548#M61826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-29T12:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create Direct Shape from Room</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6715559#M61827</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for your good&amp;nbsp;&lt;SPAN&gt;solution&amp;nbsp;&lt;/SPAN&gt;!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 12:47:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6715559#M61827</guid>
      <dc:creator>thomashachler</dc:creator>
      <dc:date>2016-11-29T12:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create Direct Shape from Room</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6715569#M61828</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Thomas,&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 fleshing out and sharing the initial solution based on the room boundary curves in&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Tamu/Revit3Drooms" target="_blank"&gt;https://github.com/Tamu/Revit3Drooms&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dear Erik,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you very much for jumping in and providing a much more efficient solution based on the SpatialElementGeometryCalculator and CutWithHalfSpace.&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;Thomas, can you summarise in a few words why you prefer the latter?&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 am sorry I pointed you in the wrong direction!&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 would like to keep track of this comparison for future reference.&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;Will you update your Revit3Drooms sample to use the SpatialElementGeometryCalculator instead?&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;Or publish a new solution entirely?&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;Or maintain two branches to highlight the differences?&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;Erik, I am not aware of any SpatialGeometryElementCalculator limitations.&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;All I know about it is summarised in the SpatialElementGeometryCalculator GitHub repo and the blog posts that it points to:&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="https://github.com/jeremytammik/SpatialElementGeometryCalculator" target="_blank"&gt;https://github.com/jeremytammik/SpatialElementGeometryCalculator&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;As far as I can tell so far, this thread is worthwhile preserving and adding to that list...&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 both!&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;Cheers,&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, 29 Nov 2016 12:57:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6715569#M61828</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-11-29T12:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create Direct Shape from Room</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6716387#M61829</link>
      <description>&lt;P&gt;Thanks Jeremy for your help ! I learn a lot with this challenge !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try to&lt;SPAN&gt;&amp;nbsp;create two branches to highlight the differences.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thomas&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 17:38:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-direct-shape-from-room/m-p/6716387#M61829</guid>
      <dc:creator>thomashachler</dc:creator>
      <dc:date>2016-11-29T17:38:18Z</dc:date>
    </item>
  </channel>
</rss>

