Rectangular Area

Rectangular area is one of two supported types of pedestrian areas in AnyLogic. Use Rectangular area if your area is rectangular, use Polygonal area if your area has complex form.

You can make the area sloped, e.g. to model stairs

This document describes only the specifics of the rectangular area, for the general information on pedestrian areas, please refer here.

 To draw a rectangular area

  1. Drag the  Rectangular Area element from the Space Markup section of the Pedestrian Library palette to the agent diagram.
  2. Resize the area as you need.



Name – The name of the shape. The name is used to identify and access the shape from code.

Ignore – If selected, the shape is excluded from the model.

Visible on upper level – If selected, the area is also visible on the upper level where this agent lives.

Lock – If selected, the area shape is locked. Locked shapes do not react to mouse clicks - it is impossible to select them in the graphical editor until you unlock them. 

Visible – Here you specify whether the shape is visible on animation at model runtime, or not. Using the control, choose yes or no

Attractors... – Click this button to create attractors inside the area. Attractors are the places where the pedestrians will tend to get.


Fill color – Shape's fill color. Choose No Fill, if you do not want shape to be filled.

Line color – Outline color. Choose No Line, if you do not want outline to be drawn.

Line width – Outline width.

Line style – [Enabled only if the Show in 3D checkbox is not selected] Outline style. Choose from the drop-down list, whether you want solid, dashed, or dotted outline to be drawn. 

Position and size

Ground – The ground this area belongs to. 

X – X-coordinate of the area's start point.

Y – Y-coordinate of the area's start point.

Width – Width of the area (in pixels).

Height – Height of the area (in pixels).

Z – [Enabled if Show in 3D option is selected] Z-coordinate of the area, in meters. The value is relative to the Z-coordinate of the area's ground. 

Rotation – Rotation angle of the area in the XY plane. 

Sloped – If selected, this area lies on an inclining plane (e.g. it defines an escalator connecting two floors). To know more about defining inclining areas, please refer here.  


Show in 3D - If selected, the area will be displayed both in 2D and 3D animation.

Show name – If selected, the shape's name is displayed on the graphical diagram.