question

Maryam H2 avatar image
0 Likes"
Maryam H2 asked Maryam H2 commented

Change Visual: Gowning

Hi,

I want to change the visual of my operator like what is stated in this post before: https://answers.flexsim.com/questions/115720/put-patient-gowns-on-patients-after-changing.html

I want the operator to wear a gown without creating a gender label since it doesn't matter if they are male or female, and the gown would look the same for both.

How can I find the index number in the Change Visual activity?

gowning_operator.fsm

FlexSim 23.1.2
change visualindexoperator gown
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

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered Maryam H2 commented

First of all, the default operator shapes don't have the option to wear a gown. You need to have an operator using the Female Person/Staff or Male Person/Staff shape.

1689963043756.png

Second, it does matter which of those two shapes the operator is using because the gown is on a different index for each one. It's index 10 for the male shape and index 8 for the female shape.

1689963239103.png

But you don't have to add a gender label. You could set the index to be this one line of code:

shape(person).value.includes("Male") ? 10 : 8

So if the operator's shape is the male shape it uses index 10, otherwise it uses index 8.


1689963043756.png (9.2 KiB)
1689963239103.png (18.3 KiB)
· 8
5 |100000

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

Maryam H2 avatar image Maryam H2 commented ·

Thanks @Matthew Gillespie

It works, I just wonder since it looks more like a dress on an operator, is there anyway to do the same thing but with scrubs?

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Maryam H2 commented ·
Yes, Scrubs is just one up from the gown. So index 9 for the male shape and index 7 for the female shape.
0 Likes 0 ·
Maryam H2 avatar image Maryam H2 Matthew Gillespie ♦♦ commented ·
got it, forgot to change the index. thanks!
0 Likes 0 ·
Show more comments