<?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: Angle, direction, orientation ...? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/angle-direction-orientation/m-p/9870439#M30827</link>
    <description>&lt;P&gt;Yes with Revit when I click on point 1 towards point 2 it returns 0 degrees&lt;BR /&gt;but if I click on point 3 towards point 4 it also returns 0 degrees&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Angle.PNG" style="width: 516px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/844433i05897B57A2968192/image-size/large?v=v2&amp;amp;px=999" role="button" title="Angle.PNG" alt="Angle.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is what I use to return the angles:&lt;BR /&gt;Dim Vector As XYZ = EndPoint.Subtract (StartPoint) .Normalize&lt;BR /&gt;Dim Angle as double = Vector.AngleTo (XYZ.BasisX)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know how to make a subroutine so that it returns the angle defined by the second point&lt;/P&gt;</description>
    <pubDate>Sun, 15 Nov 2020 10:47:54 GMT</pubDate>
    <dc:creator>ahmed.errazak</dc:creator>
    <dc:date>2020-11-15T10:47:54Z</dc:date>
    <item>
      <title>Angle, direction, orientation ...?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/angle-direction-orientation/m-p/9829298#M30823</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know the right way to do it.&lt;/P&gt;&lt;P&gt;I would like to insert an accessory (again &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;) by giving two points for the orientation and the connector of my accessory&lt;/P&gt;&lt;P&gt;How to orient my accessory by two given points.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Foto.PNG" style="width: 823px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/837364i475BFA609832C9D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Foto.PNG" alt="Foto.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;If anyone can help me, it will be cool&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 09:32:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/angle-direction-orientation/m-p/9829298#M30823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-28T09:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Angle, direction, orientation ...?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/angle-direction-orientation/m-p/9830186#M30824</link>
      <description>&lt;P&gt;I assume that by 'accessory' you mean a point-based family instance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In that case, the family instance Location property will be a LocationPoint:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.revitapidocs.com/2020/0a36b1c4-f112-38f6-7b14-d572ea11584b.htm" target="_blank"&gt;https://www.revitapidocs.com/2020/0a36b1c4-f112-38f6-7b14-d572ea11584b.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could set the location point origin to the first point and then use the second insertion point to define the rotation angle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This depends on where the origin is defined on your family definition, by the way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Probably the easiest choice would be to define the family so that point 1 is the origin and point 2 is on the X axis with Y and Z equal to zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 15:02:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/angle-direction-orientation/m-p/9830186#M30824</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-10-28T15:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Angle, direction, orientation ...?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/angle-direction-orientation/m-p/9831880#M30825</link>
      <description>&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;No, only on the points, most I get from the supplier and everyone makes them in their own way&lt;BR /&gt;i wanted neutral point that have nothing to do with that accessorie&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:31:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/angle-direction-orientation/m-p/9831880#M30825</guid>
      <dc:creator>ahmed.errazak</dc:creator>
      <dc:date>2020-10-29T09:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Angle, direction, orientation ...?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/angle-direction-orientation/m-p/9834138#M30826</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure understood question correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.suppsoe&amp;nbsp; two points&amp;nbsp; are their.&lt;/P&gt;&lt;P&gt;2.calculate relative vector between point.&lt;/P&gt;&lt;P&gt;3.calculate angle between relative vector and the axis about which want to rotate.&lt;/P&gt;&lt;P&gt;4.the use rotate api.(give angle which is calculated)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 07:51:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/angle-direction-orientation/m-p/9834138#M30826</guid>
      <dc:creator>prasannamurumkar</dc:creator>
      <dc:date>2020-10-30T07:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Angle, direction, orientation ...?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/angle-direction-orientation/m-p/9870439#M30827</link>
      <description>&lt;P&gt;Yes with Revit when I click on point 1 towards point 2 it returns 0 degrees&lt;BR /&gt;but if I click on point 3 towards point 4 it also returns 0 degrees&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Angle.PNG" style="width: 516px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/844433i05897B57A2968192/image-size/large?v=v2&amp;amp;px=999" role="button" title="Angle.PNG" alt="Angle.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is what I use to return the angles:&lt;BR /&gt;Dim Vector As XYZ = EndPoint.Subtract (StartPoint) .Normalize&lt;BR /&gt;Dim Angle as double = Vector.AngleTo (XYZ.BasisX)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know how to make a subroutine so that it returns the angle defined by the second point&lt;/P&gt;</description>
      <pubDate>Sun, 15 Nov 2020 10:47:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/angle-direction-orientation/m-p/9870439#M30827</guid>
      <dc:creator>ahmed.errazak</dc:creator>
      <dc:date>2020-11-15T10:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Angle, direction, orientation ...?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/angle-direction-orientation/m-p/9870760#M30828</link>
      <description>&lt;P&gt;Maybe your start and end points are in the wrong coordinate space, e.g., symbol geometry == family definition, not the instance geometry == model.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Nov 2020 15:49:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/angle-direction-orientation/m-p/9870760#M30828</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-11-15T15:49:21Z</dc:date>
    </item>
  </channel>
</rss>

