<?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: Split item based on multiple labels in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/split-item-based-on-multiple-labels/m-p/13529873#M38919</link>
    <description>&lt;P&gt;Is this what you are looking for? I disconnected the sinks, then created a certain amount of objects based on the label into each sink specified by the label. &lt;A id="12617" href="https://answers.flexsim.com/storage/attachments/12617-12616-split-based-on-multiple-labels.fsm"&gt;12616-split-based-on-multiple-labels.fsm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jun 2018 14:10:22 GMT</pubDate>
    <dc:creator>joshua_s</dc:creator>
    <dc:date>2018-06-22T14:10:22Z</dc:date>
    <item>
      <title>Split item based on multiple labels</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/split-item-based-on-multiple-labels/m-p/13529872#M38918</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 17.1.6 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;A id="12616" href="https://answers.flexsim.com/storage/attachments/12616-split-based-on-multiple-labels.fsm"&gt;split-based-on-multiple-labels.fsm&lt;/A&gt;Model description:&lt;/P&gt;
&lt;P&gt;My line produces parts in batches of 100 items.&lt;BR /&gt;Multiple processors in line that produce parts and based on yield generate NOK parts and OK parts. To reduce computing power 1 flow item represents 100. At the end of the line I want to split the NOK items into the NOK box at the machine. At each processor I have code that asserts two labels, one for the amount of OK parts are remaining and one for the amount of NOK parts created at that process step.&lt;/P&gt;
&lt;P&gt;So at the separator I receive a flowitem that has for instance the labels: OrderSize =100, OK = 83, NOK_Processor1 = 6, NOK_Processor2 = 11.&lt;/P&gt;
&lt;P&gt;Now I want the separator to split that 1 item into 83 OK, 6 NOK_Processor1 and 11 NOK_Processor2.&lt;/P&gt;
&lt;P&gt;The 3 different components need to send to different sink nodes afterwards.&lt;/P&gt;
&lt;P&gt;Can anyone help with this?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 08:51:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/split-item-based-on-multiple-labels/m-p/13529872#M38918</guid>
      <dc:creator>thomas_h3</dc:creator>
      <dc:date>2018-06-22T08:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Split item based on multiple labels</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/split-item-based-on-multiple-labels/m-p/13529873#M38919</link>
      <description>&lt;P&gt;Is this what you are looking for? I disconnected the sinks, then created a certain amount of objects based on the label into each sink specified by the label. &lt;A id="12617" href="https://answers.flexsim.com/storage/attachments/12617-12616-split-based-on-multiple-labels.fsm"&gt;12616-split-based-on-multiple-labels.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 14:10:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/split-item-based-on-multiple-labels/m-p/13529873#M38919</guid>
      <dc:creator>joshua_s</dc:creator>
      <dc:date>2018-06-22T14:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Split item based on multiple labels</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/split-item-based-on-multiple-labels/m-p/13529874#M38920</link>
      <description>&lt;P&gt;Hi Joshua,&lt;/P&gt;
&lt;P&gt;Thanks for your reply!&lt;/P&gt;
&lt;P&gt;The process flow solution gets the job done, however in my model I have additional labels on my flowitem (approximately 125 in total), which i do not want deleted. Is there a way to append the labels of the item to be splitted to the OK item?&lt;/P&gt;
&lt;P&gt;Do you perhaps also have a solution that does not make use of the Process flow functionality?&lt;/P&gt;
&lt;P&gt;Something I tried was to not have the process flow create the OK items, but let the separator take care of this based on the OK label, however this gives me the following error for each item processed:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;time: 644615.052902 exception: Exception Caught in FixedResource::getItemInfo(treenode flowitem) &lt;/LI&gt;&lt;LI&gt;time: 644615.052902 exception: Exception Caught in FixedResource::setItemState(treenode flowitem, int state) &lt;/LI&gt;&lt;LI&gt;time: 644615.052902 exception: Exception Caught in FixedResource::releaseItem(treenode item) object: /WIP_PA &lt;/LI&gt;&lt;LI&gt;time: 644615.052902 exception: Exception Caught in Rack::onTimerEvent(treenode involved, int code, char *datastr) object: /WIP_PA &lt;/LI&gt;&lt;LI&gt;time: 644615.052902 exception: Exception Caught in ObjectFunction251__project_library_FlexSimObject_behaviour_eventfunctions_OnTimerEvent object: /WIP_PA class: /WIP_PA &lt;/LI&gt;&lt;LI&gt;time: 644615.052902 exception: Exception caught in TreeNode::receivemessage() &lt;/LI&gt;&lt;LI&gt;time: 644615.052902 exception: Exception caught in Executive::processeventinlist(). Throwing. &lt;/LI&gt;&lt;LI&gt;time: 644615.052902 exception: Exception caught in Executive::steptotime(). Throwing. &lt;/LI&gt;&lt;LI&gt;time: 644615.052902 exception: Exception caught in Executive::tick(). Throwing. &lt;/LI&gt;&lt;LI&gt;time: 644615.052902 exception: int runthemessageloop() #4 exception: Executive::instance.tick(); &lt;/LI&gt;&lt;LI&gt;time: 644615.052902 exception: int runthemessageloop() #6&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;WIP_PA is the rack to which I am sending my OK parts. (in the example model this is the sink OK&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 11:15:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/split-item-based-on-multiple-labels/m-p/13529874#M38920</guid>
      <dc:creator>thomas_h3</dc:creator>
      <dc:date>2018-06-26T11:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Split item based on multiple labels</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/split-item-based-on-multiple-labels/m-p/13529875#M38921</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/5995/thomash3.html" nodeid="5995"&gt;@Thomas H3&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Process Flow will be a big advantage with this model, and with many future projects you may have. Why I say this is to accomplish what you want you would need to write several lines of code to accomplish what a few drag and drop activities in process flow can do. I can still help you with the code part, but I'm a little confused as to why you want all those labels to stay on the items since they are going directly to a sink and being destroyed. Also a separator will only split items that it has, it doesn't create new items, and in your case I don't necessarily see the reason for your separator object besides using it as a basic processor. &lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 14:42:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/split-item-based-on-multiple-labels/m-p/13529875#M38921</guid>
      <dc:creator>joshua_s</dc:creator>
      <dc:date>2018-06-26T14:42:55Z</dc:date>
    </item>
  </channel>
</rss>

