<?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: Coding in flexscript in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/coding-in-flexscript/m-p/13593696#M89000</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Can anyone help me solve this problem?&lt;/P&gt;
 &lt;P&gt;I really appreciate it.&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Sat, 15 Jun 2024 04:10:59 GMT</pubDate>
    <dc:creator>j08j</dc:creator>
    <dc:date>2024-06-15T04:10:59Z</dc:date>
    <item>
      <title>Coding in flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/coding-in-flexscript/m-p/13593695#M88999</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 24.0.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;SPAN id="isPasted" style="caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: "&gt;I have some questions about flexscript coding, how can I execute these steps using flexscript?&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN id="isPasted"&gt;1. Modify the parameters of exponential distribution in the source property.&lt;span class="lia-inline-image-display-wrapper" image-alt="截圖-2024-06-13-下午25557.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524255i49BCE4D4D0959CF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="截圖-2024-06-13-下午25557.png" alt="截圖-2024-06-13-下午25557.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN id="isPasted"&gt;2. Add a dashboard that expresses staytime in the form of a table, and add objects Queue and ASRSvehicle.&lt;span class="lia-inline-image-display-wrapper" image-alt="截圖-2024-06-13-下午25433.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524256iDBA1485B745CF965/image-size/large?v=v2&amp;amp;px=999" role="button" title="截圖-2024-06-13-下午25433.png" alt="截圖-2024-06-13-下午25433.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="截圖-2024-06-13-下午25506.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524258i3C1339E674200645/image-size/large?v=v2&amp;amp;px=999" role="button" title="截圖-2024-06-13-下午25506.png" alt="截圖-2024-06-13-下午25506.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN id="isPasted"&gt;3. A piece of code to clear dachbord. I hope that every time the program is executed, the old dashboard will be deleted and rebuilt instead of adding new dashboards all the time.&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;Thanks for your help.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Jun 2024 07:11:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/coding-in-flexscript/m-p/13593695#M88999</guid>
      <dc:creator>j08j</dc:creator>
      <dc:date>2024-06-13T07:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Coding in flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/coding-in-flexscript/m-p/13593696#M89000</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Can anyone help me solve this problem?&lt;/P&gt;
 &lt;P&gt;I really appreciate it.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sat, 15 Jun 2024 04:10:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/coding-in-flexscript/m-p/13593696#M89000</guid>
      <dc:creator>j08j</dc:creator>
      <dc:date>2024-06-15T04:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Coding in flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/coding-in-flexscript/m-p/13593697#M89001</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P id="isPasted"&gt;1) Either set the source to use parameters instead of fixed values and then change those parameters. Or edit the text of the code node ("macth" and "replace" methods of the &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/24.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Basic/string.html" target="_blank"&gt;string class&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="capture1.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524245i85BB5F353A255E44/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture1.png" alt="capture1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2) "applicationcommand("adddashboard")" to add a new dashboard. For the rest see the link.&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.flexsim.com/questions/148499/how-to-add-a-output-bar-chart-in-the-dashboard-usi.html"&gt;https://answers.flexsim.com/questions/148499/how-to-add-a-output-bar-chart-in-the-dashboard-usi.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;3) Just delete the subnodes of the "Dashboards" and "Statistics" in the Tools folder.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="capture2.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524246iF9F5B445073CEA51/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture2.png" alt="capture2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Jun 2024 09:18:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/coding-in-flexscript/m-p/13593697#M89001</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-06-17T09:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Coding in flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/coding-in-flexscript/m-p/13593698#M89002</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I tried following the reference link:&lt;/P&gt;
 &lt;PRE&gt;Object dashview=views().find("active&amp;gt;Documents/Dashboard/1+/~");
Object chartview=views().find("viewslibrary/Dashboard/Output/ThroughputTable");
Object chart=function_s(dashview,"createGraphWindow",chartview,1);
Group group = getvarnode(chart,"replacements").subnodes["Objects"].value;
group.addMember(Model.find("Queue"));&lt;/PRE&gt;
 &lt;P&gt;but no success, and get an error on Line 4.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="截圖-2024-06-18-上午85111.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524250iFD8D3768207B8297/image-size/large?v=v2&amp;amp;px=999" role="button" title="截圖-2024-06-18-上午85111.png" alt="截圖-2024-06-18-上午85111.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Can you help me modify it?&lt;/P&gt;
 &lt;P&gt;Thanks a lot.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Jun 2024 00:53:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/coding-in-flexscript/m-p/13593698#M89002</guid>
      <dc:creator>j08j</dc:creator>
      <dc:date>2024-06-18T00:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Coding in flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/coding-in-flexscript/m-p/13593699#M89003</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The location of the chart definitions changed. You just have to adjust line 2.&lt;/P&gt;&lt;PRE&gt;Object chartview=maintree().find("project/exec/globals/ChartTemplateDefinitions/Output/ThroughputBar");&lt;/PRE&gt;&lt;P&gt;Check the path shown above to find the names of other chart types.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Jun 2024 07:28:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/coding-in-flexscript/m-p/13593699#M89003</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-06-18T07:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Coding in flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/coding-in-flexscript/m-p/13593700#M89004</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thanks, it executed it successfully. &lt;/P&gt;
 &lt;P&gt;I have another question. Currently, it displays Throuput information. How can I change it to calculate WIP?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Jun 2024 07:54:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/coding-in-flexscript/m-p/13593700#M89004</guid>
      <dc:creator>j08j</dc:creator>
      <dc:date>2024-06-18T07:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Coding in flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/coding-in-flexscript/m-p/13593701#M89005</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Or another way, I have manually added the dashboard, I only need to add the object to be tracked through script.&lt;span class="lia-inline-image-display-wrapper" image-alt="截圖-2024-06-18-下午44452.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524253iD29654AA47E5F3FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="截圖-2024-06-18-下午44452.png" alt="截圖-2024-06-18-下午44452.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;The code may like?&lt;/P&gt;
 &lt;PRE&gt;//Point to an existing dashboard
Object Staytime = maintree().find("Tools/Statistics/Staytime");

//Add Objects "Queue"
.addMember(Model.find("Queue"));&lt;/PRE&gt;
 &lt;P&gt;Is this method feasible?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Jun 2024 08:54:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/coding-in-flexscript/m-p/13593701#M89005</guid>
      <dc:creator>j08j</dc:creator>
      <dc:date>2024-06-18T08:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Coding in flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/coding-in-flexscript/m-p/13593702#M89006</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;If you want to add other chart types you can look up the path in the main tree to see what charts are available and what their name is.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="capture1.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524248i213107A7793D4046/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture1.png" alt="capture1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To add an object to an existing chart you'd start at line 3 of the code by providing the reference to the chart template.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="capture2.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524251i01C769FBC2C6CA5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture2.png" alt="capture2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;Object chart = Model.find("Tools/ChartTemplates/Staytime");&lt;BR /&gt;Group group = getvarnode(chart,"replacements").subnodes["Objects"].value;
group.addMember(Model.find("Queue"));&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Jun 2024 09:14:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/coding-in-flexscript/m-p/13593702#M89006</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-06-18T09:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Coding in flexscript</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/coding-in-flexscript/m-p/13593703#M89007</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thank you! It works very well!
&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Jun 2024 13:20:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/coding-in-flexscript/m-p/13593703#M89007</guid>
      <dc:creator>j08j</dc:creator>
      <dc:date>2024-06-18T13:20:16Z</dc:date>
    </item>
  </channel>
</rss>

