<?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: Determine outer surface of Element in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/determine-outer-surface-of-element/m-p/5458376#M74690</link>
    <description>&lt;P&gt;Dear Jasonkhc,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy New Year to you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the interesting query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the element shape is convex, you could quite easily determine what you need by&amp;nbsp;forming the convex hull and then comparing each face with that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the holes in the element are generated by intersections with other elements, then the&amp;nbsp;Element.GetGeneratingElementIds method and&amp;nbsp;GeometryObject.IsElementGeometry property may help differentiating.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other&amp;nbsp;than that, I would say that&amp;nbsp;you simply have a normal non-trivial&amp;nbsp;general geometric problem to solve, and the Revit API cannot help much with that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let us know how it goes.&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;</description>
    <pubDate>Mon, 05 Jan 2015 07:37:38 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2015-01-05T07:37:38Z</dc:date>
    <item>
      <title>Determine outer surface of Element</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/determine-outer-surface-of-element/m-p/5447235#M74689</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to seek for advice on how to get the outer surface of Revit Element (Slab, Beam).&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are many opening and profiling inside the element. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how should I determine which face&amp;nbsp;is exposed externally and which face is not?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very very appreciate if anyone can help me.. being stuck in this thing for a month~&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2014 10:04:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/determine-outer-surface-of-element/m-p/5447235#M74689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-18T10:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Determine outer surface of Element</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/determine-outer-surface-of-element/m-p/5458376#M74690</link>
      <description>&lt;P&gt;Dear Jasonkhc,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy New Year to you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the interesting query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the element shape is convex, you could quite easily determine what you need by&amp;nbsp;forming the convex hull and then comparing each face with that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the holes in the element are generated by intersections with other elements, then the&amp;nbsp;Element.GetGeneratingElementIds method and&amp;nbsp;GeometryObject.IsElementGeometry property may help differentiating.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other&amp;nbsp;than that, I would say that&amp;nbsp;you simply have a normal non-trivial&amp;nbsp;general geometric problem to solve, and the Revit API cannot help much with that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let us know how it goes.&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;</description>
      <pubDate>Mon, 05 Jan 2015 07:37:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/determine-outer-surface-of-element/m-p/5458376#M74690</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2015-01-05T07:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Determine outer surface of Element</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/determine-outer-surface-of-element/m-p/5459553#M74691</link>
      <description>&lt;P&gt;I am able to get outer surface using my own concept but i still cannot determine which surface is on top or bottom .. cuz there is some odd angle and it causes the vector not consistant as 0,0,-1 or 0,0,1.. all XYZ normal now have value.. &amp;gt;&amp;lt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 03:45:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/determine-outer-surface-of-element/m-p/5459553#M74691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-06T03:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Determine outer surface of Element</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/determine-outer-surface-of-element/m-p/5459618#M74692</link>
      <description>&lt;P&gt;Dear Jasonkhc,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are expecting a 'top' and 'bottom' surface with normal vectors close to the positive or negative Z axis, I would say that you are in luck and your problem is completely trivial.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simply determine the angle between the normal vector and the Z axis. If the angle is below a certain (possibly small) threshold, you can consider the surface a top or bottom one.&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;</description>
      <pubDate>Tue, 06 Jan 2015 07:52:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/determine-outer-surface-of-element/m-p/5459618#M74692</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2015-01-06T07:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Determine outer surface of Element</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/determine-outer-surface-of-element/m-p/5459621#M74693</link>
      <description>&lt;P&gt;Hi jasonkhc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;note that PlanarFace.Normal does not &lt;EM&gt;reliable&lt;/EM&gt; give you a vector directing &lt;EM&gt;outwards&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Revit.chm says: "This property is the "surface normal" vector. This is not necessarily the normal vector pointing out of the solid that contains the face, to get that value use ComputeNormal(UV)."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May this be an explanation for your odd vectors ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 07:58:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/determine-outer-surface-of-element/m-p/5459621#M74693</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2015-01-06T07:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Determine outer surface of Element</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/determine-outer-surface-of-element/m-p/5459623#M74694</link>
      <description>&lt;P&gt;how would i use&amp;nbsp;&lt;SPAN&gt;ComputeNormal(UV) as i still need the UV coordinates right?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 08:00:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/determine-outer-surface-of-element/m-p/5459623#M74694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-06T08:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Determine outer surface of Element</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/determine-outer-surface-of-element/m-p/5459636#M74695</link>
      <description>&lt;P&gt;Hi Jasonkhc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;planarFace.ComputeNormal(new UV(0.5,0.5))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Revtalizer&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 08:19:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/determine-outer-surface-of-element/m-p/5459636#M74695</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2015-01-06T08:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Determine outer surface of Element</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/determine-outer-surface-of-element/m-p/5459683#M74696</link>
      <description>&lt;P&gt;Thank you very much, you guys are very helpful ^^&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 09:26:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/determine-outer-surface-of-element/m-p/5459683#M74696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-06T09:26:31Z</dc:date>
    </item>
  </channel>
</rss>

