when using the moveobject command

when using the moveobject command

enrique.elizaga
Advocate Advocate
109 Views
3 Replies
Message 1 of 4

when using the moveobject command

enrique.elizaga
Advocate
Advocate

[ FlexSim 22.1.2 ]

I am moving objects from one queue to another in a processflow using code.

If I use the moveobject command, do I need to add any other instructions to not mess up the queue´s events like transport etc?

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

moehlmann_fe
Enthusiast
Enthusiast

If the queue does not have any output connections, then no. Generally the queue should not have any pending events that directly reference the item after the 'Send to Port' logic has fired.

If the queue does send the items somewhere on its own and a task executer is on the way to pick up the item, then moving the item will not stop this task. The task executer would still move to the queue and the item will be teleported back to them.

You would need to find a way to identify the correct task executer and manually finish their task sequence. I would generally try to avoid mixing process flow and 3d-logic like this though (where a task might be triggered/controlled by either).

0 Likes
Message 3 of 4

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

You need to account for the queue's capacity if you don't want to breach it.

The standard code will be looking at the content of the queue and the variable 'nroftransportsin'. If you are mixing your moveobject commands with other processes that are transporting in then you should also account for those if you don't want to go over the capacity. If capacity is unconstrained then it's not a problem.

0 Likes
Message 4 of 4

enrique.elizaga
Advocate
Advocate
hank you, this is very informative as well.
0 Likes