Task 1.6 - Add a Custom Location Object

Task Overview

In this tutorial task, you'll learn how to add a custom location object by creating a meeting place where two staff members can consult with each other.

Step 1 Add a Custom Location Object

In this step, you'll create a custom location object: a meeting place where two staff members can consult with each other. Visually, it will look like a circle on the floor:

To add this custom location object:

  1. Make sure the 3D model is currently the active window and that you are in the FlexSim Healthcare environment. In the left pane, click the Library tab to open the Library.
  2. In the Library under the Healthcare group, click the Prop object to open a menu of location objects. Drag a Cylinder object (under Basic Shapes) into the model. (Use the image in the introduction for this step as a guide for placing objects in the model.)
  3. Click Cylinder1 to bring up its properties on the Right.
  4. In the box at the top of the window, rename the cylinder MeetingPlace.
  5. Under the Visuals section, change the Size properties as follows:
    • X-Size: 2.00
    • Y-Size: 2.00
    • Z-Size: 0.01

In the next step, you'll learn how to add enter instructions for the custom object you just added to the model.

Step 2 Create Enter Instructions

When you're working with custom location objects, you need to assign the object's enter and/or exit instructions. These instructions tell the object which animations it should apply when it is interacting with patients and staff. You can assign different instructions to different types of FlexSim Healthcare objects if needed.

For the meeting place object, you'll create two sets of instructions: one for the first staff member that enters the object and one for the second staff member. You'll create enter instructions that will tell each staff member where to stand and will animate them talking to each other. This animation will loop continuously until the staff members leave the object. The meeting place object won't need any exit instructions, so you won't add any at this time.

To create the enter instructions for this custom location object:

  1. Ensure that the MeetingPlace object is still highlighted. In Properties, under the Enter/Exit Instruction Instructions section, click the Edit Enter Instruction button to bring up the Enter Instructions window. Confirm that the Template menu is set to Custom.
  2. In the Role list on the left, click the Add button to add a new role to the list.
  3. In the Name box, delete the text and type Staff.
  4. Click the arrow next to the Condition box to open a menu and select Is an Operator.
  5. Back by the Role list on the left, click the arrow next to the Add button to open a menu. Select Add Sub Role.
  6. In the Name box, delete the text and type First.
  7. Click the arrow next to the Condition box to open a menu and select First to Arrive.
  8. Click the Apply button to save these changes.
  9. Next to the Instructions box, click the Add button to open a menu. Select Walk to Location to add this instruction.
  10. Repeat the previous step to add two more instructions:
    • A Set Rotation instruction
    • A Play Animation instruction
  11. Click the arrow next to the Play Animation instruction box to open a menu. Point to Person Animations, then select Stand.
  12. At the top of all the instructions, check the Planner Person checkbox. You'll see a person appear on the MeetingPlace shape in the 3D model.
  13. Reposition the Planner Person so that it is on one side of the MeetingPlace shape.
  14. Click the Apply Planner Position button next to the Walk to Position instructions to change the offsets.
  15. In the Role list, confirm that the First role still selected. Then click the Duplicate button to make a copy of this role.
  16. In the Name box, delete the text and type Second.
  17. In the Condition box, type roleRank == 2.
  18. Click the Apply button to save these changes.
  19. Click the arrow next to the Play Animation instruction box to open a menu. Point to Person Animations, then select Shrug.
  20. Reposition the Planner Person so that it is on the opposite side of the MeetingPlace shape.
  21. Click the Apply Planner Position button next to the Walk to Position instructions to change the offsets.
  22. In the Set Rotation instructions, change the Z to -180.00.
  23. Clear the Planner Person checkbox.
  24. Press the OK button to save the changes and close the properties window.

You can test your custom object by pointing the Office variable in the Consult container of the Patient Flow at this new object.

Conclusion

This concludes the FlexSim Healthcare Tutorial. By now you should have a good sense of all the different tools that are available to you when building a FlexSim Healthcare model. Be aware that in a normal simulation project, you'd go on to make sure your data inputs were correct by studying the times that it takes to complete registration, examinations, and other treatment times.