What if the "port by case" operation does not fit on the screen?
Is there any way to operate it?
What if the "port by case" operation does not fit on the screen?
Is there any way to operate it?
If you have that many cases I would recommend using a different method. Here are some options:
Use a Table
You could create a table with one row per type and the port to be used by that type. Then you would just look up the value from the table like this:
Table("Ports")[item.Type][1]
Write some if statements
Open the code editor and use if statements to return the right port value.
if (item.Type <= 10) return 1; else if(item.Type > 10 && item.Type <= 20) return 2; else return 3;
Use a mathematical function
It's possible the port number can be derived from the item's Type using a mathematical function. For example, if Type 1-10 use port 1, Type 11-20 use 2, and Type 21-30 use 3 you could write this function:
Math.ceil(item.Type / 10)
Here's an example model with 3 routing queues using a different one of the above suggestions.
12 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved