hi,
Is there an applicable exmaple for understanding the senddelayedmessage() command please?
thanx
hi,
Is there an applicable exmaple for understanding the senddelayedmessage() command please?
thanx
senddelayedmessage(Model.find(“Queue1“, 10, current, 1,2,3)
Object Queue1 receives the message in the On Message trigger. The message is delayed by 10 model run time units by default in seconds.
current is the sender. It is a reference to the object of a trigger
1 is message parameter 1, which is passed into the function msgparam(1) as a number value. Values 2 and 3 behave similar.
You should think about to use the flexscript class object method message, because the message parameters 1,2,3 are of datatype Variant there. This means you can send number, arrays and treenode references directly. In a senddelayedmessage command you must convert a treenode or object into a number by tonum(object or thing) and in the On Message trigger back to a treenode or Object by tonode( number value).
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