<?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: Setting Custom State which is not in the list? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/setting-custom-state-which-is-not-in-the-list/m-p/13597418#M91842</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/35485/ankura3.html" nodeid="35485"&gt;@Ankur A3&lt;/A&gt;, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;
 &lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 20 Jul 2023 14:08:03 GMT</pubDate>
    <dc:creator>julie_weller</dc:creator>
    <dc:date>2023-07-20T14:08:03Z</dc:date>
    <item>
      <title>Setting Custom State which is not in the list?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/setting-custom-state-which-is-not-in-the-list/m-p/13597410#M91834</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.1.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi Team,&lt;/P&gt;
 &lt;P&gt;I am trying to set the AGV in the custom state "Charging" which is not available in the list. I am using custom code directly as below:&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1689582333468.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1518328iFDA9EDDC10CAA653/image-size/large?v=v2&amp;amp;px=999" role="button" title="1689582333468.png" alt="1689582333468.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;But my code is not making any impact.&lt;/P&gt;
 &lt;P&gt;What is the quickest way to do it?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Jul 2023 08:26:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/setting-custom-state-which-is-not-in-the-list/m-p/13597410#M91834</guid>
      <dc:creator>rajankur6494</dc:creator>
      <dc:date>2023-07-17T08:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Custom State which is not in the list?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/setting-custom-state-which-is-not-in-the-list/m-p/13597411#M91835</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You are probably missing a &lt;STRONG&gt;Breathe&lt;/STRONG&gt; (0s delay) between the latest task and the activity that sets the state.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Jul 2023 08:39:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/setting-custom-state-which-is-not-in-the-list/m-p/13597411#M91835</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-07-17T08:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Custom State which is not in the list?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/setting-custom-state-which-is-not-in-the-list/m-p/13597412#M91836</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Note that using this method places 'Charging' as state 23 to which the STATE_FULL  macro already refers.  This is fine for a small model that you control completely but it should be documented that this has been repurposed.  In a larger, collaborative model or library it might be better to avoid this method and use your own stateprofile where you define all the states, or write to the developers to suggest that new states are added after ALL  the predefined ones (so 51 and on).&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Jul 2023 09:03:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/setting-custom-state-which-is-not-in-the-list/m-p/13597412#M91836</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-07-17T09:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Custom State which is not in the list?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/setting-custom-state-which-is-not-in-the-list/m-p/13597413#M91837</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt;,&lt;/P&gt;
 &lt;P&gt;I just checked it is setting the state, but it is not shown in bar chart as other preexisting states are shown.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1689586398430.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1518322iEB9DB4BB8B6DB127/image-size/large?v=v2&amp;amp;px=999" role="button" title="1689586398430.png" alt="1689586398430.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Whether I am missing anything?&lt;/P&gt;
 &lt;P&gt;Thank you!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Jul 2023 09:33:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/setting-custom-state-which-is-not-in-the-list/m-p/13597413#M91837</guid>
      <dc:creator>rajankur6494</dc:creator>
      <dc:date>2023-07-17T09:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Custom State which is not in the list?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/setting-custom-state-which-is-not-in-the-list/m-p/13597414#M91838</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Check which state table it's using and edit that to show your state.  If that doesn't fix it post your model so we can see what you're doing.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Jul 2023 09:38:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/setting-custom-state-which-is-not-in-the-list/m-p/13597414#M91838</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-07-17T09:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Custom State which is not in the list?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/setting-custom-state-which-is-not-in-the-list/m-p/13597415#M91839</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/226/jason.l.html" nodeid="226"&gt;@Jason Lightfoot&lt;/A&gt;,&lt;/P&gt;
 &lt;P&gt;It is showing "Accumulating" state in chart instead of charging.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1689596202372.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1518324iAA5DAF0477EB7B97/image-size/large?v=v2&amp;amp;px=999" role="button" title="1689596202372.png" alt="1689596202372.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1689596226593.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1518325iC65A15A86B35D341/image-size/large?v=v2&amp;amp;px=999" role="button" title="1689596226593.png" alt="1689596226593.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Please have a look here.&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/71082-17072023-setting-agv-state.fsm" target="_blank"&gt;17.07.2023_Setting_AGV_State.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Jul 2023 12:18:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/setting-custom-state-which-is-not-in-the-list/m-p/13597415#M91839</guid>
      <dc:creator>rajankur6494</dc:creator>
      <dc:date>2023-07-17T12:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Custom State which is not in the list?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/setting-custom-state-which-is-not-in-the-list/m-p/13597416#M91840</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;As Jason wrote, when you add a new state the way you did (by using a string value to set the state) this state will be added at the next available number in the state profile. By default, a task executer has 22 states (up to "busy"). Since you apparently already used "waiting", the states up to that were added to the TE along side it, so your TE had 49 states in its profile.&lt;/P&gt;&lt;P&gt;As such, the new "Charging" state was added as the 50th state. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="capture.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1518326i5CA08DC699B96F56/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The Statistics Collectors that deal with states only use the numerical value from the profile. The name is taken from the connected State Table. The State Table in your model uses the defautl arrangement in which state 50 (the last default state) is called "Accumulating".&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/1518327iBAB39E949E3F818F/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;P&gt;Again, as Jason already said, change the display name in the State Table to your desired value to have it show up in the chart.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Jul 2023 12:38:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/setting-custom-state-which-is-not-in-the-list/m-p/13597416#M91840</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-07-17T12:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Custom State which is not in the list?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/setting-custom-state-which-is-not-in-the-list/m-p/13597417#M91841</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Ok. 
 &lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Thank you for the clarification!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Jul 2023 12:46:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/setting-custom-state-which-is-not-in-the-list/m-p/13597417#M91841</guid>
      <dc:creator>rajankur6494</dc:creator>
      <dc:date>2023-07-17T12:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Custom State which is not in the list?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/setting-custom-state-which-is-not-in-the-list/m-p/13597418#M91842</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/35485/ankura3.html" nodeid="35485"&gt;@Ankur A3&lt;/A&gt;, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;
 &lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Jul 2023 14:08:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/setting-custom-state-which-is-not-in-the-list/m-p/13597418#M91842</guid>
      <dc:creator>julie_weller</dc:creator>
      <dc:date>2023-07-20T14:08:03Z</dc:date>
    </item>
  </channel>
</rss>

