<?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: Matching Labels with Source Batching in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/matching-labels-with-source-batching/m-p/13595349#M90271</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 Thank you
&lt;/DIV&gt;</description>
    <pubDate>Mon, 24 Jun 2024 19:07:15 GMT</pubDate>
    <dc:creator>kyle_schultzSB6JD</dc:creator>
    <dc:date>2024-06-24T19:07:15Z</dc:date>
    <item>
      <title>Matching Labels with Source Batching</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/matching-labels-with-source-batching/m-p/13595347#M90269</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 24.0.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I am currently replicating a process where deliveries arrive in batches. I am using the source batching feature to set the quantities in each delivery (quantities in each delivery are the same). The items in each delivery are the same but the item type is unknown until it arrives. The items then are palletized (Combiner) and sent to the next step based on the item type. I am trying to assign labels to the batch of pallets so all pallets in each batch have matching labels but when using the assign label function it is assigning different labels for each item in the batch. How can I get each batch the have matching labels based on a random delivery schedule? Model is attached below. &lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/83981-flexsim-model.fsm" target="_blank"&gt;FlexSim Model.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Jun 2024 14:28:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/matching-labels-with-source-batching/m-p/13595347#M90269</guid>
      <dc:creator>kyle_schultzSB6JD</dc:creator>
      <dc:date>2024-06-24T14:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Matching Labels with Source Batching</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/matching-labels-with-source-batching/m-p/13595348#M90270</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hello &lt;A rel="user" href="https://answers.flexsim.com/users/44082/kyleschultz.html" nodeid="44082"&gt;@Kyle S&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You can set a label on the source that sets the Type label once every batch size and all the flow items of that batch receive the same type label. &lt;/P&gt;&lt;PRE&gt;&amp;nbsp;{ 
/**Custom Batch Set Label and Color*/

int batchSize = 5;
int curItemNum = Math.fmod(current.stats.output.value+1, batchSize);
Object involved = item;
string labelname = "Type";

if(curItemNum == 1){
current.f_curlabel = duniform(1, 4, getstream(current));
}

Variant value = current.f_curlabel;
involved.color = Color.fromPalette(value);
involved.labels.assert(labelname).value = value;

} 
&lt;/PRE&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/83986-flexsim-model-1.fsm" target="_blank"&gt;flexsim-model_1.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Jun 2024 18:31:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/matching-labels-with-source-batching/m-p/13595348#M90270</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2024-06-24T18:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Matching Labels with Source Batching</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/matching-labels-with-source-batching/m-p/13595349#M90271</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thank you
&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Jun 2024 19:07:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/matching-labels-with-source-batching/m-p/13595349#M90271</guid>
      <dc:creator>kyle_schultzSB6JD</dc:creator>
      <dc:date>2024-06-24T19:07:15Z</dc:date>
    </item>
  </channel>
</rss>

