question

Erik Gerritse avatar image
0 Likes"
Erik Gerritse asked Erik Gerritse commented

view contents of a zone

Hi all,

I'd like to reference the list of tokens currently in a process flow zone and a partition of a zone in flexscript code. How can I do this?

The reason I want to do this is to write 'if/else' type code conditional on whether certain types of tokens are in the zone or zone partition.

FlexSim 18.0.0
process flowzone
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

·
Raja Sekaran avatar image
2 Likes"
Raja Sekaran answered Erik Gerritse commented

Hi @Erik Gerritse

Use the below one to get the content of the particular partition

getstat(getactivity(processFlow, "Zone"), "PartitionContent", STAT_CURRENT, 0, partitionID);

I hope this works for you.

Thanks.


support.fsm (16.4 KiB)
· 1
5 |100000

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

Erik Gerritse avatar image Erik Gerritse commented ·

cheers, exactly what I was looking for!

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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