<?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 Line.Direction property in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/line-direction-property/m-p/3367251#M80967</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Line.Direction Property Returns the direction of the line as XYZ(sinA,cosA, 0) (in 2D). A is the angle between the line and the north (I think so but I m not sure). My question is : what is exactly the line direction in Revit API ?.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Mar 2012 11:30:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-03-12T11:30:02Z</dc:date>
    <item>
      <title>Line.Direction property</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/line-direction-property/m-p/3367251#M80967</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Line.Direction Property Returns the direction of the line as XYZ(sinA,cosA, 0) (in 2D). A is the angle between the line and the north (I think so but I m not sure). My question is : what is exactly the line direction in Revit API ?.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2012 11:30:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/line-direction-property/m-p/3367251#M80967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-12T11:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Line.Direction property</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/line-direction-property/m-p/3368609#M80968</link>
      <description>&lt;P&gt;Dear Habib,&lt;BR /&gt;&lt;BR /&gt;I do not quite see the sense or purpose of your question, but here goes anyway:&lt;BR /&gt;&lt;BR /&gt;A line is a geometric concept connecting two points. You can consider one the start and the other the end point.&lt;BR /&gt;&lt;BR /&gt;If you keep track of this difference, you in fact have a directed line.&lt;BR /&gt;&lt;BR /&gt;In Revit, the start and end points are distinguished by their index, which is 0 for the start and 1 for the end point.&lt;BR /&gt;&lt;BR /&gt;I would consider the direction of a directed line to be the vector from the start to the end point, possibly normalised, e.g. for a Revit API Line object instance L:&lt;BR /&gt;&lt;BR /&gt;XYZ startPoint = L.get_EndPoint( 0 );&lt;BR /&gt;XYZ endPoint = L.get_EndPoint( 1 );&lt;BR /&gt;XYZ direction = (endPoint - startPoint).Normal;&lt;BR /&gt;&lt;BR /&gt;I hope this helps.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Jeremy&lt;BR /&gt;--&lt;BR /&gt;Jeremy Tammik&lt;BR /&gt;Autodesk Developer Network -- &lt;A href="http://www.autodesk.com/joinadn" target="_blank"&gt;http://www.autodesk.com/joinadn&lt;/A&gt;&lt;BR /&gt;The Building Coder -- &lt;A href="http://thebuildingcoder.typepad.com" target="_blank"&gt;http://thebuildingcoder.typepad.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2012 09:46:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/line-direction-property/m-p/3368609#M80968</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2012-03-13T09:46:48Z</dc:date>
    </item>
  </channel>
</rss>

