This is for a dynamic routing / job shop model. Routing data is stored to the flowitem on a bundle label, Routing. Another label, stepRow, indicates which routing is next. The stepRow label is 1 on flowitem creation to begin with the first routing, and as each routing process is complete the stepRow label is incremented. The Routing label looks like this:
Process |
Process Time |
200 | 1.5 |
400 | .5 |
100 | 22 |
To push to a list with the next process as an expression, I have tried the following with some minor variations:
(1) return value.Routing[value.stepRow][1]; (2) return value.labels("Routing")[value.stepRow][1]; (3) Object thisItem = value.as(Object); Table routing = thisItem.Routing.as(Table); return routing[value.stepRow][1]; //also with .value
These give either type mismatches (value is Variant by default) or "Unknown command labels being called."
Machines in the model will pull from the list where a flowitem's next process matches its own, and will likewise get process times from the Routing label.