<?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 send items to Queue based on item type in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-send-items-to-queue-based-on-item-type/m-p/13599790#M93757</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;Please re-upload your images - we see nothing other than blank white space.&lt;/DIV&gt;</description>
    <pubDate>Thu, 18 Jan 2024 12:16:04 GMT</pubDate>
    <dc:creator>jason_lightfoot_adsk</dc:creator>
    <dc:date>2024-01-18T12:16:04Z</dc:date>
    <item>
      <title>How to send items to Queue based on item type</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-send-items-to-queue-based-on-item-type/m-p/13599789#M93756</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.2.4 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;DIV id="isPasted" style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;
  I am a beginner, and I am practicing the Flexsim model.
 &lt;/DIV&gt;
 &lt;DIV style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;
  &lt;BR /&gt;
 &lt;/DIV&gt;
 &lt;DIV style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;
  As a part of my regular practice, using Separator, I am trying to split the incoming item into two items ( Item 1 and Item 2 ) and set the label and color. Then, based on the item type, I would like to send the item Type 1 to Queue 1 and to Queue 2 for Item Type 2
 &lt;/DIV&gt;
 &lt;DIV style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;
  &lt;BR /&gt;
 &lt;/DIV&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image-5.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521940i61E6CF4EB666ED15/image-size/large?v=v2&amp;amp;px=999" role="button" title="image-5.png" alt="image-5.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;DIV style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;
  &lt;BR /&gt;
 &lt;/DIV&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="image-1.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521941i19AC21D70B328E3F/image-size/large?v=v2&amp;amp;px=999" role="button" title="image-1.png" alt="image-1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image-3.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521942i60FD7F3297F3F4FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image-3.png" alt="image-3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image-4.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521943i445100AC6D57376A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image-4.png" alt="image-4.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;DIV style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;
  &lt;BR /&gt;
 &lt;/DIV&gt;
 &lt;DIV style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;
  I am having difficulty setting the trigger at the exit; what "value" do I need to select, or am I missing something? I have added my port settings and trigger info for your reference.
 &lt;/DIV&gt;
 &lt;DIV style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;
  &lt;BR /&gt;
 &lt;/DIV&gt;
 &lt;DIV style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;
  Appreciate your help
 &lt;/DIV&gt;
 &lt;DIV style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;
  &lt;BR /&gt;
 &lt;/DIV&gt;
 &lt;DIV style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;
  Regards,
 &lt;/DIV&gt;
 &lt;DIV style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;
  Thillaiarasu
 &lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Jan 2024 12:15:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-send-items-to-queue-based-on-item-type/m-p/13599789#M93756</guid>
      <dc:creator>Thillaiarasu</dc:creator>
      <dc:date>2024-01-18T12:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to send items to Queue based on item type</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-send-items-to-queue-based-on-item-type/m-p/13599790#M93757</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Please re-upload your images - we see nothing other than blank white space.&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Jan 2024 12:16:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-send-items-to-queue-based-on-item-type/m-p/13599790#M93757</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-01-18T12:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to send items to Queue based on item type</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-send-items-to-queue-based-on-item-type/m-p/13599791#M93758</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;There are two events that can evaluate that there are more items by split mode:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Send to Port&lt;/LI&gt;&lt;LI&gt;On Exit&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;if you want to divert items an On Exit event is to late. You have to do it in function "Send To Port" in Output Properties pane.&lt;/P&gt;&lt;P&gt;Unfortunately there aren't any templates that allows you to manipulate labels. You have to write a source code script to assign label values right behind the header of this function source code.&lt;/P&gt;&lt;P&gt;AND you have to choose before you add this code your template, otherwise selecting a new template destroys any previously entered code.&lt;/P&gt;&lt;P&gt;AND this function gets executed for each leaving item once. This means after a first item has left this object any code will evaluate all staying items again. This said there are two scenarios in relation of counted item as staying inside of this object. Items are exiting instantly or items are waiting inside of object because they are transported or are blocked by next object entrance allowance.&lt;/P&gt;&lt;PRE&gt;forobjecttreeunder(current){ // recursively look for each object subnode at start node
a.Type = a.cnt; // "a" is found object of step 
a.cnt +=1; // intermediate count label at item, can be destroyed on exit
}
item.color = Color.byNumber(item.Type); &lt;/PRE&gt;&lt;P&gt;cnt label at item must be initialized on Entry with value of 1.&lt;/P&gt;&lt;P&gt;code to destroy label "cnt on exit:&lt;/P&gt;&lt;PRE&gt;item.attrs.labels.subnodes["cnt"].destroy();&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Jan 2024 16:07:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-send-items-to-queue-based-on-item-type/m-p/13599791#M93758</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2024-01-18T16:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to send items to Queue based on item type</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-send-items-to-queue-based-on-item-type/m-p/13599792#M93759</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Uploaded the image for your reference 
&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Jan 2024 16:16:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-send-items-to-queue-based-on-item-type/m-p/13599792#M93759</guid>
      <dc:creator>Thillaiarasu</dc:creator>
      <dc:date>2024-01-18T16:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to send items to Queue based on item type</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-send-items-to-queue-based-on-item-type/m-p/13599793#M93760</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thanks for the info and answer; I will check this. I am a beginner; can it be done in object mode without code?
&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Jan 2024 16:18:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-send-items-to-queue-based-on-item-type/m-p/13599793#M93760</guid>
      <dc:creator>Thillaiarasu</dc:creator>
      <dc:date>2024-01-18T16:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to send items to Queue based on item type</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-send-items-to-queue-based-on-item-type/m-p/13599794#M93761</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/43608/thillaiarasu.html" nodeid="43608"&gt;@Thillai&lt;/A&gt;, split mode in a separator object creates items. Then there are only a few events. And only function "send to port" is able to fetch created items first and tell instantly FlexSim where they must go. &lt;P&gt;You can set a separator to send items in round robin fashion. And you can set a label value by local variable called "port" on Exit. And you can set by this variable name also colors of leaving objects. This is a functionality where you do not need to write source code. But this is not what you requested to achieve. This result is similar. But it is a more like creating two items from one. You send one to output port one and a second to output port two. When they are leaving you tell them to record the output port number in a label and chooose by this output port number a color. It is more a passiv observation then really actively doing something.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Jan 2024 17:20:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-send-items-to-queue-based-on-item-type/m-p/13599794#M93761</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2024-01-18T17:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to send items to Queue based on item type</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-send-items-to-queue-based-on-item-type/m-p/13599795#M93762</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;If it's always 50/50 then you can just use round robin for the send to port and set the color and type on exit trigger based on the port.  Example model attached.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/78135-splitintotwowithcolor.fsm" target="_blank"&gt;SplitIntoTwoWithColor.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Jan 2024 13:27:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-send-items-to-queue-based-on-item-type/m-p/13599795#M93762</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-01-19T13:27:50Z</dc:date>
    </item>
  </channel>
</rss>

