<?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 Find left / right beam for a column in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/find-left-right-beam-for-a-column/m-p/6218681#M66891</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want for a column to find the left / right &amp;nbsp;attached beam. (Left attached beam means the beam that enters perpendicular in the face of the column that has the normal on -X, and the right attached beam&amp;nbsp;&lt;SPAN&gt;means the beam that enters perpendicular in the face of the column that has the normal on +X. Now, the problem is that the column can be rotated at any angle, as in column.png, and, in that case, searching beams that are perpendicular on X axis would not be correct. My question is how could I identify the left / right beam in the case of rotated column, if any of them&amp;nbsp;exists?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;P.S: In the case presented in Column.png, none of the two columns should have left / right beam. A correct left / right beam for the rotated column is indicated by the green lines.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Mar 2016 15:08:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-16T15:08:49Z</dc:date>
    <item>
      <title>Find left / right beam for a column</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-left-right-beam-for-a-column/m-p/6218681#M66891</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want for a column to find the left / right &amp;nbsp;attached beam. (Left attached beam means the beam that enters perpendicular in the face of the column that has the normal on -X, and the right attached beam&amp;nbsp;&lt;SPAN&gt;means the beam that enters perpendicular in the face of the column that has the normal on +X. Now, the problem is that the column can be rotated at any angle, as in column.png, and, in that case, searching beams that are perpendicular on X axis would not be correct. My question is how could I identify the left / right beam in the case of rotated column, if any of them&amp;nbsp;exists?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;P.S: In the case presented in Column.png, none of the two columns should have left / right beam. A correct left / right beam for the rotated column is indicated by the green lines.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 15:08:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-left-right-beam-for-a-column/m-p/6218681#M66891</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-16T15:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Find left / right beam for a column</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-left-right-beam-for-a-column/m-p/6218988#M66892</link>
      <description>&lt;P&gt;Dear CalinSerban,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of checking for complete perpendicularity, simply compute the angle between the face and the X axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First select all vertical faces of the column and ensure that there are indeed four of them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not, you will have to add more complete and complicated checks to eliminate the ones you are not interested in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance, you might not be interested in very small faces, or only in the four largest ones, or something.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For each of&amp;nbsp;those four faces, check whether the absolute value of the angle&amp;nbsp;between the face normal and the X axis&amp;nbsp;is below (or above) a certain threshold.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on your threshold, you will require the faces to be more or less aligned with the X axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course, if your column is rotated 45 degrees&amp;nbsp;from the X axis, you have two right and two left faces.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To fix this, you may need to add more selection criteria.&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>Wed, 16 Mar 2016 17:05:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-left-right-beam-for-a-column/m-p/6218988#M66892</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-03-16T17:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Find left / right beam for a column</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-left-right-beam-for-a-column/m-p/6220715#M66893</link>
      <description>&lt;P&gt;Thank you, Jeremy!&lt;/P&gt;&lt;P&gt;Your answer helped me to get the desired result. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 13:32:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-left-right-beam-for-a-column/m-p/6220715#M66893</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-17T13:32:37Z</dc:date>
    </item>
  </channel>
</rss>

