<?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: 3D view facing North in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/3d-view-facing-north/m-p/6265179#M66808</link>
    <description>&lt;P&gt;Hi Jeremy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried, and the view is perfect with crop, eye Target etc, if it is in the right direction !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 3D view have settings like this&lt;/P&gt;&lt;P&gt;Up Direction &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (-1, 0, 0)&lt;/P&gt;&lt;P&gt;Right Direction &amp;nbsp; &amp;nbsp; (0, 1, 0)&lt;/P&gt;&lt;P&gt;View Direction &amp;nbsp; &amp;nbsp; (0, 0, 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I manualy correct the view with Top facing North&lt;/P&gt;&lt;P&gt;The settings look like this&lt;/P&gt;&lt;P&gt;Up Direction &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (-1.57009245868378E-16, 1, -2.20937357914267E-16)&lt;/P&gt;&lt;P&gt;Right Direction &amp;nbsp; &amp;nbsp; (1, &lt;SPAN&gt;-1.57009245868378E-16&lt;/SPAN&gt;, -1.53018136212116E-31)&lt;/P&gt;&lt;P&gt;View Direction &amp;nbsp; &amp;nbsp; (1.18328928261845E-31, 2.20937357914267E-16, 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you get something out of those settings ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For you information, We started the subject at:&lt;/P&gt;&lt;P&gt;&lt;A href="http://forums.autodesk.com/t5/revit-api/setting-3dview-to-topview-and-north-upwards/m-p/5612946#M9795" target="_blank"&gt;http://forums.autodesk.com/t5/revit-api/setting-3dview-to-topview-and-north-upwards/m-p/5612946#M9795&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards Anders&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2016 07:22:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-12T07:22:24Z</dc:date>
    <item>
      <title>3D view facing North</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/3d-view-facing-north/m-p/6224062#M66805</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After a while I have started on the automatic 3D views creation again, still with no luck.&lt;/P&gt;&lt;P&gt;The North direction is still wrong.&lt;/P&gt;&lt;P&gt;When I use the eye, Up, Forward settings as below, North is turning Right insted of up&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;XYZ eye = new XYZ((SecBMin.X + SecBMax.X) / 2, (SecBMin.Y + SecBMax.Y) / 2, 1); // in the middle of the section box&lt;/P&gt;&lt;P&gt;XYZ up = XYZ.BasisY;&lt;BR /&gt;XYZ forward = XYZ.BasisZ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I swap the Up and Forward Z/Y:&lt;/P&gt;&lt;P&gt;XYZ eye = new XYZ((SecBMin.X + SecBMax.X) / 2, (SecBMin.Y + SecBMax.Y) / 2, 1);&lt;/P&gt;&lt;P&gt;XYZ up = XYZ.BasisZ;&lt;BR /&gt;XYZ forward = XYZ.BasisY;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I got the direction right, but the eye target is not placed in the midtel af the outer walls don't seem prarallel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do I do wrong ?&lt;/P&gt;&lt;P&gt;Isn't it possible to create a 3D perspective facing North ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, is it possible to r&lt;SPAN&gt;otate the view after creation&lt;/SPAN&gt;&amp;nbsp;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;</description>
      <pubDate>Sat, 19 Mar 2016 07:29:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/3d-view-facing-north/m-p/6224062#M66805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-19T07:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: 3D view facing North</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/3d-view-facing-north/m-p/6251625#M66807</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Anders,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your query.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I cannot say off-hand what might be wrong, but I am certain that you can create the view oriented in the manner you need.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Have you taken a look at The Building Coder topic group on Creating and Setting Up a 3D View?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.37" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.37&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope some of the discussions and examples there help resolve the issue.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please let us know how you end up solving this and what the problem was.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 08:06:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/3d-view-facing-north/m-p/6251625#M66807</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-04-05T08:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: 3D view facing North</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/3d-view-facing-north/m-p/6265179#M66808</link>
      <description>&lt;P&gt;Hi Jeremy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried, and the view is perfect with crop, eye Target etc, if it is in the right direction !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 3D view have settings like this&lt;/P&gt;&lt;P&gt;Up Direction &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (-1, 0, 0)&lt;/P&gt;&lt;P&gt;Right Direction &amp;nbsp; &amp;nbsp; (0, 1, 0)&lt;/P&gt;&lt;P&gt;View Direction &amp;nbsp; &amp;nbsp; (0, 0, 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I manualy correct the view with Top facing North&lt;/P&gt;&lt;P&gt;The settings look like this&lt;/P&gt;&lt;P&gt;Up Direction &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (-1.57009245868378E-16, 1, -2.20937357914267E-16)&lt;/P&gt;&lt;P&gt;Right Direction &amp;nbsp; &amp;nbsp; (1, &lt;SPAN&gt;-1.57009245868378E-16&lt;/SPAN&gt;, -1.53018136212116E-31)&lt;/P&gt;&lt;P&gt;View Direction &amp;nbsp; &amp;nbsp; (1.18328928261845E-31, 2.20937357914267E-16, 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you get something out of those settings ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For you information, We started the subject at:&lt;/P&gt;&lt;P&gt;&lt;A href="http://forums.autodesk.com/t5/revit-api/setting-3dview-to-topview-and-north-upwards/m-p/5612946#M9795" target="_blank"&gt;http://forums.autodesk.com/t5/revit-api/setting-3dview-to-topview-and-north-upwards/m-p/5612946#M9795&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards Anders&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 07:22:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/3d-view-facing-north/m-p/6265179#M66808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-12T07:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: 3D view facing North</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/3d-view-facing-north/m-p/6267579#M66809</link>
      <description>&lt;P&gt;Dear Anders,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your update.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You understand the exponential notation xxxE-16, where x are digits, I assume?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;E-16 and E-31 means 'multiplied by 10^-16' and 10^-31, respectively.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In other words, very small numbers indeed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In other words, these numbers can be equated with zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In other words, the manually generated settings are&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  Up Direction     (0, 1, 0) = XYZ.BasisY
  Right Direction  (1, 0, 0) = XYZ.BasisX
  View Direction   (0, 0, 1) = XYZ.BasisZ&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does that help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you look at the background documentation that I pointed to responding to your other related query?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://forums.autodesk.com/t5/revit-api/setting-3dview-to-topview-and-north-upwards/m-p/5612946" target="_blank"&gt;http://forums.autodesk.com/t5/revit-api/setting-3dview-to-topview-and-north-upwards/m-p/5612946&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The description of the views in the developer guide:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to Revit 2016 Learning&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://help.autodesk.com/view/RVT/2016/ENU" target="_blank"&gt;http://help.autodesk.com/view/RVT/2016/ENU&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revit API Developers Guide&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://help.autodesk.com/view/RVT/2016/ENU/?guid=GUID-F0A122E0-E556-4D0D-9D0F-7E72A9315A42" target="_blank"&gt;http://help.autodesk.com/view/RVT/2016/ENU/?guid=GUID-F0A122E0-E556-4D0D-9D0F-7E72A9315A42&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basic Interaction with Revit Elements&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://help.autodesk.com/view/RVT/2016/ENU/?guid=GUID-54D8EFF1-5274-43D8-BD0C-68209F36BBD2" target="_blank"&gt;http://help.autodesk.com/view/RVT/2016/ENU/?guid=GUID-54D8EFF1-5274-43D8-BD0C-68209F36BBD2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Views&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://help.autodesk.com/view/RVT/2016/ENU/?guid=GUID-A7CE4D5C-8839-4CD8-817F-BE8B17F91D97" target="_blank"&gt;http://help.autodesk.com/view/RVT/2016/ENU/?guid=GUID-A7CE4D5C-8839-4CD8-817F-BE8B17F91D97&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;View3D&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://help.autodesk.com/view/RVT/2016/ENU/?guid=GUID-A7FA8DBC-830E-482D-9B66-147399524442" target="_blank"&gt;http://help.autodesk.com/view/RVT/2016/ENU/?guid=GUID-A7FA8DBC-830E-482D-9B66-147399524442&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 06:48:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/3d-view-facing-north/m-p/6267579#M66809</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-04-13T06:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: 3D view facing North</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/3d-view-facing-north/m-p/6274362#M66810</link>
      <description>&lt;P&gt;Hi Jeremy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally I got I right&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure it is "by the book" but it is working&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I &amp;nbsp;put in an negativ value in the XYZ forward, then all the 3D view are in the right view, facing North.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;XYZ eye = new XYZ((SecBMin.X + SecBMax.X) / 2, (SecBMin.Y + SecBMax.Y) / 2, 1); // Center of the sectionBox&lt;BR /&gt;XYZ up = XYZ.BasisY;&lt;BR /&gt;XYZ forward = -XYZ.BasisZ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;view.SetOrientation(new ViewOrientation3D(eye, up, forward));&lt;/P&gt;&lt;P&gt;Then I locked the view&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;view.SaveOrientationAndLock();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and at last set the eye and target elevation to the right value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Parameter EYE_ELE = view.get_Parameter(BuiltInParameter.VIEWER_EYE_ELEVATION);&lt;BR /&gt;EYE_ELE.Set(....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Parameter Tar_ele = view.get_Parameter(BuiltInParameter.VIEWER_TARGET_ELEVATION);&lt;BR /&gt;Tar_ele.Set(.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a nice weekend&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2016 09:17:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/3d-view-facing-north/m-p/6274362#M66810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-16T09:17:13Z</dc:date>
    </item>
  </channel>
</rss>

