<?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: Rotation around x axis in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/rotation-around-x-axis/m-p/8665394#M23198</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If the block reference have only been rotated about the X axis, you can computr the rotation about the X axis of the block reference from its BockTransform.CoordinateSystem3d.YAxis.&lt;/P&gt;
&lt;PRE&gt;Vector3d yAxis = br.BlockTransform.CoordinateSystem3d.Yaxis;
double rotationX = Math.Atan2(yAxis.Z, yAxis.Y);&lt;/PRE&gt;
&lt;P&gt;If the block reference have been rotated about more than one axis, the rotations about each axis might be described by the &lt;A href="https://en.wikipedia.org/wiki/Euler_angles" target="_blank" rel="noopener"&gt;Euler angles&lt;/A&gt;. But the rotation about one axis may differ according to the "order the rotations occured".&lt;/P&gt;
&lt;P&gt;You can see &lt;A href="https://forums.autodesk.com/t5/net/calculate-euler-angles-from-blockreference-transform-matrix3d/m-p/6754904" target="_blank" rel="noopener"&gt;this topic&lt;/A&gt; about Euler angles and BlockRefence.BlockTransform.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2019 11:52:12 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2019-03-18T11:52:12Z</dc:date>
    <item>
      <title>Rotation around x axis</title>
      <link>https://forums.autodesk.com/t5/net-forum/rotation-around-x-axis/m-p/8665266#M23197</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is there easy way how to get rotation around X axis?&lt;BR /&gt;My function returns rotation around Z axis (same rotation shows ACAD) but i don't know how to convert to different axis like X or Y&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rotation.png" style="width: 988px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/615008i36E6028DEF28824F/image-size/large?v=v2&amp;amp;px=999" role="button" title="rotation.png" alt="rotation.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 11:00:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/rotation-around-x-axis/m-p/8665266#M23197</guid>
      <dc:creator>BestFriendCZ</dc:creator>
      <dc:date>2019-03-18T11:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rotation around x axis</title>
      <link>https://forums.autodesk.com/t5/net-forum/rotation-around-x-axis/m-p/8665394#M23198</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If the block reference have only been rotated about the X axis, you can computr the rotation about the X axis of the block reference from its BockTransform.CoordinateSystem3d.YAxis.&lt;/P&gt;
&lt;PRE&gt;Vector3d yAxis = br.BlockTransform.CoordinateSystem3d.Yaxis;
double rotationX = Math.Atan2(yAxis.Z, yAxis.Y);&lt;/PRE&gt;
&lt;P&gt;If the block reference have been rotated about more than one axis, the rotations about each axis might be described by the &lt;A href="https://en.wikipedia.org/wiki/Euler_angles" target="_blank" rel="noopener"&gt;Euler angles&lt;/A&gt;. But the rotation about one axis may differ according to the "order the rotations occured".&lt;/P&gt;
&lt;P&gt;You can see &lt;A href="https://forums.autodesk.com/t5/net/calculate-euler-angles-from-blockreference-transform-matrix3d/m-p/6754904" target="_blank" rel="noopener"&gt;this topic&lt;/A&gt; about Euler angles and BlockRefence.BlockTransform.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 11:52:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/rotation-around-x-axis/m-p/8665394#M23198</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2019-03-18T11:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Rotation around x axis</title>
      <link>https://forums.autodesk.com/t5/net-forum/rotation-around-x-axis/m-p/8668048#M23199</link>
      <description>&lt;P&gt;Thank you for your advice Gile&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 10:08:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/rotation-around-x-axis/m-p/8668048#M23199</guid>
      <dc:creator>BestFriendCZ</dc:creator>
      <dc:date>2019-03-19T10:08:32Z</dc:date>
    </item>
  </channel>
</rss>

