question

Alessio Merlo avatar image
0 Likes"
Alessio Merlo asked Matthew Gillespie commented

destroymessageevents command

Hi community,

today I run into an issue with destroymessageevents command.

The sequence to reproduce it is simple.

1. I created a delayed message with the code

  1. Object s = Model.find("Source1);
  2.  
  3. s.message(10,s,100);

2. I executed the code to remove the message from the event list

  1. Object s = Model.find("Source1");
  2. destroymessageevents(s,0,s);

After executing the script, nothing happens!

Can someone help me? I attached the model.

FlexSim 20.0.2
bug reportmessagesdestroymessageevent
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered Matthew Gillespie commented

This is a bug. The message() method isn't setting the event code of the event it creates. Thanks for pointing it out. We'll have this fixed for the next bug fix release.

The senddelayedmessage() command works fine if you need a workaround.

· 6
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.