<?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 inverse view direction in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/inverse-view-direction/m-p/9619368#M4299</link>
    <description>&lt;P&gt;Hallo Community,&lt;/P&gt;&lt;P&gt;I have the following code to set the current view:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;AcGeVector3d viewDirection;
AcGeVector3d upVector;

acgsGetOrthoViewParameters(
    ac::getVar(ac::CVPORT),
    AcDb::OrthographicView::kTopView,
    &amp;amp;viewDirection,
    &amp;amp;upVector
);

auto pView = acgsGetCurrentAcGsView(ac::getVar(ac::CVPORT));

pView-&amp;gt;setView(AcGePoint3d::kOrigin, AcGePoint3d::kOrigin + viewDirection, upVector, pView-&amp;gt;fieldWidth(), pView-&amp;gt;fieldHeight());
pView-&amp;gt;update();

acgsSetViewParameters(ac::getVar(ac::CVPORT), pView, true, true, true);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It updates the view. But the&amp;nbsp; view Direction is not what I expected. The returned viewDirection is (0,0,1). I expected (0,0,-1) for a Top view. Am I wrong or do I miss something? The WCS is active. "Unten" is German for Bottom.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="cube.PNG" style="width: 354px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/792179i9F66EAE12A9C729F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cube.PNG" alt="cube.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jul 2020 09:11:24 GMT</pubDate>
    <dc:creator>fehrsZBFB9</dc:creator>
    <dc:date>2020-07-06T09:11:24Z</dc:date>
    <item>
      <title>inverse view direction</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/inverse-view-direction/m-p/9619368#M4299</link>
      <description>&lt;P&gt;Hallo Community,&lt;/P&gt;&lt;P&gt;I have the following code to set the current view:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;AcGeVector3d viewDirection;
AcGeVector3d upVector;

acgsGetOrthoViewParameters(
    ac::getVar(ac::CVPORT),
    AcDb::OrthographicView::kTopView,
    &amp;amp;viewDirection,
    &amp;amp;upVector
);

auto pView = acgsGetCurrentAcGsView(ac::getVar(ac::CVPORT));

pView-&amp;gt;setView(AcGePoint3d::kOrigin, AcGePoint3d::kOrigin + viewDirection, upVector, pView-&amp;gt;fieldWidth(), pView-&amp;gt;fieldHeight());
pView-&amp;gt;update();

acgsSetViewParameters(ac::getVar(ac::CVPORT), pView, true, true, true);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It updates the view. But the&amp;nbsp; view Direction is not what I expected. The returned viewDirection is (0,0,1). I expected (0,0,-1) for a Top view. Am I wrong or do I miss something? The WCS is active. "Unten" is German for Bottom.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="cube.PNG" style="width: 354px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/792179i9F66EAE12A9C729F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cube.PNG" alt="cube.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 09:11:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/inverse-view-direction/m-p/9619368#M4299</guid>
      <dc:creator>fehrsZBFB9</dc:creator>
      <dc:date>2020-07-06T09:11:24Z</dc:date>
    </item>
  </channel>
</rss>

