Gets stats of Decision point and Station

Gets stats of Decision point and Station

selvantamil674
Enthusiast Enthusiast
37 Görüntüleme
1 Yanıt
Mesaj 1 / 2

Gets stats of Decision point and Station

selvantamil674
Enthusiast
Enthusiast

[ FlexSim 23.1.1 ]

Is there is any way to Get the Stats like subnodes.length of the conveyor's Decision point and Station, i could not get the stats if i use Model.find("Station1").subnodes.length.

0 Beğeni
Kabul edilen çözümler (1)
38 Görüntüleme
1 Yanıt
Reply (1)
Mesaj 2 / 2

moehlmann_fe
Enthusiast
Enthusiast
Kabul edilen çözüm

Getting subnodes of a Decision Point or Station should still work. But those objects generally do not have any subnodes, if you didn't place them there while building the model.

Statistics such as input and output are accessed through the "stats" property like with other objects.

https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/Object.html#P...

To check whether there currently is an item waiting at the DP or Station you can use the following:

Object dp = ...;
Object item = dp.as(Conveyor.DecisionPoint).activeItem;
if(objectexists(item))  {
    // There is an item at the DP
}
0 Beğeni