Referencing the Conveyor a Decision Point is on from Process Flow

Referencing the Conveyor a Decision Point is on from Process Flow

eamon_o
Not applicable
16 Views
2 Replies
Message 1 of 3

Referencing the Conveyor a Decision Point is on from Process Flow

eamon_o
Not applicable

[ FlexSim 22.2.4 ]

I want to reference the conveyor a DP is placed on from its object process flow. i.e. 'wait for event' current.myConveyor: onExit.

1680911590326.png

In the past I've solved this by referencing current.centerObjects[1] and just center connecting each DP to its conveyor. This doesn't scale well though since I have to do that manually for each one.

Thanks in advance. See below for the closest I've managed to get so far.

Did some looking into the treenode, and I can access conveyorPoint variable which sees the conveyor the DP is on.

1680911240784.png

1680910657159.png

However, when I set a debug label to that value, I don't get something very useful, and can't figure out how to climb back up that path to the StraightConveyor7.

1680910999880.png

1680911006617.png

0 Likes
Accepted solutions (1)
17 Views
2 Replies
Replies (2)
Message 2 of 3

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

You use ownerobject() on that value to get to the conveyor.

But the wait for event activity has a conveyor field to allow you to set a token label with that value directly.

1681044992821.png


If you're using an object flow where the decision point is 'current', the conveyor is simply:

current.as(Conveyor.DecisionPoint).conveyor


0 Likes
Message 3 of 3

eamon_o
Not applicable

Perfect! The code line is exactly what I'm looking for. I'll probably extrapolate this in the future too. Thanks Jason 🙂

0 Likes