<?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: configuration Trigger &amp;quot;on state change&amp;quot; - change the color in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/configuration-trigger-quot-on-state-change-quot-change-the-color/m-p/13888746#M98939</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17286793"&gt;@FelixMoehlmann&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Nov 2025 15:14:59 GMT</pubDate>
    <dc:creator>samuel_patarroyodiaz</dc:creator>
    <dc:date>2025-11-10T15:14:59Z</dc:date>
    <item>
      <title>configuration Trigger "on state change" - change the color</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/configuration-trigger-quot-on-state-change-quot-change-the-color/m-p/13881278#M98849</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question about my model, in my model i want to change the color of one of the task executers (crane) when its state changes to "allocated idle",&amp;nbsp; I found a trigger called "on state change" and added a color palette. With this script, the crane changes colors based on the palette.&amp;nbsp;&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-inline" image-alt="samuel_patarroyodiaz_0-1762311969951.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1585295i55135EB535DA2651/image-size/medium?v=v2&amp;amp;px=400" role="button" title="samuel_patarroyodiaz_0-1762311969951.png" alt="samuel_patarroyodiaz_0-1762311969951.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i only need it to change color in one specific state "allocated idle", not in all of them , . I'm not sure how to adjust the script to do that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also looking for a way to count how many times the crane enters that state, but I'm not sure what the easiest method would be. I thought about using a StadisticsCollector, or maybe a dashboard that allows it, but I haven’t found one yet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 03:18:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/configuration-trigger-quot-on-state-change-quot-change-the-color/m-p/13881278#M98849</guid>
      <dc:creator>samuel_patarroyodiaz</dc:creator>
      <dc:date>2025-11-05T03:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: configuration Trigger "on state change" - change the color</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/configuration-trigger-quot-on-state-change-quot-change-the-color/m-p/13881535#M98855</link>
      <description>&lt;P&gt;You can just use an if-condition to change the color only when the allocated idle state is involved. At the same time you can increment a label as a simple way to count how often the crane entered that state.&lt;/P&gt;&lt;P&gt;If you plan on using the Experimenter than I would recommend to use a Statistics Collector, so the data gets saved in the result database.&lt;/P&gt;&lt;P&gt;In both cases I check whether the "toState" is equal to "allocated idle" and if the previous state is different from it. I do this to prevent counting events where fromState and toState are the same (this happens when you stop and resume the model, for example).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 07:44:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/configuration-trigger-quot-on-state-change-quot-change-the-color/m-p/13881535#M98855</guid>
      <dc:creator>FelixMoehlmann</dc:creator>
      <dc:date>2025-11-05T07:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: configuration Trigger "on state change" - change the color</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/configuration-trigger-quot-on-state-change-quot-change-the-color/m-p/13883227#M98879</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17286793"&gt;@FelixMoehlmann&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 04:08:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/configuration-trigger-quot-on-state-change-quot-change-the-color/m-p/13883227#M98879</guid>
      <dc:creator>samuel_patarroyodiaz</dc:creator>
      <dc:date>2025-11-06T04:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: configuration Trigger "on state change" - change the color</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/configuration-trigger-quot-on-state-change-quot-change-the-color/m-p/13885070#M98891</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17286793"&gt;@FelixMoehlmann&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to ask one question if you could you help me. I tried to do the same with the state&amp;nbsp; "setup" in the combiner . The script for the color works well, but the statistics collector that calculates how many setups are done is not working. I'm not sure if it requires a different configuration or if i made a mistake that i haven't found yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's counting too many. There are only around 10 setups, but the counter reaches more than 400&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the configuration. (same that used for the crane).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="samuel_patarroyodiaz_0-1762486200354.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1586317iD191200E3DC7C2F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="samuel_patarroyodiaz_0-1762486200354.png" alt="samuel_patarroyodiaz_0-1762486200354.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="samuel_patarroyodiaz_1-1762486225390.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1586318i6D9AFC1B2591392B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="samuel_patarroyodiaz_1-1762486225390.png" alt="samuel_patarroyodiaz_1-1762486225390.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="samuel_patarroyodiaz_2-1762486239743.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1586319iB13BD1F6A671A064/image-size/medium?v=v2&amp;amp;px=400" role="button" title="samuel_patarroyodiaz_2-1762486239743.png" alt="samuel_patarroyodiaz_2-1762486239743.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="samuel_patarroyodiaz_4-1762486343638.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1586321i90E6104094833290/image-size/medium?v=v2&amp;amp;px=400" role="button" title="samuel_patarroyodiaz_4-1762486343638.png" alt="samuel_patarroyodiaz_4-1762486343638.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 03:39:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/configuration-trigger-quot-on-state-change-quot-change-the-color/m-p/13885070#M98891</guid>
      <dc:creator>samuel_patarroyodiaz</dc:creator>
      <dc:date>2025-11-07T03:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: configuration Trigger "on state change" - change the color</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/configuration-trigger-quot-on-state-change-quot-change-the-color/m-p/13885268#M98904</link>
      <description>&lt;P&gt;The combiner always enters the setup state when it receives an item through port 1, regardless of how long the setup time for that item is.&lt;/P&gt;&lt;P&gt;For the label on the combiner you can change to incrementing it as part of the setup time code if the duration that will get used is larger than 0.&lt;/P&gt;&lt;P&gt;The Statistics Collector could be made to store the current model time when the combiner enters the setup state. Then compare that value to the current time when the state changes away from setup and only trigger if the difference between the two times is larger than 0.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 08:03:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/configuration-trigger-quot-on-state-change-quot-change-the-color/m-p/13885268#M98904</guid>
      <dc:creator>FelixMoehlmann</dc:creator>
      <dc:date>2025-11-07T08:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: configuration Trigger "on state change" - change the color</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/configuration-trigger-quot-on-state-change-quot-change-the-color/m-p/13888746#M98939</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17286793"&gt;@FelixMoehlmann&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 15:14:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/configuration-trigger-quot-on-state-change-quot-change-the-color/m-p/13888746#M98939</guid>
      <dc:creator>samuel_patarroyodiaz</dc:creator>
      <dc:date>2025-11-10T15:14:59Z</dc:date>
    </item>
  </channel>
</rss>

