<?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: locationpoint.rotation not correct in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/locationpoint-rotation-not-correct/m-p/5897192#M69432</link>
    <description>&lt;P&gt;I have seen that post before and assumed that it didn't necessarily pertain to what I was doing because the objects it shows are 2D and the objects I am trying to get the rotation of are 3D. I decided to give it a whirl and I am now getting closer. So thank you for that. I can at least get an angle anywhere between 0° and 360° but they are not right. I would expect that 0° would be when the symbol was pointing east then the angles would go in a counter clockwise direction. It is not. It is 0° when the symbol is pointing South and the angles go in a clockwise direction, so 90° is when the symbol point west. So it is mirrored and off by 90°. I can deal with the being off by 90° but the mirrored part is a little tricky. It is going to take a little bit of fancy math I think. Can you explain to me why the rotation that is giving by the locationpoint is wrong? It helps me to know why something happens to find a solution. Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2015 21:51:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-06T21:51:38Z</dc:date>
    <item>
      <title>locationpoint.rotation not correct</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/locationpoint-rotation-not-correct/m-p/5894595#M69430</link>
      <description>&lt;P&gt;I am trying to determine the rotation of face based element. I can get the rotation but it doesn't make sense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the north side of a horizontal wall it reports an angle of 180°.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/198771i4F871F11C3EACA4F/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="North Horizontal Wall.PNG" title="North Horizontal Wall.PNG" /&gt;&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the south side of the wall it reports an angle of 90°.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/198770i5F04C7FAB6C67FFB/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="South Horizontal Wall.PNG" title="South Horizontal Wall.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then on a vertical wall whether it is on the East or West side it reports 120°.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/198772i0A0A2884C4E36F28/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="East Vertical Wall.PNG" title="East Vertical Wall.PNG" /&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/198773iB1E60083A8C87724/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="West Vertical Wall.PNG" title="West Vertical Wall.PNG" /&gt;&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;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;It all seems very strange. I would think at some point it would equal 0° but it doesn't. I've searched around and can't seem to find any solid answer on how Revit is coming up with the angles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone give me some explaination? Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 16:58:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/locationpoint-rotation-not-correct/m-p/5894595#M69430</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-05T16:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: locationpoint.rotation not correct</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/locationpoint-rotation-not-correct/m-p/5894890#M69431</link>
      <description>Check the GetRotationAngleOfInstance() method at this blog post: &lt;A href="http://thebuildingcoder.typepad.com/blog/2013/06/correct-detail-component-rotation-in-elevation-view.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/06/correct-detail-component-rotation-in-elevation-view.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope it helps</description>
      <pubDate>Thu, 05 Nov 2015 19:07:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/locationpoint-rotation-not-correct/m-p/5894890#M69431</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2015-11-05T19:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: locationpoint.rotation not correct</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/locationpoint-rotation-not-correct/m-p/5897192#M69432</link>
      <description>&lt;P&gt;I have seen that post before and assumed that it didn't necessarily pertain to what I was doing because the objects it shows are 2D and the objects I am trying to get the rotation of are 3D. I decided to give it a whirl and I am now getting closer. So thank you for that. I can at least get an angle anywhere between 0° and 360° but they are not right. I would expect that 0° would be when the symbol was pointing east then the angles would go in a counter clockwise direction. It is not. It is 0° when the symbol is pointing South and the angles go in a clockwise direction, so 90° is when the symbol point west. So it is mirrored and off by 90°. I can deal with the being off by 90° but the mirrored part is a little tricky. It is going to take a little bit of fancy math I think. Can you explain to me why the rotation that is giving by the locationpoint is wrong? It helps me to know why something happens to find a solution. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 21:51:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/locationpoint-rotation-not-correct/m-p/5897192#M69432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-06T21:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: locationpoint.rotation not correct</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/locationpoint-rotation-not-correct/m-p/5898952#M69433</link>
      <description>&lt;P&gt;we're indeed suggesting developers to use GetTransform instead LocationPoint, it's more consistent.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2015 11:18:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/locationpoint-rotation-not-correct/m-p/5898952#M69433</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2015-11-09T11:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: locationpoint.rotation not correct</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/locationpoint-rotation-not-correct/m-p/5904294#M69434</link>
      <description>The mirrored angles are probably related to the inconsistencies of the PlanarFace.Normal property which sometimes reports the opposite of the actual face normal. If the angle is being calculated in the background using the buggy Normal then you would of course get whacky inverse angles. Out of interest, if you compare the vectors returned by both PlanarFace. Normal and Face.ComputeNormal (UV.Zero) for the face that is giving the invrted angles are they the same or opposite?</description>
      <pubDate>Thu, 12 Nov 2015 08:14:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/locationpoint-rotation-not-correct/m-p/5904294#M69434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-12T08:14:27Z</dc:date>
    </item>
  </channel>
</rss>

