<?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: A beam (Structural Framing) with no Faces ? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/a-beam-structural-framing-with-no-faces/m-p/6435316#M64288</link>
    <description>&lt;P&gt;is it fully enclosed within another element of the same material with join geometry applied? I've found slabs without faces before and this turned out to be the problem.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jul 2016 05:23:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-07-14T05:23:38Z</dc:date>
    <item>
      <title>A beam (Structural Framing) with no Faces ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/a-beam-structural-framing-with-no-faces/m-p/6433234#M64285</link>
      <description>&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;Working on intersections between structural elements and ducts, I encounter an unexpected problem: A family of beam (homemade I guess) which has no Faces. I compare settings of the family with other homemade beams but found no differences...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My method to extract Faces of elements :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public List&amp;lt;Face&amp;gt; FindElementFace(Element Elem)
        {
            List&amp;lt;Face&amp;gt; normalFaces = new List&amp;lt;Face&amp;gt;();

            Options opt = new Options();
            opt.ComputeReferences = true;
            opt.DetailLevel = ViewDetailLevel.Fine;

            GeometryElement e = Elem.get_Geometry(opt);

            foreach (GeometryObject obj in e)
            {
                Solid solid = obj as Solid;

                if (solid != null &amp;amp;&amp;amp; solid.Faces.Size &amp;gt; 0)
                {


                    foreach (Face face in solid.Faces)
                    {

                        PlanarFace pf = face as PlanarFace;
                        if (pf != null)
                        {
                            normalFaces.Add(pf);
                        }

                    }
                }
            }
            return normalFaces;
        }&lt;/PRE&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1227311" target="_self"&gt;Mustafa.Salaheldin&lt;/A&gt;&amp;nbsp;for the method !&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And my Family is&amp;nbsp;Attached!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think the original project (where i took the family) was on Revit 2015 (automatically update to 2016) and i'm working with Revit 2016.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any hints are welcome!&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 09:23:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/a-beam-structural-framing-with-no-faces/m-p/6433234#M64285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-13T09:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: A beam (Structural Framing) with no Faces ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/a-beam-structural-framing-with-no-faces/m-p/6433458#M64286</link>
      <description>&lt;P&gt;Please try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;        public List&amp;lt;Face&amp;gt; FindElementFace(Element Elem)
        {
            List&amp;lt;Face&amp;gt; normalFaces = new List&amp;lt;Face&amp;gt;();

            Options opt = new Options();
            opt.ComputeReferences = true;
            opt.DetailLevel = ViewDetailLevel.Fine;

            GeometryElement geome = Elem.get_Geometry(opt);

            // Examine all geometry primitives of the column
            foreach (GeometryObject geomo in geome)
            {

                // Skip objects that are not geometry instances
                GeometryInstance gInstance = geomo as GeometryInstance;

                if (gInstance == null)
                {
                    continue;
                }

                // Retrieve geometry of each found geometry instance
                GeometryElement instGeometry = gInstance.GetInstanceGeometry();

                foreach (GeometryObject geobj in instGeometry)
                {
                    Solid solid = geobj as Solid;

                    if (solid != null &amp;amp;&amp;amp; solid.Faces.Size &amp;gt; 0)
                    {
                        foreach (Face face in solid.Faces)
                        {
                            PlanarFace pf = face as PlanarFace;
                            if (pf != null)
                            {
                                normalFaces.Add(pf);
                            }
                        }
                    }
                }
            }

            return normalFaces;
        }
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 11:41:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/a-beam-structural-framing-with-no-faces/m-p/6433458#M64286</guid>
      <dc:creator>Mustafa.Salaheldin</dc:creator>
      <dc:date>2016-07-13T11:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: A beam (Structural Framing) with no Faces ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/a-beam-structural-framing-with-no-faces/m-p/6433559#M64287</link>
      <description>&lt;P&gt;Thank you for the quick reply !&lt;/P&gt;&lt;P&gt;Unfortunatly I found the same amount of faces with your method&amp;nbsp;! The beam still does not have Faces&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 12:39:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/a-beam-structural-framing-with-no-faces/m-p/6433559#M64287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-13T12:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: A beam (Structural Framing) with no Faces ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/a-beam-structural-framing-with-no-faces/m-p/6435316#M64288</link>
      <description>&lt;P&gt;is it fully enclosed within another element of the same material with join geometry applied? I've found slabs without faces before and this turned out to be the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 05:23:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/a-beam-structural-framing-with-no-faces/m-p/6435316#M64288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-14T05:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: A beam (Structural Framing) with no Faces ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/a-beam-structural-framing-with-no-faces/m-p/6444402#M64289</link>
      <description>&lt;P&gt;I'm using a small test project so I have no join geometries, switching element material looks pointless as well. However if I add another of my working beam to the project, it will be Faces less...&amp;nbsp;&lt;BR /&gt;Anyway I think we are closer to the solution! Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 08:30:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/a-beam-structural-framing-with-no-faces/m-p/6444402#M64289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-18T08:30:33Z</dc:date>
    </item>
  </channel>
</rss>

