<?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: Code lines for doing animation. in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/code-lines-for-doing-animation/m-p/13546249#M51921</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;In your screenshot you are mixing up two ways to access the animation.&lt;/P&gt;&lt;P&gt;You can either use the old commands (startanimation, stopanimation, ...) which you can look up in the command help within FlexSim directly (Help -&amp;gt; Command Helper).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1676112634526.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515276i743778C81F5FD150/image-size/large?v=v2&amp;amp;px=999" role="button" title="1676112634526.png" alt="1676112634526.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Or you the newer "animations" class. Information about that is available in the class reference section of the online manual.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.flexsim.com/en/23.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Animation.html"&gt;https://docs.flexsim.com/en/23.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Animation.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you need to look up syntax in general, those two sources will help you in most cases.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Sat, 11 Feb 2023 10:52:21 GMT</pubDate>
    <dc:creator>FelixMoehlmann</dc:creator>
    <dc:date>2023-02-11T10:52:21Z</dc:date>
    <item>
      <title>Code lines for doing animation.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-lines-for-doing-animation/m-p/13546247#M51919</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.0.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi Cammunity.&lt;/P&gt;&lt;P&gt;In my model i am using a code to make an object run an animation.&lt;/P&gt;&lt;P&gt;if (buttonNum == 8)&lt;/P&gt;&lt;P&gt;{&lt;!-- --&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="white-space:pre;"&gt;    &lt;/SPAN&gt;Model.find("Door");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;if (buttonNum == 9)&lt;/P&gt;&lt;P&gt;{&lt;!-- --&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="white-space:pre;"&gt;    &lt;/SPAN&gt;Model.find("Door");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;What is the complete code lines for this.&lt;/P&gt;&lt;P&gt;Thankyou&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 11 Feb 2023 05:41:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-lines-for-doing-animation/m-p/13546247#M51919</guid>
      <dc:creator>sri_vikas_k</dc:creator>
      <dc:date>2023-02-11T05:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Code lines for doing animation.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-lines-for-doing-animation/m-p/13546248#M51920</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;It is showing some error like this.&lt;span class="lia-inline-image-display-wrapper" image-alt="error-in-code.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515275i70A06142E785FA74/image-size/large?v=v2&amp;amp;px=999" role="button" title="error-in-code.png" alt="error-in-code.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 11 Feb 2023 06:49:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-lines-for-doing-animation/m-p/13546248#M51920</guid>
      <dc:creator>sri_vikas_k</dc:creator>
      <dc:date>2023-02-11T06:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Code lines for doing animation.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-lines-for-doing-animation/m-p/13546249#M51921</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;In your screenshot you are mixing up two ways to access the animation.&lt;/P&gt;&lt;P&gt;You can either use the old commands (startanimation, stopanimation, ...) which you can look up in the command help within FlexSim directly (Help -&amp;gt; Command Helper).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1676112634526.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515276i743778C81F5FD150/image-size/large?v=v2&amp;amp;px=999" role="button" title="1676112634526.png" alt="1676112634526.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Or you the newer "animations" class. Information about that is available in the class reference section of the online manual.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.flexsim.com/en/23.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Animation.html"&gt;https://docs.flexsim.com/en/23.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Animation.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you need to look up syntax in general, those two sources will help you in most cases.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 11 Feb 2023 10:52:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-lines-for-doing-animation/m-p/13546249#M51921</guid>
      <dc:creator>FelixMoehlmann</dc:creator>
      <dc:date>2023-02-11T10:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Code lines for doing animation.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-lines-for-doing-animation/m-p/13546250#M51922</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I have tried in that way also, but it is still showing the error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="error-window.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515279i8AA24C35102453B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="error-window.png" alt="error-window.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 11 Feb 2023 11:00:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-lines-for-doing-animation/m-p/13546250#M51922</guid>
      <dc:creator>sri_vikas_k</dc:creator>
      <dc:date>2023-02-11T11:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Code lines for doing animation.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-lines-for-doing-animation/m-p/13546251#M51923</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Try placing "as(Object)" after "Model.find()" like in the 7 an 11. This tells FlexSim what to interpret the node as.&lt;/DIV&gt;</description>
      <pubDate>Sat, 11 Feb 2023 11:23:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-lines-for-doing-animation/m-p/13546251#M51923</guid>
      <dc:creator>FelixMoehlmann</dc:creator>
      <dc:date>2023-02-11T11:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Code lines for doing animation.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code-lines-for-doing-animation/m-p/13546252#M51924</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/39282/sri-vikask.html" nodeid="39282"&gt;@Sri_vikas K&lt;/A&gt;, “find” method is of a flexscript class &lt;EM&gt;treenode&lt;/EM&gt;. The class “animation” is a sub class of class &lt;EM&gt;Object&lt;/EM&gt;. Felix showed a method of casting from one class to another class. &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 11 Feb 2023 11:40:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code-lines-for-doing-animation/m-p/13546252#M51924</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2023-02-11T11:40:00Z</dc:date>
    </item>
  </channel>
</rss>

