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?
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?
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.
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).
15 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