Hi I am trying to release an area with some delay. Error occurred. It seems that after the delay, it has no reference of the item. How should I modify it?
Hi I am trying to release an area with some delay. Error occurred. It seems that after the delay, it has no reference of the item. How should I modify it?
The header of the trigger option gets a reference to the conveyor item representation of the triggering item. If the item was already destroyed when the callback to release/exit the area happens the invalid reference error happens.
Releasing the area does not require this reference, so if you do not intend to use any other pick options in this trigger, then you can simply comment out the fourth line of the header. Otherwise you can adjust it to the following to prevent the error from popping up.
Conveyor.DecisionPoint current = ownerobject(c);
Object item = param(1); Conveyor conveyor = param(2); Conveyor.Item conveyorItem; if(objectexists(item)) { conveyorItem = conveyor.itemData[item]; }
14 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