question

Bryan Suharik avatar image
1 Like"
Bryan Suharik asked Ryan Clark commented

Delete label on exit trigger?

Hello...is it possible to delete all labels in an item leaving a queue?

What would the code look like?

Thanks!

labels
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

Arun Kr avatar image
3 Likes"
Arun Kr answered Ryan Clark commented

Hi @Bryan Suharik,

In the exit trigger of the queue, use the following code.

  1. // In FlexSim 2016 and earlier:
  2. clearcontents(labels(item));
  3.  
  4. // Using dot syntax in FlexSim 2017 and later
  5. labels(item).subnodes.clear();

Regards,

Arun KR

· 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.