question

Chaochiang C avatar image
0 Likes"
Chaochiang C asked Felix Möhlmann answered

how do I create different type but each type are same color clothe patients?

how do I create different type but each type are same color clothe patients?擷取.png




FlexSim 21.0.3
color changecreate patientrandom apperance
擷取.png (32.2 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 clothes the patients wear and their color is decided in the "Random Appearance" activity in the "Arrivals Flow". To have the color depend on the type label you can use "Color.byNumber(token.Type)" when setting the object color.

You can use the same for the shirt and pants color or enter -1, which means the object color will be used.

1641279780074.png

PatientColorByType.fsm


5 |100000

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