When a patient enters a dressing room, I would like to set the floor color to green. When the patient leaves I would like to set the four-color back to light gray. How do I do this?
Thanks,
Tee
When a patient enters a dressing room, I would like to set the floor color to green. When the patient leaves I would like to set the four-color back to light gray. How do I do this?
Thanks,
Tee
Tee,
I was able to do this within the entry and exit triggers using the setnodenum command. I added the following to the entry trigger code:
setnodenum(node(">variables/FloorColor/red",current),0); setnodenum(node(">variables/FloorColor/green",current),.5); setnodenum(node(">variables/FloorColor/blue",current),0);
and I added the following in the exit trigger:
setnodenum(node(">variables/FloorColor/red",current),.9); setnodenum(node(">variables/FloorColor/green",current),.9); setnodenum(node(">variables/FloorColor/blue",current),.9);
This is done by selecting the dressing room and selecting the 'Directly edit code' button on the two triggers as shown below:
I have also included a sample model for you to view this technique in action.
Thanks, Paul. Really a great explanation in response to my question.
The only thing that I changed was I used "Edit this trigger's operation/Code Snippet" instead of "Directly edit code" which made it easier to replace the title "Code Snippet" with a meaningful name.
Thanks,
Tee
6 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved