How change patient speed depend of their label ?

How change patient speed depend of their label ?

cristhian_g
Not applicable
120 Views
3 Replies
Message 1 of 4

How change patient speed depend of their label ?

cristhian_g
Not applicable

[ FlexSim 21.0.2 ]

i am new using flexsim and i have some troubles to set labels for my patients , i have 4 types of patients each one with different speed , but i dont know how put this information in my 3D model 36572-screenshot-280.pngi dont know how link the magnitude of speed colum with the speed of the token in the 3D model 36573-screenshot-281.png

0 Likes
Accepted solutions (1)
121 Views
3 Replies
Replies (3)
Message 2 of 4

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

You can use the setProperty() method to set the speed of a person to some value:

Object patient = token.Patient;
patient.setProperty("MaxSpeed", patient.Speed);

See the attached model for an example.

SetSpeed.fsm



Matthew Gillespie
FlexSim Software Developer

Message 3 of 4

Ben_WilsonADSK
Community Manager
Community Manager

Hi @Cristhian G, was Matthew Gillespie's answer helpful? If so, please click the red "Accept" button at the bottom of his 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 unaccept and comment back to reopen your question.

0 Likes
Message 4 of 4

cristhian_g
Not applicable

thank you , it help me a lot.


0 Likes