<?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: Get BlockReference angle value in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/get-blockreference-angle-value/m-p/8888413#M21915</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3815886"&gt;@mcoH3VZV&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On a drawing, I have a bunch of blocks inserted, and when I click on them, under the misc properties, Rotation is either 270.00, 0.00, or 90.00. I need to extract this information.&amp;nbsp; However, when I use BlockReference.Rotation for a block that has 270.00 for the mic property Rotation, I get 4.1 or something. Am I doing something wrong here, does it need to be converted, or read to a specific Data Type?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;BlockReference.Rotation return angle value in Radians. So you have to translate from Radians to Degrees:&lt;/P&gt;
&lt;PRE class="programlisting"&gt;using System;

public static double ConvertRadiansToDegrees(double radians)
{
    double degrees = (180 / Math.PI) * radians;
    return (degrees);
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2019 16:04:56 GMT</pubDate>
    <dc:creator>Alexander.Rivilis</dc:creator>
    <dc:date>2019-07-03T16:04:56Z</dc:date>
    <item>
      <title>Get BlockReference angle value</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-blockreference-angle-value/m-p/8888357#M21914</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On a drawing, I have a bunch of blocks inserted, and when I click on them, under the misc properties, Rotation is either 270.00, 0.00, or 90.00. I need to extract this information.&amp;nbsp; However, when I use BlockReference.Rotation for a block that has 270.00 for the mic property Rotation, I get 4.1 or something. Am I doing something wrong here, does it need to be converted, or read to a specific Data Type?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 15:42:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-blockreference-angle-value/m-p/8888357#M21914</guid>
      <dc:creator>mcoH3VZV</dc:creator>
      <dc:date>2019-07-03T15:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get BlockReference angle value</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-blockreference-angle-value/m-p/8888413#M21915</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3815886"&gt;@mcoH3VZV&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On a drawing, I have a bunch of blocks inserted, and when I click on them, under the misc properties, Rotation is either 270.00, 0.00, or 90.00. I need to extract this information.&amp;nbsp; However, when I use BlockReference.Rotation for a block that has 270.00 for the mic property Rotation, I get 4.1 or something. Am I doing something wrong here, does it need to be converted, or read to a specific Data Type?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;BlockReference.Rotation return angle value in Radians. So you have to translate from Radians to Degrees:&lt;/P&gt;
&lt;PRE class="programlisting"&gt;using System;

public static double ConvertRadiansToDegrees(double radians)
{
    double degrees = (180 / Math.PI) * radians;
    return (degrees);
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 16:04:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-blockreference-angle-value/m-p/8888413#M21915</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2019-07-03T16:04:56Z</dc:date>
    </item>
  </channel>
</rss>

