AnswerHub Upload Issue
Our AnswerHub community currently has a bug that prevents you from attaching your model or other files to your questions. AnswerHub is aware of this issue and they are working on a fix. Until we receive their patch, you can upload your models and other files to FlexSim's file share site. Include the file name in your question so that we know which upload to reference.

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.

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.