question

moises10rocha avatar image
0 Likes"
moises10rocha asked moises10rocha commented

Error in Create Patient

I am unable to identify and fix this error in the model. Can anybody help me ? Another question, I would like to know if in version 2023.2 of Flexsim there is a floor plan available?1696903269176.pngExemplo Flexsim HC.fsm

FlexSim 23.2.0
healthcareflexsim healthcarecreaate patient
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
0 Likes"
Felix Möhlmann answered moises10rocha commented

You directly typed in "Random Person" into the Patient field. The field expects a valid pointer to a object to create as a return value. If you choose one of the pick options, the program automatically generates code that also includes mark up text that later appears in the GUI (such as "Random Person"). But you can never expect that typing the name of a pick option into a field will work.

To get the functionality of "Random Person" (which isn't one of the offered options for some reason), then choose the "By Percentage" option and fill it in as follows. (The "Male Person" and "Female Person" descriptors are not strictly necessary.)

1696930297596.png


1696930297596.png (19.5 KiB)
· 7
5 |100000

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

moises10rocha avatar image moises10rocha commented ·

I made these changes but it still shows an error

1696936012706.png

0 Likes 0 ·
1696936012706.png (84.0 KiB)
Felix Möhlmann avatar image Felix Möhlmann moises10rocha commented ·

There are two default objects missing from the Flow Item Bin (Circle and Plane). Did you remove those?

That changes the index you need to use to refer to the Man/Woman.

capture1.png

0 Likes 0 ·
capture1.png (29.8 KiB)
moises10rocha avatar image moises10rocha Felix Möhlmann commented ·

Thanks Felix, now it works!!!

0 Likes 0 ·
Lucas Matheus avatar image Lucas Matheus moises10rocha commented ·

The "value" field must be the index from the Flow Item Bin.

1696955506113.png


What do you mean by "floor plan available"? You can change de floor plan going to "Floor Plans" and then select the file path.

1696955834253.png


1696955928682.png

To see more: Importing CAD Drawings and Floor Plans (flexsim.com)


0 Likes 0 ·
1696955506113.png (105.5 KiB)
moises10rocha avatar image moises10rocha Lucas Matheus commented ·

Thanks!!! Lucas, would you have this floor plan file exposed in the tutorial? I can't find it in the Flexsim folder

0 Likes 0 ·
Show more comments