question

Proxima avatar image
0 Likes"
Proxima asked Julie Weller commented

Move in units of more than a few people in healthcare

restaurant_test.fsmI want to make a restaurant environment through healthcare, and I want to know if there is any other way to make guests move to the seating area together as a single or a group of more than a few, and even if the seating area is not full, it will not Will let the rest of the people join in and instead move the next group of guests to the next group seating area。

At present, I only think of the method of presetting the location through Arrivals. Is there any other more intelligent method?


FlexSim 23.1.2
processflowhealthcare
restaurant-test.fsm (73.2 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.

Julie Weller avatar image Julie Weller commented ·

Hi @Proxima, was Jeanette F's answer helpful? If so, please click the "Accept" button at the bottom of their 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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jeanette F avatar image
2 Likes"
Jeanette F answered Jeanette F commented

Hello @Proxima,

I changed your process flow so that there is a lead person in the group. This person follows the main flow and all others members of the party are in a label on the lead person. This makes it easier to reference those people when walk activities are needed.

The other significant thing is that I used the multiloacation to create the tables and chairs. They have a special option on them to select call acquire as single unit. This allows a party to acquire the whole table and chairs.

1686084704649.png

They acquire activity looks at some values to make sure its selects a table that best accommodates the size of the party. These values were added as an expression field with a custom code into the Locations list.

1686084697310.png

1686084689220.png

restaurant-test_4.fsm

Please checkout the model for more details. This model is not perfect. There are definitely more things you can add to make the transitions more realistic but this gives you an idea of how to use the labels array and subflows to move multiple people.


1686084689220.png (143.1 KiB)
1686084697310.png (44.7 KiB)
1686084704649.png (13.3 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hello @Proxima,

I forgot to mention a bug that I found. The bug is that when you select the Multilocation objects and select the Acquire as single unit will throw an error.

I fixed in the model I sent you. I sent the bug into the dev team and it has been fixed for the next bug release. I can share with you how to fix it in any model that you work with until the big fix release.

Open your Global preferences, go to the customize toobar tab, and add the Build FlexScript. This will add a button to the tool bar that we will use after we change some code.

Open your model tree and paste the following in the Tree Navigation. This will get you to the location of the issue.

VIEW:/standardviews/modelingutilities/QuickProperties>variables/propertiesPanels/MultiLocation/MultiLocation/AcquireAsSingleUnit>eventfunctions/OnPress

Then on line 13 change it to look like the following

setvarnum(obj, "acquireAsSingleUnit", val);

Then press the build flexscript button

1 Like 1 ·

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.