Modeling stairs

In AnyLogic, you define stairs connecting two floors using the area, see the demo model below: 

Demo model: Stairs

Let's explain how you can bring the same logic into your model.

Usually when you develop a pedestrian model, you have a layout of the simulated building (station, museum, stadium, etc.). 

First, you need to draw the area and place it exactly over the stairs area on the drawing.

 Draw the stairs area

  1. Drag the Rectangular Area  element from the Markup section of the Pedestrian Library palette onto the graphical editor, over the layout.
  2. Resize the area as you need. Finally it should lie exactly over the stairs area on the drawing.

The next thing we need to do is define the slope angle for this area.

Define a slope for the area

  1. To make the area sloped, first select the Sloped option in the area's Position and size properties.
  2. You will see the slope line appeared inside the area in the graphical editor:

  1. In the graphical editor, adjust the slope line's direction. The line should point exactly in the Z-coordinates growth direction.
           
  1. Now we need to define the stairs slope itself. Usually you know either stairs slope angle (case a on the figure below), or the height between the levels (case b).

  1. Click the slope line and tune it to define the required slope.
  2. If you know the angle value (case a), leave Define slope as: angle option selected and specify the angle value in the Vertical angle control below.
  3. Otherwise, if you know the height between the levels (case b), choose guiding line in the slope line's Define slope as property. In the dZ property below, enter the height between the levles, in pixels. Then direct the slope line in the graphical editor so that in XY plane it lies parallel to the stairs area direction.