question

TYLin avatar image
0 Likes"
TYLin asked Felix Möhlmann answered

Call State Pie Flow

I want to try this topic function

https://answers.flexsim.com/questions/66644/state-chart-for-groups.html

but i can't call State Pie Flow in version 22.2

1663815176471.png

how can I call this process flow in version 22.2 ,Thanks

FlexSim 22.2.0
proces flowstate chartstate pie
1663815176471.png (2.9 KiB)
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

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered

The state pie flow is not available anymore as the statistics collector and the way many charts work was overhauled since the 19.0 version. You can still get the same results with relatively few tweaks to the new structure.

Installing the components of the state pie chart in 22.2 creates to objects: The "State Objects" group and the "State Collector" statistics collector. For the solution below I assume that the "State Objects" only contains groups and no single objects.

1663833471002.png

In the statistics collector, open the code editor for the "Row Value" option. The changes are marked in the screenshot below. Instead of converting the state objects group into a single array right away, the code now loops through each subgroup individually.

1663833634814.png1663834386520.png

In the columns tab, you can now add a "Group" column and read the data directly from the row value.

1663833715176.png

You can then use the same calculated tables as in the other post to group the statistics.

1663833795337.png

stateByGroup_fm.fsm


1663833471002.png (11.7 KiB)
1663833634814.png (4.6 KiB)
1663833715176.png (22.6 KiB)
1663833795337.png (77.4 KiB)
1663834386520.png (61.1 KiB)
statebygroup-fm.fsm (658.1 KiB)
5 |100000

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