senddelayedmessage(outobject(current, 1),0,current,4,0,0);
senddelayedmessage(outobject(current, 1),0,current,4,0,0);
senddelayedmessage: calls the onmessage trigger of an object after a certain delay.
outobject(current, 1): is the toobject. The object which onmessage trigger is triggered. In this case it is the object connected to the output port 1 of the current object (current is the object where this code is written on).
0: is the delay time. In this case 0 but if you enter 10, the onmessage trigger of the outobject(current,1) is triggered in 10 seconds
current: this is the fromobject or the object where the message is send from
4, 0, 0: are parameters you can use to pass information to the onmessage trigger.
Please also check the Command help of flexsim or senddelayedmessage on answers.flexsim.com
12 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