<?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: How to make decision based on current content's item Type in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-decision-based-on-current-content-s-item-type/m-p/13545878#M51617</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/19536/chitraj.html" nodeid="19536"&gt;@Chitra J&lt;/A&gt;, was Jeanette F's answer helpful? If so, please click the red "Accept" button on 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 unaccept or comment back to reopen your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 27 Nov 2020 20:54:29 GMT</pubDate>
    <dc:creator>Ben_WilsonADSK</dc:creator>
    <dc:date>2020-11-27T20:54:29Z</dc:date>
    <item>
      <title>How to make decision based on current content's item Type</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-decision-based-on-current-content-s-item-type/m-p/13545876#M51615</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.2.1 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I want to identify Type wise contents in the conveyor system and their count as well. I can get that on dashboard using WIP by Type chart.&lt;/P&gt;
 &lt;P&gt;but I want to save/use that same data somewhere in the model to make decisions.&lt;/P&gt;
 &lt;P&gt;example: At the exit of each part from the conveyor system, I want to identify how many left behind on the conveyor system of the same type.&lt;/P&gt;
 &lt;P&gt;I have attached sample model here.&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/34361-wip-by-type.fsm" target="_blank"&gt;WIP by Type.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 18 Nov 2020 18:11:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-decision-based-on-current-content-s-item-type/m-p/13545876#M51615</guid>
      <dc:creator>chitra_j</dc:creator>
      <dc:date>2020-11-18T18:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to make decision based on current content's item Type</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-decision-based-on-current-content-s-item-type/m-p/13545877#M51616</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hello &lt;A rel="user" href="https://answers.flexsim.com/users/19536/chitraj.html" nodeid="19536"&gt;@Chitra J&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Your Statistic Collectors make tables and these tables can be referenced in your model or in process flow.&lt;/P&gt;&lt;P&gt;The following code will return the value from the specified row and column of the table. &lt;/P&gt;&lt;PRE&gt;Table("Example table")[rowNumber][columnNumber]&lt;/PRE&gt;&lt;P&gt;This code will also return a value from the matching row of the table. The code looks through the first column of the table to find a matching value and then returns the second column value of the row with the matching value. This is helpful with a table that has changing rows or columns like a statistics collector is at the beginning of the model. &lt;/P&gt;&lt;PRE&gt;Variant searchVal = token.Type;
Table table = reftable("Example table");

for(int i = 1; i &amp;lt;= table.numRows; i++) {
&amp;nbsp; &amp;nbsp;&amp;nbsp;if(table&lt;I&gt;[1] == searchVal)
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;return [i, 2];
}&lt;/I&gt;&lt;/PRE&gt;&lt;P&gt;I created in your model a process flow that creates a token when the box leaves the conveyer and then that token has a label assigned to it. The label contains the number of boxes left of the conveyer. You will notice there are two labels created that store the number of boxes left on the conveyer. This is so each of the above methods can be demonstrated. You will notice that the first method is not correct until the Table has all Type (1-10) in it. I kept this method included because it may help you with referencing the tables in other circumstances.&lt;/P&gt;&lt;P&gt;Here is the adjusted model for your reference.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/34403-wip-by-type.fsm" target="_blank"&gt;wip-by-type.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 20 Nov 2020 06:18:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-decision-based-on-current-content-s-item-type/m-p/13545877#M51616</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2020-11-20T06:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to make decision based on current content's item Type</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-decision-based-on-current-content-s-item-type/m-p/13545878#M51617</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/19536/chitraj.html" nodeid="19536"&gt;@Chitra J&lt;/A&gt;, was Jeanette F's answer helpful? If so, please click the red "Accept" button on 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 unaccept or comment back to reopen your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Nov 2020 20:54:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-decision-based-on-current-content-s-item-type/m-p/13545878#M51617</guid>
      <dc:creator>Ben_WilsonADSK</dc:creator>
      <dc:date>2020-11-27T20:54:29Z</dc:date>
    </item>
  </channel>
</rss>

