Simulation with AnyLogic/Discrete Event Simulation/Ophthalmology Department Model/Step 3. Animating patients and resources

Step 3. Animating Patients and Resources
Now we will draw animations to depict patients, doctors and scopes in our model.

Draw a shape depicting a patient
 * 1) Zoom the diagram in, say to 400% scale. [[File:Step_10._Adding_agent_animations1.png]]
 * 2) Drag the diagram a little bit down and to the right with the right mouse button pressed.
 * 3) Draw patient shape like shown in the following figure: [[File:Step 3. Animating patients and resources 1.png]]
 * 4) You can draw it using any AnyLogic presentation shape, or with an image. We will draw it using a curve. To draw a curve, drag the Curve [[File:Step_10._Adding_agent_animations3.gif‎]] element from the Presentation page of the Palette view onto the diagram. Then double-click the drawn curve to switch to editing curve points mode. In this mode you can add new points by double-clicking on the curve and move points by dragging them.
 * 5) Name the shape shapePatient. The name is important since we will refer to patient animations by shape name.

Now we will draw shapes to depict doctors and ophthalmoscopes in the same way as we did for patients.

Draw shapes to depict doctors and ophthalmoscopes
 * 1) Draw a shape depicting a doctor using the Polyline [[File:Step_3._Creating_a_model_animation_3.gif]] drawing tool. Name it shapeDoctor. [[File:Step 3. Animating patients and resources 2.png]]
 * 2) Draw a shape depicting an opthalmoscope using the Polyline [[File:Step_3._Creating_a_model_animation_3.gif]] drawing tool. Name it shapeScope. [[File:Step 3. Animating patients and resources 3.png]]
 * 3) When finished, zoom the diagram out to the default scale by pressing the Zoom to 100% [[File:Step 3. Animating patients and resources 4.gif]] toolbar button.

We have finished drawing the model presentation. Now we will configure the model network and define the process itself using a flowchart.