question

Cristhian G avatar image
0 Likes"
Cristhian G asked Cristhian G commented

How change patient speed depend of their label ?

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 i dont know how link the magnitude of speed colum with the speed of the token in the 3D model

FlexSim 21.0.2
flexsim 21.0.2people settings
screenshot-280.png (34.6 KiB)
screenshot-281.png (11.8 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.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

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 0 ·

1 Answer

·
Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered Cristhian G commented

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


setspeed.fsm (41.0 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.

Cristhian G avatar image Cristhian G commented ·

thank you , it help me a lot.


0 Likes 0 ·

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.