<?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: ViewUpDirection &amp;amp; ViewRightDirection Vector Query Issue in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/viewupdirection-amp-viewrightdirection-vector-query-issue/m-p/9772481#M31554</link>
    <description>&lt;P&gt;I would recommend that you not mix up view directions with pipe (model) directions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have two vectors that you rely on to point up and right, e.g., vy and vx, then you can be certain that (vy + vx) will point half up and half right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No doubt there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 15:55:23 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2020-09-28T15:55:23Z</dc:date>
    <item>
      <title>ViewUpDirection &amp; ViewRightDirection Vector Query Issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/viewupdirection-amp-viewrightdirection-vector-query-issue/m-p/9768254#M31553</link>
      <description>&lt;P&gt;I'm trying to use the ActiveView.UpDirection &amp;amp;&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;ActiveView.RightDirection parameters to create a third directional vector pointing NorthEast or Up &amp;amp; Right. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Adding the two XYZ vectors programmatically yields the correct XYZ result, but a pipe in my project pointing in this direction reports an altogether different vector direction when queried via LocationCurve.Curve.Line Property.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Pipes pointing up and right respectively match the views up &amp;amp; right direction parameters, so it seems odd that this diagonal pipe isn't equal to the addition of the up &amp;amp; right vectors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;I attach a few screenshots of the file and the results for anyone who might be able to help solve this mystery.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="API Query Screenshot 1.PNG" style="width: 922px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/823636i4332DC6BBFFFA382/image-size/large?v=v2&amp;amp;px=999" role="button" title="API Query Screenshot 1.PNG" alt="API Query Screenshot 1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="API Query Screenshot 2.PNG" style="width: 815px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/823637iC5F3EA29CFA0BA18/image-size/large?v=v2&amp;amp;px=999" role="button" title="API Query Screenshot 2.PNG" alt="API Query Screenshot 2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="API Query Screenshot 3.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/823638iBF1F25A0E46CC8A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="API Query Screenshot 3.PNG" alt="API Query Screenshot 3.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 13:22:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/viewupdirection-amp-viewrightdirection-vector-query-issue/m-p/9768254#M31553</guid>
      <dc:creator>DavidBurchell</dc:creator>
      <dc:date>2020-09-25T13:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: ViewUpDirection &amp; ViewRightDirection Vector Query Issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/viewupdirection-amp-viewrightdirection-vector-query-issue/m-p/9772481#M31554</link>
      <description>&lt;P&gt;I would recommend that you not mix up view directions with pipe (model) directions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have two vectors that you rely on to point up and right, e.g., vy and vx, then you can be certain that (vy + vx) will point half up and half right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No doubt there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:55:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/viewupdirection-amp-viewrightdirection-vector-query-issue/m-p/9772481#M31554</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-09-28T15:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: ViewUpDirection &amp; ViewRightDirection Vector Query Issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/viewupdirection-amp-viewrightdirection-vector-query-issue/m-p/9775243#M31555</link>
      <description>&lt;P&gt;The pipe's line's direction is a normal vector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try &lt;EM&gt;normalizing&lt;/EM&gt; the result of adding the two vectors together. I think if you do so, the result should be very close to the pipe's line's direction.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:39:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/viewupdirection-amp-viewrightdirection-vector-query-issue/m-p/9775243#M31555</guid>
      <dc:creator>mhannonQ65N2</dc:creator>
      <dc:date>2020-09-29T19:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: ViewUpDirection &amp; ViewRightDirection Vector Query Issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/viewupdirection-amp-viewrightdirection-vector-query-issue/m-p/9775916#M31556</link>
      <description>&lt;P&gt;Oh, yes, of course. My statement above assumes two vectors vx and vy of equal length. If they may be of different length, I would suggest normalising the two &lt;U&gt;before&lt;/U&gt; addition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 07:09:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/viewupdirection-amp-viewrightdirection-vector-query-issue/m-p/9775916#M31556</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-09-30T07:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: ViewUpDirection &amp; ViewRightDirection Vector Query Issue</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/viewupdirection-amp-viewrightdirection-vector-query-issue/m-p/9776061#M31557</link>
      <description>&lt;P&gt;Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for input the method of comparing pipe line direction to view direction arose out of a need to determine whether a pipe was facing a cardinal direction or close to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There was no doubt a more elegant solution as all I was really looking to do was to 'read' the pipes direction relative to the view 'Up' direction (being North).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My limited knowledge of Maths led me to find a workaround which, with the help of the answers provided by the members on here (the original reply to which seems to have gone missing) has thankfully solved my issue!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks to all.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 09:11:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/viewupdirection-amp-viewrightdirection-vector-query-issue/m-p/9776061#M31557</guid>
      <dc:creator>DavidBurchell</dc:creator>
      <dc:date>2020-09-30T09:11:53Z</dc:date>
    </item>
  </channel>
</rss>

