<?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: Change view perspective with code in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/change-view-perspective-with-code/m-p/13494835#M11457</link>
    <description>&lt;P&gt;This works well running in the script window if the 3D view is already the selected window. Is there a way to make this work when some non-3D window is active? For example, I want someone to be able to push a button (run the code in the onPress) on a dashboard and have the model open up a 3D window in the specified view. &lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/87/matthew.g.html" nodeid="87"&gt;@Matthew Gillespie&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2019 21:59:09 GMT</pubDate>
    <dc:creator>nmzenke</dc:creator>
    <dc:date>2019-07-23T21:59:09Z</dc:date>
    <item>
      <title>Change view perspective with code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-view-perspective-with-code/m-p/13494832#M11454</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 18.0.2 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I´m trying to make a simple code that replicate de effect on clicking on the save views name in the Quick properties when we click on the model floor.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="10668-asdf.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1496653i15C1C0AE609130F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="10668-asdf.png" alt="10668-asdf.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;
&lt;/P&gt;&lt;P&gt;Is there a command or a different way to accomplish this?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 18:24:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-view-perspective-with-code/m-p/13494832#M11454</guid>
      <dc:creator>julio_r</dc:creator>
      <dc:date>2018-02-07T18:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Change view perspective with code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-view-perspective-with-code/m-p/13494833#M11455</link>
      <description>&lt;PRE&gt;string viewName = "View 1";
applicationcommand("changeperspview", viewName, activedocumentnode());&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Feb 2018 18:26:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-view-perspective-with-code/m-p/13494833#M11455</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2018-02-07T18:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change view perspective with code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-view-perspective-with-code/m-p/13494834#M11456</link>
      <description>&lt;P&gt;Thank you so much, that's exactly what I needed.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 20:18:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-view-perspective-with-code/m-p/13494834#M11456</guid>
      <dc:creator>julio_r</dc:creator>
      <dc:date>2018-02-07T20:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Change view perspective with code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-view-perspective-with-code/m-p/13494835#M11457</link>
      <description>&lt;P&gt;This works well running in the script window if the 3D view is already the selected window. Is there a way to make this work when some non-3D window is active? For example, I want someone to be able to push a button (run the code in the onPress) on a dashboard and have the model open up a 3D window in the specified view. &lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/87/matthew.g.html" nodeid="87"&gt;@Matthew Gillespie&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 21:59:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-view-perspective-with-code/m-p/13494835#M11457</guid>
      <dc:creator>nmzenke</dc:creator>
      <dc:date>2019-07-23T21:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Change view perspective with code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-view-perspective-with-code/m-p/13494836#M11458</link>
      <description>&lt;P&gt;&lt;A href="https://answers.flexsim.com/questions/69086/how-do-you-get-a-reference-to-the-3d-model-view.html"&gt;This answer&lt;/A&gt; shows you how to loop through all open 3D views.&lt;/P&gt;&lt;P&gt;To open a new 3D view you can use this command:&lt;/P&gt;&lt;PRE&gt;treeenode newView = applicationcommand("perspectiveview"); &lt;/PRE&gt;&lt;P&gt;Either way you just replace activedocumentnode() with your chosen view.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 22:52:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-view-perspective-with-code/m-p/13494836#M11458</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2019-07-23T22:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Change view perspective with code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-view-perspective-with-code/m-p/13494837#M11459</link>
      <description>&lt;P&gt;That worked great. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 15:16:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-view-perspective-with-code/m-p/13494837#M11459</guid>
      <dc:creator>nmzenke</dc:creator>
      <dc:date>2019-07-25T15:16:29Z</dc:date>
    </item>
  </channel>
</rss>

