question

Prateekq4 avatar image
0 Likes"
Prateekq4 asked Julie Weller commented

Identifier for port assignment of item

So my model involves a decision point in which I an sending items on a conveyor to 3 different processors along the length of the conveyor. I want to know that after my items cross the decision point, is there a way to pull data on which port my items have been assigned or sent to.

FlexSim 22.2.4
decision points
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Julie Weller avatar image Julie Weller commented ·

Hi @Prateekq4, was Felix Möhlmann'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.

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.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

You can get an item's current destination in the conveyor system through the following expression (only works if item refers to a flow item on a conveyor):

Object item;
Object destination = item.up.as(Conveyor).itemData[item].destination;
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.