<?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: Run and re-run model by Flexsim Script in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/run-and-re-run-model-by-flexsim-script/m-p/13535468#M43412</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;This is a feature of the experimenter. &lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.flexsim.com/en/20.0/GettingData/AdvancedDataGathering/RunningExperiments/RunningExperiments.html"&gt;https://docs.flexsim.com/en/20.0/GettingData/AdvancedDataGathering/RunningExperiments/RunningExperiments.html&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 04 Feb 2022 17:01:21 GMT</pubDate>
    <dc:creator>joerg_vogel_HsH</dc:creator>
    <dc:date>2022-02-04T17:01:21Z</dc:date>
    <item>
      <title>Run and re-run model by Flexsim Script</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/run-and-re-run-model-by-flexsim-script/m-p/13535467#M43411</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.1.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi, &lt;/P&gt;
 &lt;P&gt;I have built a simple to run repeatedly with changing variables so I would like to create a script to start, change variables and then restart repeatedly. Each time it will run automatically, generate an .xlsx file for the result, and then alter the variables by Python script.&lt;/P&gt;
 &lt;P&gt;I have searched the answer from &lt;A rel="nofollow" href="https://answers.flexsim.com/questions/106222/command-to-open-model-and-run-from-scripts.html"&gt;https://answers.flexsim.com/questions/106222/command-to-open-model-and-run-from-scripts.html&lt;/A&gt;.. I found it is time consuming for each iteration to open flexsim &lt;SPAN style="color: rgb(65, 65, 65); font-family: sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;application&lt;/SPAN&gt; , run the script and then alter the variables. &lt;/P&gt;
 &lt;P&gt;In stead, I am trying to use Flexsim Script to do, so it can save the time to open and close flexsim application. However, I found Flexsim will not run the scripts line by line, i.e. it will run all the line excpet 2 x go(), then &lt;STRONG&gt;run the first go() only with runspeed 30000. &lt;/STRONG&gt;&lt;/P&gt;
 &lt;P&gt;Could anyone help me on this? Thank you so much. &lt;/P&gt;
 &lt;PRE&gt;/**1st iteration*/
resetmodel();
runspeed(10000);
go();
stoptime(90000);
getvarnode(Model.find("Tools/TimeTables/Worker_A1"), "table").as(Table)[1][3]=33000;

/**2nd iteration*/
resetmodel();
runspeed(30000);
go();
stoptime(90000);&lt;/PRE&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Feb 2022 16:08:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/run-and-re-run-model-by-flexsim-script/m-p/13535467#M43411</guid>
      <dc:creator>simpson_s2</dc:creator>
      <dc:date>2022-02-04T16:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Run and re-run model by Flexsim Script</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/run-and-re-run-model-by-flexsim-script/m-p/13535468#M43412</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;This is a feature of the experimenter. &lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.flexsim.com/en/20.0/GettingData/AdvancedDataGathering/RunningExperiments/RunningExperiments.html"&gt;https://docs.flexsim.com/en/20.0/GettingData/AdvancedDataGathering/RunningExperiments/RunningExperiments.html&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Feb 2022 17:01:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/run-and-re-run-model-by-flexsim-script/m-p/13535468#M43412</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2022-02-04T17:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Run and re-run model by Flexsim Script</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/run-and-re-run-model-by-flexsim-script/m-p/13535469#M43413</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Hi Joerg, thanks it work! Now I am troubling the different results from manual run and experimenter respectively but the variables are the same. Do you have any ideas? Thanks
&lt;/DIV&gt;</description>
      <pubDate>Sat, 05 Feb 2022 14:20:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/run-and-re-run-model-by-flexsim-script/m-p/13535469#M43413</guid>
      <dc:creator>simpson_s2</dc:creator>
      <dc:date>2022-02-05T14:20:19Z</dc:date>
    </item>
  </channel>
</rss>

