<?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: Best Way to Dynamically Enable 1 or 2 Conveyor Stations in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/best-way-to-dynamically-enable-1-or-2-conveyor-stations/m-p/14126108#M101051</link>
    <description>&lt;P&gt;Oh... brilliant.&lt;/P&gt;&lt;P&gt;I honestly do not know how I did not realize that myself.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That simplifies the logic a lot and makes the code much cleaner.&lt;/P&gt;&lt;P&gt;Thank you very much again!&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2026 09:25:46 GMT</pubDate>
    <dc:creator>borja_lorenzo</dc:creator>
    <dc:date>2026-05-12T09:25:46Z</dc:date>
    <item>
      <title>Best Way to Dynamically Enable 1 or 2 Conveyor Stations</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/best-way-to-dynamically-enable-1-or-2-conveyor-stations/m-p/14126079#M101048</link>
      <description>&lt;P&gt;[FlexSim 25.2.0]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi everyone,&lt;BR /&gt;Following the advice from my previous post &lt;A title="Controlling Item Release Between a Decision Point and Two Conveyor Stations" href="https://forums.autodesk.com/t5/flexsim-forum/controlling-item-release-between-a-decision-point-and-two/m-p/14125935#M101043" target="_blank" rel="noopener"&gt;Controlling Item Release Between a Decision Point and Two Conveyor Stations&lt;/A&gt;&amp;nbsp;, I managed to correctly control the routing and reservation of items between a Decision Point and two downstream stations.&lt;/P&gt;&lt;P&gt;Now I would like to ask about the best way to dynamically switch between:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;using only 1 station,&lt;/LI&gt;&lt;LI&gt;or using both stations.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;To do this, I added a model parameter (`num_ST`) with possible values `1` or `2`.&lt;/P&gt;&lt;P&gt;I modified the `On Arrival` logic of the upstream Decision Point so that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;when the parameter is `1`, only Station1 is considered,&lt;/LI&gt;&lt;LI&gt;when the parameter is `2`, both stations are evaluated.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The logic works correctly, but I would like to know whether this approach is considered appropriate or efficient within FlexSim conveyor logic, or if there is a cleaner or more standard way to handle this type of dynamic configuration.&lt;/P&gt;&lt;P&gt;I attached a model with my current proposal.&lt;/P&gt;&lt;P&gt;Any feedback or best practices would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="borja_lorenzo_0-1778576501208.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1639212iBFE8E823A9608B80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="borja_lorenzo_0-1778576501208.png" alt="borja_lorenzo_0-1778576501208.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="borja_lorenzo_1-1778576540876.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1639214i5F7DF0C74ADB79A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="borja_lorenzo_1-1778576540876.png" alt="borja_lorenzo_1-1778576540876.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2026 09:10:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/best-way-to-dynamically-enable-1-or-2-conveyor-stations/m-p/14126079#M101048</guid>
      <dc:creator>borja_lorenzo</dc:creator>
      <dc:date>2026-05-12T09:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Best Way to Dynamically Enable 1 or 2 Conveyor Stations</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/best-way-to-dynamically-enable-1-or-2-conveyor-stations/m-p/14126095#M101050</link>
      <description>&lt;P&gt;That's a good solution. You can clean up the code a bit by using "Model.parameters.ParamName" to get the parameter value. And you can also use the value as the starting value of the counter in the for-loop, making it so you don't need the if-else-condition.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-05-12 111545.png" style="width: 537px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1639218iBB8D2942D9151372/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-05-12 111545.png" alt="Screenshot 2026-05-12 111545.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2026 09:19:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/best-way-to-dynamically-enable-1-or-2-conveyor-stations/m-p/14126095#M101050</guid>
      <dc:creator>FelixMoehlmann</dc:creator>
      <dc:date>2026-05-12T09:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Best Way to Dynamically Enable 1 or 2 Conveyor Stations</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/best-way-to-dynamically-enable-1-or-2-conveyor-stations/m-p/14126108#M101051</link>
      <description>&lt;P&gt;Oh... brilliant.&lt;/P&gt;&lt;P&gt;I honestly do not know how I did not realize that myself.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That simplifies the logic a lot and makes the code much cleaner.&lt;/P&gt;&lt;P&gt;Thank you very much again!&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2026 09:25:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/best-way-to-dynamically-enable-1-or-2-conveyor-stations/m-p/14126108#M101051</guid>
      <dc:creator>borja_lorenzo</dc:creator>
      <dc:date>2026-05-12T09:25:46Z</dc:date>
    </item>
  </channel>
</rss>

