<?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 set object flow in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-object-flow/m-p/13584821#M81958</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Good Day &lt;A rel="user" href="https://answers.flexsim.com/users/43160/delanojustine888.html" nodeid="43160"&gt;@Delano&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;What you can do is add a Decision Point before each of the Processors, and connect it to the respective ExitTransfer (connected to the Processor).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1713935076276.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523637i9F8AF417E6E5CE82/image-size/large?v=v2&amp;amp;px=999" role="button" title="1713935076276.png" alt="1713935076276.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the Source, create an On Creation Trigger (Data &amp;gt; Set Label and Color), with the following logic.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1713935466288.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523638iE0A44C14485E333F/image-size/large?v=v2&amp;amp;px=999" role="button" title="1713935466288.png" alt="1713935466288.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;current.stats.output.value % 7 &amp;lt; 3 ? 1 : 2

is the ternary operatior of (same as):

if(current.stats.output.value % 7 &amp;lt; 3) {
   return 1;
} else {
   return 2;
}&lt;/PRE&gt;&lt;P&gt;The first three items created in Source will have a label "Type" of value 1, and the next four items will have a label "Type" of value 2.&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="1713936045764.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523639i70B617A8A3969132/image-size/large?v=v2&amp;amp;px=999" role="button" title="1713936045764.png" alt="1713936045764.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For the 3 Decision Points, create an On Arrival Trigger (Send Item), and leave the first Decision Point's logic as default.&lt;/P&gt;&lt;P&gt;Change the &lt;EM&gt;Condition&lt;/EM&gt; in Send Item logic for the other 2 Decision Points as follows:&lt;/P&gt;&lt;PRE&gt;Decision Point near Processor B1:
item.Type == 1

Decision Point near Processor B2:
item.Type == 2&lt;/PRE&gt;&lt;P&gt;This ensures that for every 7 items created, the first 3 items (Type 1) will go to Processor B1, and the next 4 items (Type 2) will go to Processor B2.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 24 Apr 2024 05:29:40 GMT</pubDate>
    <dc:creator>xavier_low</dc:creator>
    <dc:date>2024-04-24T05:29:40Z</dc:date>
    <item>
      <title>How to set object flow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-object-flow/m-p/13584817#M81954</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 18.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi all Flexsim Senior,&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I have 3 processor (A,B1,B2), the processor can only process 1 obect at the same time. how to set the exit object from A the first 3 object in sequence will go to B1, the after 4 object in sequence will go to B2, and so on. 3 to B1, 4 to B2, 3 to B1, 4 to B2 ....&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Apr 2024 06:17:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-object-flow/m-p/13584817#M81954</guid>
      <dc:creator>delanojustine888</dc:creator>
      <dc:date>2024-04-23T06:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to set object flow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-object-flow/m-p/13584818#M81955</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;@Delano&lt;/P&gt;&lt;P&gt;Based on your description, I have created a simple model, with Processor A having two outputs to Processor B1 and Processor B2.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1713855714717.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523635i92160F88CF6B0272/image-size/large?v=v2&amp;amp;px=999" role="button" title="1713855714717.png" alt="1713855714717.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the properties of Processor A, I set the Send to Port logic to Conditional Port, with the condition as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1713855862080.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523636i13BF29216B31158C/image-size/large?v=v2&amp;amp;px=999" role="button" title="1713855862080.png" alt="1713855862080.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;current.stats.output.value % 7 &amp;lt; 3&lt;/PRE&gt;&lt;P&gt;What this condition does is that it will take the value of Processor A's output, modulo by 7 (getting the remainder of the division), and check if the remainder value is less than 3:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If the remainder value is less than 3, send the object to port 1 (Processor B1), else&lt;/LI&gt;&lt;LI&gt;Send the object to port 2 (Processor B2)&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Apr 2024 07:16:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-object-flow/m-p/13584818#M81955</guid>
      <dc:creator>xavier_low</dc:creator>
      <dc:date>2024-04-23T07:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to set object flow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-object-flow/m-p/13584819#M81956</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20240423-162609.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523641iB5D064740509339E/image-size/large?v=v2&amp;amp;px=999" role="button" title="20240423-162609.jpg" alt="20240423-162609.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Sorry, maybe my explanation is not detail enough, how about if i have conveyor connected the processor, Thanks~&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Apr 2024 09:28:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-object-flow/m-p/13584819#M81956</guid>
      <dc:creator>delanojustine888</dc:creator>
      <dc:date>2024-04-23T09:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to set object flow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-object-flow/m-p/13584820#M81957</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/43160/delanojustine888.html" nodeid="43160"&gt;@Delano&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Please be aware that your FlexSim version is past its supported lifecycle and is no longer eligible for paid technical support. For more information, please see the article "&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/articles/151702/end-of-life-notice.html" target="_new"&gt;Software Support Lifecycle&lt;/A&gt;".&lt;/P&gt;&lt;P&gt;Community members here may still be able to offer advice, but features have been added and bugs fixed in the time since your software version was released. You may find that an offered solution that works in more recent versions of the software is not compatible with your old version, or that a posted sample must be opened in a recent version.&lt;/P&gt;&lt;P&gt;Contact your &lt;A rel="noopener noreferrer" href="https://flexs.im/contact" target="_new"&gt;local FlexSim distributor&lt;/A&gt; for information on upgrading or getting a trial license.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Apr 2024 19:27:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-object-flow/m-p/13584820#M81957</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2024-04-23T19:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to set object flow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-object-flow/m-p/13584821#M81958</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Good Day &lt;A rel="user" href="https://answers.flexsim.com/users/43160/delanojustine888.html" nodeid="43160"&gt;@Delano&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;What you can do is add a Decision Point before each of the Processors, and connect it to the respective ExitTransfer (connected to the Processor).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1713935076276.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523637i9F8AF417E6E5CE82/image-size/large?v=v2&amp;amp;px=999" role="button" title="1713935076276.png" alt="1713935076276.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the Source, create an On Creation Trigger (Data &amp;gt; Set Label and Color), with the following logic.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1713935466288.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523638iE0A44C14485E333F/image-size/large?v=v2&amp;amp;px=999" role="button" title="1713935466288.png" alt="1713935466288.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;current.stats.output.value % 7 &amp;lt; 3 ? 1 : 2

is the ternary operatior of (same as):

if(current.stats.output.value % 7 &amp;lt; 3) {
   return 1;
} else {
   return 2;
}&lt;/PRE&gt;&lt;P&gt;The first three items created in Source will have a label "Type" of value 1, and the next four items will have a label "Type" of value 2.&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="1713936045764.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523639i70B617A8A3969132/image-size/large?v=v2&amp;amp;px=999" role="button" title="1713936045764.png" alt="1713936045764.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For the 3 Decision Points, create an On Arrival Trigger (Send Item), and leave the first Decision Point's logic as default.&lt;/P&gt;&lt;P&gt;Change the &lt;EM&gt;Condition&lt;/EM&gt; in Send Item logic for the other 2 Decision Points as follows:&lt;/P&gt;&lt;PRE&gt;Decision Point near Processor B1:
item.Type == 1

Decision Point near Processor B2:
item.Type == 2&lt;/PRE&gt;&lt;P&gt;This ensures that for every 7 items created, the first 3 items (Type 1) will go to Processor B1, and the next 4 items (Type 2) will go to Processor B2.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Apr 2024 05:29:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-object-flow/m-p/13584821#M81958</guid>
      <dc:creator>xavier_low</dc:creator>
      <dc:date>2024-04-24T05:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to set object flow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-object-flow/m-p/13584822#M81959</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/43160/delanojustine888.html" nodeid="43160"&gt;@Delano&lt;/A&gt;, was Xavier Low'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, 02 May 2024 20:51:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-object-flow/m-p/13584822#M81959</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2024-05-02T20:51:22Z</dc:date>
    </item>
  </channel>
</rss>

