<?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: Retrieve solids from IFC in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/retrieve-solids-from-ifc/m-p/8378801#M46690</link>
    <description>&lt;P&gt;Well, it turned out the approach I posted was correct afterall. I was lookat at the wrong file and that was why I kept getting "empty" solids. So, case closed.&lt;/P&gt;</description>
    <pubDate>Sun, 04 Nov 2018 13:34:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-11-04T13:34:13Z</dc:date>
    <item>
      <title>Retrieve solids from IFC</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/retrieve-solids-from-ifc/m-p/8365137#M46685</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get the geometryobjects from an linked IFC file in Revit 2019. With a Revit element you can use the .get_Geometry(options); to loop through the Geometryobjects in an element, but when I try this approach with an IFC, it doesn't result in any solids.&lt;/P&gt;&lt;P&gt;In my case I have an IFC stair (category stair) and I want to determine in what room it starts and to what room on the next level it leads.&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, 29 Oct 2018 09:12:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/retrieve-solids-from-ifc/m-p/8365137#M46685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-29T09:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve solids from IFC</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/retrieve-solids-from-ifc/m-p/8365382#M46686</link>
      <description>&lt;P&gt;Nevermind,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A little recursive function found solids at a very deep level &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 11:01:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/retrieve-solids-from-ifc/m-p/8365382#M46686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-29T11:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve solids from IFC</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/retrieve-solids-from-ifc/m-p/8365396#M46687</link>
      <description>&lt;P&gt;Dear Remy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your query and solution.&amp;nbsp;Congratulations on sorting it out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it was tricky enough for you to post the question, may it also be worth while to share the solution showing how you implement this very deep recursion?&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 11:10:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/retrieve-solids-from-ifc/m-p/8365396#M46687</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-10-29T11:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve solids from IFC</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/retrieve-solids-from-ifc/m-p/8365436#M46688</link>
      <description>&lt;P&gt;Ofcourse:&lt;/P&gt;&lt;P&gt;This is the first function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;private IEnumerable&amp;lt;XYZ&amp;gt; Sketchlines(Element stair)&lt;BR /&gt;{&lt;BR /&gt;List&amp;lt;XYZ&amp;gt; sketchlines = new List&amp;lt;XYZ&amp;gt;();&lt;BR /&gt;Options opt = new Options();&lt;BR /&gt;GeometryElement geoelem = stair.get_Geometry(opt);&lt;/P&gt;&lt;P&gt;foreach (GeometryObject go in geoelem)&lt;BR /&gt;{&lt;BR /&gt;GeometryInstance gi = go as GeometryInstance;&lt;BR /&gt;sketchlines.AddRange(GetSolid(gi));&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return sketchlines.OrderBy(x =&amp;gt; x.Z).ToList();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// call recursive&lt;/P&gt;&lt;P&gt;private List&amp;lt;XYZ&amp;gt; GetSolid(GeometryInstance gi)&lt;BR /&gt;{&lt;BR /&gt;List&amp;lt;XYZ&amp;gt; sketchlines = new List&amp;lt;XYZ&amp;gt;();&lt;BR /&gt;foreach (GeometryObject geob in gi.SymbolGeometry)&lt;BR /&gt;{&lt;BR /&gt;Solid sol = geob as Solid; //I know I need solid, so I am not testing for Faces&lt;BR /&gt;if (sol != null)&lt;BR /&gt;{&lt;BR /&gt;foreach (Edge edg in sol.Edges)&lt;BR /&gt;{&lt;BR /&gt;Curve cur = edg.AsCurve();&lt;BR /&gt;sketchlines.Add(cur.GetEndPoint(0));&lt;BR /&gt;sketchlines.Add(cur.GetEndPoint(1));&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;GeometryInstance gin = geob as GeometryInstance;&lt;BR /&gt;GetSolid(gin);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;return sketchlines.OrderBy(x =&amp;gt; x.Z).ToList();&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 11:32:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/retrieve-solids-from-ifc/m-p/8365436#M46688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-29T11:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve solids from IFC</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/retrieve-solids-from-ifc/m-p/8365629#M46689</link>
      <description>&lt;P&gt;Sorry, this is not the solution &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; I was looking at the wrong linked file which actually had a stair. The method described as above does not return sketchlines of IFC objects, since the solid does not have edges or faces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, still looking for a method to get this information. Anyone?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 13:04:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/retrieve-solids-from-ifc/m-p/8365629#M46689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-29T13:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve solids from IFC</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/retrieve-solids-from-ifc/m-p/8378801#M46690</link>
      <description>&lt;P&gt;Well, it turned out the approach I posted was correct afterall. I was lookat at the wrong file and that was why I kept getting "empty" solids. So, case closed.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Nov 2018 13:34:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/retrieve-solids-from-ifc/m-p/8378801#M46690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-04T13:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve solids from IFC</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/retrieve-solids-from-ifc/m-p/8378849#M46691</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sounds like good fun...&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Nov 2018 14:13:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/retrieve-solids-from-ifc/m-p/8378849#M46691</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-11-04T14:13:43Z</dc:date>
    </item>
  </channel>
</rss>

