Access to state of a location in people object

Access to state of a location in people object

miyeDP27D
Contributor Contributor
43 Views
5 Replies
Message 1 of 6

Access to state of a location in people object

miyeDP27D
Contributor
Contributor

[ FlexSim 23.1.2 ]

Hello, I like to ask how do I access the state of the location object to use it in decide activity? I tried Model.find("Plane1/DrinksStation").as(Object).stats.state().value == 1 but it does not work. I tried calling it with the stringvalue, but it still doesnt work. Please can anyone help?

1687871818879.png

0 Likes
Accepted solutions (1)
44 Views
5 Replies
Replies (5)
Message 2 of 6

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

It looks like you need to pass in the state profile rank into the state() method - so for Availability that would be 1.

0 Likes
Message 3 of 6

miyeDP27D
Contributor
Contributor

Could you explain further what do you mean by that? Do you mean Model.find("Plane1/DrinksStation").as(Object).stats.state(1).value like this?

0 Likes
Message 4 of 6

jason_lightfootVL7B4
Autodesk
Autodesk
Exactly - here's the user manual reference.
0 Likes
Message 5 of 6

julie_weller
Not applicable

Hi @mm_y_2406, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes
Message 6 of 6

miyeDP27D
Contributor
Contributor
This did not work with the wait for event - state change but I created another post and was answered in there instead
0 Likes