Legion SpaceWorks R6.5.0 User Guide
Legion SpaceWorks R6.5.0 User Guide
0 User Guide
No portion of the contents of this publication may be reproduced or transmitted in any form or by any means without the
express written permission of Legion International Limited.
We have done our best to ensure that the material in this publication is both useful and accurate. However, please be
aware that errors may exist in this publication and that Legion International Limited makes no guarantees concerning the
accuracy of the information found here or the use to which it may be put.
® The name “LEGION” is a registered Trade Mark in the United Kingdom, the United States of America, Europe and Hong
Kong for classes 9, 35 and 42.
™The name "SPACEWORKS" is a registered Trade Mark in the European Union for class 9.
Legion SpaceWorks R6.5.0 User Guide
Contents
Contents i
Menu instructions 2
Menu items 2
Legion Simulator 4
Legion Analyser 4
Recommended specifications 6
Quick-start instructions 7
Step-by-step instructions 7
Licensing 10
Workstation Licences 10
Network Licences 10
3: Legion Concepts 20
Accessible Space 21
Entities 22
Entity Types 22
Supply Types 22
CAD 23
Spatial Objects 24
Activity Objects 24
Analysis Objects 24
Layers 24
Data Profiles 25
Final Destinations 28
4: Using CAD 30
Importing a CAD plan into the Model Builder (DGN, DWG, DXF) 33
Importing files 33
5: Final Destinations 49
6: Change Logs 53
Workspace 74
Toolbars 74
Object Directory 75
Output Bar 77
Status Bar 79
Arranging windows 79
Saving a model 82
Backups of models 84
Closing a model 87
Printing a model 92
Using Help 95
Sending feedback 95
iv
Legion SpaceWorks R6.5.0 User Guide
Manually creating and editing Arrival, Availability, Speed and Event Profiles 147
Scenarios 167
Linking 218
Filtering 231
Specifying how Links, Target Filters and Final Destinations are drawn 234
Restrictions 240
Entrances 246
Exits 247
Stairs 259
Escalators 263
Gates 268
Queues 278
Toolbars 314
Timeline 316
Time-track 328
Time-pointer 329
Setting Track properties for Record .AVI and .RES tracks 330
Toolbars 373
Timeline 375
Setting Analyser 'Record .RES' and 'Record .AVI' Track Properties 434
Index 483
xviii
Legion SpaceWorks R6.5.0 User Guide
Note
Tip
Warning
Menu instructions
The guide uses chevrons in place of wordy instructions on how to select menu options. For
example, the instruction:
1. From the View menu, select Toolbars and then Customise
is written as:
1 Select View > Toolbars > Customise
Menu items
Named menu items within instructions are emphasised in bold, as in the examples above.
When you need to select specific options or enter specific text as part of a procedure, these
are also printed in bold.
2
Legion SpaceWorks R6.5.0 User Guide
For users of SpaceWorks R5 and later who wish to upgrade results files ('res' files) and
Legion Viewer files prepared using earlier releases of the software, there is an additional
standalone 'Results Upgrade Tool'.
Legion Simulator
Use this application to run a simulation of how pedestrians move or circulate within the space
defined in the Model Builder. In the Simulator you can:
● Import model files.
● Playback and view the simulation.
● Record appropriate parts of the simulation as a ‘results file’ (‘res’) to be viewed and inter-
rogated in the Analyser.
● Record all or appropriate parts of the simulation as a video file for presentations.
Legion Analyser
Use this application to run a series of analyses on your simulated space. In the Analyser you
can:
● Import results files and model files.
● Play back selected parts of a recorded simulation, or run a new simulation (like in the
Legion Simulator).
● Visualise key metrics in the form of maps.
● Run detailed, specific, analyses and display the results as time series, stacked bars or his-
tograms.
● Export the analysis session as graphs, results files, video, pictures or tables for inclusion
in presentations, reports and spreadsheets.
To see which type of operating system a machine is using, Select Start > right-click on
Computer > Properties. The type of operating system is listed under 'System'. Please
note that the 32-bit version will run on a 64-bit computer but not vice versa.
4
Legion SpaceWorks R6.5.0 User Guide
Recommended specifications
We recommend the following system setup to run Legion SpaceWorks successfully:
● Intel i5, i7, or Xeon processor of at least 3GHz
● At least 4 GB of RAM for 32 bit edition and 16GB for the 64-bit edition
● Dedicated graphics card with at least 512MB memory and full OpenGL support
● 80 GB of spare disk space on a fast (7,200 rpm or above) hard drive (to store several
large results files)
● A high-resolution monitor
● Windows 8 or 7, 64-bit operating system required for 64-bit edition of SpaceWorks
● CAD software (such as AutoCAD or Microstation) to edit CAD files before importing them
● Microsoft Excel 2007 or later to enable data file input SpaceWorks supports all Excel file
formats, including 'xlsx' and 'xlsm')
6
Legion SpaceWorks R6.5.0 User Guide
Quick-start instructions
If you have a previous version of Legion installed, please remove it before installing the new
version.
Step-by-step instructions
The following procedures guide you through the installation procedure in more detail.
8
Legion SpaceWorks R6.5.0 User Guide
To download the updated version, click the link, Click here to visit www.legion.com...
To read about the latest version, click the link, Click here to see the release notes...
To stop this message appearing again, click the box labelled Don't tell me at startup
unless...
Licensing
Legion SpaceWorks uses a system called 'Sentinel HASP', which can issue two types of
licence: 'workstation licences' and 'network licences'. The type of licence you use depends on
decisions made when purchasing Legion software and services.
Due to security issues, HASP licensing will not work correctly if you are running debugging
software on the same computer. As a consequence, Legion applications will not run and a
'debugger error' message will be displayed. To avoid this, please do not run Legion soft-
ware and debugging software at the same time on the same machine.
The following topics cover the different types of licences and how to install and use them.
Workstation Licences
A workstation licence enables you to run Legion software on a single designated machine. If
you want to use this licence on a different machine, you must contact Legion and request that
we move the licence for you.
Network Licences
A network licence is one that belongs to a pool of licences stored on your computer or on a
server attached to a network. This 'pool' contains a number of licences, each of which enables
an instance of Legion software to be run, as long as your computer is attached to and recog-
nised by the network.
For example, the licence pool may contain three Model Builder licences, four Simulator
licences and two Analyser licences. In such a case, a maximum of three instances of the
Model Builder may be run at the same time. If a member of your team attempts to start up a
fourth instance of the Model Builder, they will receive an error message because the three
licences are already being used (when a network licence is used it is temporarily 'removed'
from the pool).
An 'instance' of usage is registered each time a Legion application is run, whether they are
run on one computer or several. For example, three Model Builder licences would enable
you to open the Model Builder three times on one machine; or two times on one machine
and once on another machine; or one time each on three different machines.
Legion SpaceWorks can be installed on many computers with access to your network and your
pool of licences. When you open a Legion application on one of these machines, the software
will first look for a workstation licence on the machine. If it doesn't find one, it will search the
network for an available licence and, if it finds one, it will then start, meaning the pool of
licences has one licence fewer for as long as the application is running.
When and if you need to use Legion software on a computer that is not connected to the net-
work, you can 'detach' a licence from the available pool and 'attach' it the appropriate com-
puter; see Detaching a Network Licence.
10
Legion SpaceWorks R6.5.0 User Guide
If you install on a 'regular' computer, that computer must be connected to the network at
all times for other network users to run SpaceWorks. If you have any doubts, it's probably
best to install the network on a server instead.
This procedure assumes that you have either installed the Legion Licensing Utility on a server
or have installed Legion SpaceWorks on a computer you intend to run SpaceWorks on.
12
Legion SpaceWorks R6.5.0 User Guide
The Licensing Utility dialog is displayed (it won't contain any licence details the first time
you open it).
You may also need to do this if you are connecting over a VPN.
14
Legion SpaceWorks R6.5.0 User Guide
5. Uncheck the box labelled 'Broadcast Search for Remote Licenses' and, in the box labelled
'Specify Search Parameters', type the IP address of the computer on which the pool of
licences is stored.
6. Click Submit.
7. Wait for five minutes for your changes to take effect.
8. Close down the web page. Your computer will now find the licence.
3. The 'Sentinel HASP Admin Control Center' web page is displayed (you need an Internet con-
nection and browser).
The following diagram indicates the most useful features of the web page.
Both procedures must be completed before disconnecting the computer from the network.
16
Legion SpaceWorks R6.5.0 User Guide
To detach a licence:
1. Select Start > All Programs > Legion International > Legion Licensing Utility.
2. Click the Detach Licence button.
The 'Detach Licence' web page is displayed.
3. Select one or more licences from the 'Application' column.
4. Click Detach to display the expiry date calendar.
5. Find the date on which you would like to return the licence to the network pool and click to
highlight it.
6. Click OK to close the dialog and return to the Licensing Utility. The licences you detached
will now be highlighted with green key icons to show that they are local, rather than net-
work, licences.
You have now detached a licence from the pool and attached it to your local machine. It will
work up until the end of the day you specified when detaching.
To return a licence:
1. Select Start > All Programs > Legion International > Legion Licensing Utility >
Legion Licensing Utility.
2. Click the Return Licence button.
The 'Return Licence' dialog is displayed and lists the detached licences you may wish to
return.
3. Select one or more of the licences and click Return to close the dialog and return to the
Licensing Utility.
4. You have now returned the licences to the network and they are highlighted with a yellow
key icon.
18
Legion SpaceWorks R6.5.0 User Guide
● To download the updated version, click the link, Click here to visit www.legion.com...
● To read about the latest version, click the link, Click here to see the release notes...
● To stop this message appearing again, click the box labelled Don't tell me at startup
unless...
You may, however, wish to check for updates manually, in which case:
● Select File > Check for Updates...
3: Legion Concepts
In this chapter
To understand how Legion software simulates the circulation of people within the space of a
model, you need to be familiar with some important concepts.
This section covers the following topics:
● Accessible Space
● Entities and populations
● CAD
● Spatial Objects
● Data Profiles
● Principles of movement in Legion simulations
● Final Destinations
20
Legion SpaceWorks R6.5.0 User Guide
Accessible Space
This is the space within a model through which Entities can move: the walkable areas within a
venue, station, building, stadium, etc. It is generated automatically by SpaceWorks when a
model file (‘lgm’) is exported as an ‘ora’ file.
In order to do so, your model must contain at least one origin object and one target object
(the simplest possible model in SpaceWorks would be one that contains a Populated Zone and
an Exit) and your model must be free of errors.
Accessible space is the area within which SpaceWorks calculates auto-navigation and creates
Focal Drift Zones when required. Any area of enclosed CAD in a model that does not include
an origin or target object will be ignored by SpaceWorks when the model is exported.
Auto-navigation automatically works out the shortest routes for Entities to follow on their
journey through a model. It can handle discontinuous accessible space, which means it
can guide Entities to intermediate targets and Final Destinations that exist on different
levels. It can also include or exclude small or free-standing objects from its calculations;
see Checking for Free-standing Objects.
In the model of a station pictured here, the accessible space for each level is shaded in grey.
You can view your model's accessible space at any time in the Model Builder, Simulator and
Analyser.
Entity Types
Each Entity in a Legion model belongs to a larger group called an Entity Type. You can dif-
ferentiate Entity Types by name, colour, gender ratio, size, size of luggage, Entity Profile, and
Speed Profile. Entity and Speed Profiles reflect the personal space and speed preferences in
different terrains. Legion SpaceWorks comes with profiles based on statistical analyses of real
people in different cities and sites around the world.
There are several scenarios where creating different Entity Types is useful:
● Varying the Entity or Speed Profile to select the closest match to the walking preferences
of the population being modelled.
● Varying the size of Entities.
● Varying the size of luggage to create an appropriate mix.
● Varying the gender ratio for certain types of event.
Supply Types
A Supply Type is a combination of Entity Types. For example, you may need to populate a
model with a mix of:
● Commuters and tourists.
● Commuters heading for different lines or in different directions.
● Tourists carrying differing sizes of luggage.
22
Legion SpaceWorks R6.5.0 User Guide
CAD
Architectural drawings using CAD (Computer Aided Design) consist of lines, text, numbers,
shapes and other geometrical objects. For the purposes of Legion model building, only the
lines and shapes that are true obstacles to pedestrian movement are strictly relevant.
For example, hatching marks or lettering in a CAD drawing will act as obstacles to Legion Entit-
ies if they are imported into the Model Builder and retained during a simulation. Removing
these extraneous lines and marks (or moving them to a different layer designed to carry such
details purely for presentation purposes) is called 'cleaning' a CAD plan and the resulting plan
is said to have been 'pedestrianised'. CAD that retains the original architectural lines can be
used for presentation purposes after a simulation has been successfully run. This type of CAD
is known as 'Presentation CAD'. For more information on CAD plans, see 4: Using CAD.
Any information in the CAD drawing about the walking surface that would normally be
expressed with lines (for example staircases, escalators or ramps) must be communicated to
Entities using Spatial Objects in place of the original CAD lines.
The types of CAD that can be imported into SpaceWorks fall into two camps: first, 'dxf',
'dwg' and ''dgn' formats; second, the 'ifc' format. 'Ifc' format CAD is more complex and
involved and is treated separately in this guide. See IFC (industry file format) CAD for
more information.
Spatial Objects
Spatial Objects are the core of a Legion model's logic. Entities are introduced into models by
Entrances, Populated Zones or Evacuation Zones and receive contextual information from
other Spatial Objects placed within the model. This information is used by the Entities to under-
take activities such as waiting or queuing, or to adapt their walking preferences to changing
contexts (e.g. stairs, escalators or waiting areas).
Within Legion SpaceWorks there are three types of Spatial Object:
● Activity Objects
● CAD Objects
● Analysis Objects
Spatial Objects are discussed at length in 15: Spatial Objects–in Detail , but some brief defin-
itions follow. For CAD Objects see Drawing CAD objects.
Activity Objects
Activity Objects provide origins, targets and final destinations for Entities. They may also
enable Entities to carry out certain activities, such as waiting, queuing and using facilities. As
well as providing structure and rationale for Entities, they can also supplement Legion's auto-
navigation system to correct anomalies, such as unrealistic congestion. Within a model they
sit in an Activity Object Layer.
Analysis Objects
Analysis Objects (Zones, Lines and Poly-lines) are used most widely and powerfully in the Ana-
lyser but they also exist within the Model Builder. In the Analyser, they are used to identify
areas of a simulation that you want to 'interrogate' analytically, using a wide range of met-
rics. These kinds of analyses are known as 'Reporting' analyses'
In the Model Builder, Analysis Objects are used in setting up 'Conditions', which enable you to
model operational measures taken in response to over-crowding or other dynamic events.
These kinds of analyses are known as 'Conditional' analyses'. For an explanation of Condi-
tions, see 14: Conditions in Models and for more information on Analysis Objects within the
Analyser, see About Analysis Objects.
While it is usual to set up 'Reporting' analyses in the Analyser, you can do so in the Model
Builder. When your model is eventually opened in the Analyser, these analyses will
already be there and will not need to be added.
Layers
Layers enable you to manage objects in your model and analysis files. Models can rapidly
become complex and it is helpful to arrange different features of a model into different layers.
This feature enables you to view, or work on, the layer of your choice rather than having to
tackle the whole model at once. For further information about layers, please see 12: Layers.
24
Legion SpaceWorks R6.5.0 User Guide
Data Profiles
In a Legion model, Data Profiles describe the rate, manner and time at which various sim-
ulated activities take place. Entities appear as specified in Arrival Profiles; progress at speeds
defined by a Speed Profile; are delayed at facilities according to Delay Profiles; respond to
scheduled events in line with Event Profiles; and may leave the model through a constrained
exit at a rate dictated by an Exit Profile. Objects within a model may also be ‘turned on' or
'off’ by Availability Profiles.
You can define and import these profiles using the Data Template spreadsheet or you can spe-
cify them at any point within the model building process. Data Profiles are discussed in detail
in 10: Demand—Data and Profiles . They are also central to defining Scenarios, which are
covered in the same section.
26
Legion SpaceWorks R6.5.0 User Guide
Macro-navigation is the process whereby an Entity finds the shortest route from its current
position to its next target. This shortest route takes into account the geometry of the site and
the length of several paths are considered and compared.
An individual trajectory is the result of micro-navigation. Legion Entities have a 'perception
zone' which is adjusted dynamically and is based on instantaneous information and accu-
mulated memories.
Within this perception zone Entities assess information in order to decide their next best-step.
Their decision is influenced by: the type of area they find themselves in (the context); the
Entities and obstacles near them; their walking preferences, which are part of their profile
(their Entity Type); and their general desire to get to their target in the least dissatisfying
way.
Additionally, some Entities designated as ‘congestion avoiders may, in the course of deciding
their next step, decide to change target altogether.
As with any model, the quality of the inputs and assumptions influences the quality of the res-
ults. Where possible we encourage observation and the measurement of comparable cir-
cumstances to 'sense-check' the quality of model assumptions.
Final Destinations
A Final Destination is the ultimate goal of an Entity’s journey through a model. It is usually an
Exit but can also be a Waiting Zone (in the case of stadium ingress studies, for example). In
the absence of any other routing information, an Entity will proceed through the model to its
Final Destination.
For more detailed information about Final Destinations, see 5: Final Destinations.
Direction Modifiers can affect Entities when a Condition is met within a particular area,
such as smoke blocking a route. To set up such a condition, define an Analysis in the Model
Builder that measures the required metric in the area. The condition in the Direction Modi-
fier should be defined as ‘true’ when the Analysis result meets a desired threshold. For
example, visibility < than 10 m.
28
Legion SpaceWorks R6.5.0 User Guide
With vehicle positions loaded, the Simulator and Analyser can display traffic during the sim-
ulation.
4: Using CAD
In this chapter
CAD plans are a required input for a Legion SpaceWorks model. This part of the guide
provides detailed information about the different types of CAD and how they are used.
This section covers the following topics:
● Preparing a CAD plan
● Importing a CAD plan into the Model Builder (DGN, DWG, DXF)
● Exporting CAD files
● Transferring Entities between floor plans
● IFC (industry file format) CAD
30
Legion SpaceWorks R6.5.0 User Guide
The more CAD lines that are retained, the longer a simulation may take to run.
The following procedure is recommended for each drawing file that will be used to compile
into single CAD file for import into the Model Builder. At the end of this process you will have
prepared a drawing file that is suitable for importing into the Model Builder. It assumes that
you have access to a standard CAD drawing package.
9. Simplify complex line work as much as possible; for example, ticket gates can be reduced
to simple rectangles, furniture components can be reduced to an outline of the footprint,
etc.
10. Create new layers to contain Presentation CAD and Simulation CAD lines: five or so lay-
ers are usually enough. Assign the colour white to all Simulation CAD layers to prevent
later confusion with Legion's Spatial Objects which are distinguished by standard CAD col-
ours. Move all pertinent objects in your file into the relevant layers.
11. Ensure that Simulation CAD layers only contain lines that represent true obstacles to
Entity movement, such as walls, columns, barriers etc.
12. Purge the drawing file to remove unused items, such as block definitions and layers.
13. If your model consists of multiple floor plans derived from separate CAD files, con-
solidate all related plans into a single CAD file. Orientate and arrange the floor plans in a
logical manner that assists understanding of the venue and makes best use of available
screen area.
14. Once the floor plans have been arranged, move all objects so that the centre of the con-
solidated plans is located at, or close to, the 0,0 CAD origin point.
15. Save the file.
Before following the next procedure you may need to create a new CAD layer.
32
Legion SpaceWorks R6.5.0 User Guide
Importing files
To do this, you will need to have the Model Builder open.
This lists all the layers available for import and enables you to select and de-select layers
for inclusion as part of the import and also for inclusion in the eventual simulation. The lay-
ers are also colour-coded:
◊ White layers contain fully supported CAD
◊ Amber layers contain some unsupported CAD
◊ Grey layers contain no supported CAD
◊ Blue layers are empty and contain no CAD at all
4. For each layer you want to import, ensure that the ‘Import’ tick box is ticked. To exclude a
layer, untick the box.
5. For each layer you want to import as Simulation CAD, ensure that the ‘Simulation’ tick box
is ticked. To exclude a layer, untick the box.
A layer ticked as ‘Simulation’ will be included in the simulation you eventually run in the
Simulator or Analyser. Take care to tick only those CAD layers that contain genuine
obstacles to Entity movement.
6. For each layer that contains small objects that you would like auto-navigation to ignore
(this saves on memory and permits more accurate pedestrian movement), ensure that the
‘Auto-navigation’ box is unticked.
7. Click OK to continue with the import.
8. To import all CAD lines as black lines, check the box marked Import all CAD in black.
9. Click OK.
The CAD Import progress bar is displayed. When progress is complete, the ‘Drawing Unit-
s/Scale’ dialog box opens.
10. Ensure the Drawing units and Drawing scale settings are correct for the CAD plan being
imported.
11. Check the box marked Adjust model dimensions to fit imported geometry (this
ensures that the Legion model is large enough to contain the obstacles on your imported
plan).
12. Click OK.
The CAD file appears in the Model Builder workspace and the Object Directory and ‘Layers’
dialog box are populated with the new CAD layers and objects.
After importing CAD, make sure that the correct CAD Layer is ‘active’. See Making layers
active.
34
Legion SpaceWorks R6.5.0 User Guide
Press the Esc key at any time to cancel drawing and placing an object.
You can also add CAD objects by typing commands into the Model Builder. Once you have
entered a command, follow the instructions on the Output Bar. Most instructions can be car-
ried out by typing coordinates into the Command bar or clicking into the workspace with the
mouse. All relevant commands are listed below.
36
Legion SpaceWorks R6.5.0 User Guide
◊ Drag the cursor to define the size and position of the arc and click to place it.
If you are drawing an ellipse:
◊ Click in the workspace to place the first axis of the ellipse.
◊ Click in the workspace to place the second axis of the ellipse.
◊ Drag the cursor to define the size and position of the ellipse and click to place it.
‘Level’ refers to any continuous part of a CAD plan within a Legion model: this includes
floor areas that may be located at the same physical level, for example inside and outside
the ground floor of a stadium.
Movement between floor-levels is then achieved by an instantaneous transfer of Entities from
one floor plan to another via Stairs, Escalators, or Level Exits/Level Entrance pairs (these
objects are discussed in detail in 15: Spatial Objects–in Detail).
Creating multiple levels is initially a CAD task until the Entity movement between levels is
introduced. Consider the plan of a football stand below.
38
Legion SpaceWorks R6.5.0 User Guide
The back of the stand appears to lie behind the road bordering the stadium grounds. In reality,
the rear section of the stand is directly above the ground-level concourse, which is also an
area of interest for the model. The two levels have been arranged this way for visual pur-
poses.
In terms of modelling, Entities are transferred from one level to another either by Stairs,
Escalators, or Level Exit/Level Entrance pairs. Level Exits and Level Entrances are used here
to describe the technique but Stairs and Escalators have built-in Level Exit/Level Entrance
pairs which are not visible but accomplish the task in a similar manner.
The area circled in red above is shown in detail here. The red boxes are Level
Exits and replicate the identical locations represented in the model by the
green boxes (Level Entrances) in the lower part of the stand. These reflect the
link between the upper and lower levels of the stand.
In a simulation of an evacuation of the stand, Entities leaving the back of the
stand by the red Level Exits would instantaneously re-appear in the identically
sized Level Entrances, in the same relative positions they were in on the upper
level when they were transferred. This facilitates a seamless transfer between
the two levels.
Similarly, when using Stairs or Escalators to transfer people between two
levels, a transition area (or ‘overlap’) is specified for both the lower and upper
components of the Stair or Escalator. This overlap area acts as the equivalent
of a Level Exit/Level Entrance pair and must cover an area common to both
levels.
This is how the software replicates the movement of pedestrians between dif-
ferent levels in a two- dimensional model. As a consequence, the CAD rep-
resenting the transfer area must be included in each related floor plan.
To preserve the integrity of the transfer of Entities from one level to the next,
it is important that these transfer areas are identical in size and reflect the
exact same location in space on both levels. To help achieve this, it is useful
when re-arranging the CAD to place guidelines (in a presentation-only CAD layer) to indicate
the transfer areas common to both levels.
Most IFC models tend to work with storeys but this is not guaranteed, hence options for
spaces and zones. Within a storey/space/zone, Legion is interested in only those IFC ele-
ment types that represent obstacles or features that pedestrians can interact with. Such
elements comprise:
● Slabs–literally concrete slabs forming a floor or ceiling
● Walls–any kind of wall (standard, partition, dwarf, curtain)
● Windows–we include these because some windows are floor-to-ceiling and are effectively
walls
● Columns–typically any architectural or aesthetic supporting structure
● Doors–any kind of door
● Openings–an opening is a gap in a wall which is not filled by a door or window
● Physical objects–any kind of furniture or structure not specifically captured by other ele-
ment types, which pedestrians would consider an obstacle and/or thing to interact with
● Stair lights–the steps of a stair
● Ramp flights–the slope section of a ramp.
During the import process, you can decide to include or exclude some of these IFC elements.
The procedures for importing IFC CAD and placing it can be found here:
Importing IFC CAD
Placing IFC CAD layers into the SpaceWorks model
40
Legion SpaceWorks R6.5.0 User Guide
● Quick Select
● CAD Colour Support
The overall procedure for importing IFC files is broken down into sequential tasks below.
the long input field, or you can click the Browse button and navigate to an alternative
file. In either case, click Open selected file to load the new file data.
The 'IFC Content' panel to the left of the dialogue contains the tree structure of the selec-
ted IFC file content (all the elements that are useful and relevant to SpaceWorks). In the
first instance, every relevant element is selected for import (as indicated by the white
ticks on green).
Just above the tree structure you can read the units, dimensions and offset of the IFC plan.
The tree structure represents the hierarchical structure of IFC files (Storeys → Spaces →
Zones with all their associated elements within these categories). As with other tree struc-
tures in SpaceWorks, you can expand and shrink the branches to see or hide the available
information.
4. Click on items in the tree to select or deselect them for import. The white tick on green
indicates a selected object; a white cross on red indicates an excluded object; and a white
tick on amber indicates a category with a mixture of selected and excluded items.
42
Legion SpaceWorks R6.5.0 User Guide
5. If you would like to exclude any elements by text string, type directly into the field
labelled 'Exclude IFC containing:' and hit Return. The field is not case sensitive and you
can enter partial words. In the screenshot above, 'tank' has been entered to exclude all
elements with this word in their description.
3. You can now choose whether to create layers for 'Small objects'. Small objects are typ-
ically anything less than 1.7 metres wide, long, or across. Small objects do impede Entit-
ies, so they should be treated as obstacles, but they are excluded from auto-navigation for
reasons of efficiency and performance.
To create layers for small objects, check the box labelled 'Detect small objects, put them
on their own layer'.Layers created for small objects will have the element type appended
to their name, e.g. 'Exit Garage – Ground Level (Small)'.
Any changes and selections you make are reflected in the central list of layers to be impor-
ted:
4. You can now further include or exclude layers from import, simulation and auto-navigation
To do so, check or uncheck one or more of the labelled options:
◊ Import–check this box to import the layer; uncheck to exclude the layer from import.
◊ Simulation–check this box to include the layer in simulations but not necessarily as
part of auto-navigation; uncheck to exclude.
◊ Autonavigation–check this box to include the layer in SpaceWorks' auto-navigation
calculations (when you check this box, 'Simulation' is also checked); uncheck to
exclude.
Key: white layers in the list contain CAD, blue layers are empty, and orange layers do not
contain any IFC Slabs (to hide slabless layers from the list, making it more manageable,
check the box 'Hide layers that don't have slabs'.
44
Legion SpaceWorks R6.5.0 User Guide
Eventually the 'Layer Placement in the Legion Model' dialogue box is displayed.
Now go to Placing IFC CAD layers into the SpaceWorks model.
The check boxes and buttons affect the listed layers in the central panel above them and they
can change the contents of this list according to your selections.
When a check-box option appear to be 'greyed-out' (an indeterminate state) it means that
the status and settings of layers in the list above will not be altered during import.
For example, let's assume you want to exclude layers containing 'openings'. These elements
represent gaps in wall which Entities can pass through (like a doorway without doors). If
imported, this CAD will automatically be classed as 'presentation CAD' but you might prefer to
exclude it because there's a chance it would look like an obstruction.
To do so, you should uncheck the box marked 'Import', then type 'opening' into the 'Contains'
field and then click the Contains button. This would exclude all layers with 'Openings' in their
name from eventual imports.
Eventually the 'Layer Placement in the Legion Model' dialogue box is displayed.
Now go to Placing IFC CAD layers into the SpaceWorks model.
This dialogue contains a list of all the layers you have decided to import into your SpaceWorks
model. The 'Import', 'Simulation' and 'Autonavigation' options cannot be changed at this
point. The first column indicates the 'Status' of each layer: red 'Pending' means the layer has
not yet been placed; green 'Placed' means the layer has been placed.
46
Legion SpaceWorks R6.5.0 User Guide
2. Select one or more of the listed layers in the dialogue box. You can select one or more lay-
ers using the standard Windows selections methods. When you select a layer, any asso-
ciated IFC elements and small object layers are also selected, to ensure that all related
objects on a layer are correctly aligned on import (this screenshot shows four auto-
matically selected layers).
When you have selected a layer (or layers), they are attached to your cursor and super-
imposed on the workspace, ready for placing (seen here to the right of the dialogue box:
3. Position the floating layer(s) in the workspace and left-click. You may need to move the
dialogue box, or to use the pan and zoom tools to find the best position.
4. Repeat steps 2 and 3 for other layer(s) as required, making sure that you do not overlap
them in the workspace.
5. When you have placed all the layers you need, click Done.
A progress meter is displayed while SpaceWorks imports the layers. If there are any
remaining layers that you haven't placed yet, the following message is displayed:
6. Click Yes to continue, or click No to continue placing layers (repeat from step 2).
48
Legion SpaceWorks R6.5.0 User Guide
5: Final Destinations
In this chapter
This section covers the concept and use of ‘Final Destinations’.
This section covers the following topics:
● What is a Final Destination?
● Importing Final Destinations
● Assigning Final Destinations
If at any point in a simulation an Entity has neither an intermediate target nor a Destin-
ation, an error will be generated and the Entity removed from the model.
50
Legion SpaceWorks R6.5.0 User Guide
52
Legion SpaceWorks R6.5.0 User Guide
6: Change Logs
All SpaceWorks modules automatically keeps track of all changes to files and (if managed by
Legion Project Manager) all projects and save them to a Change Log. Any work you do within a
SpaceWorks module is tracked and recorded in this log, whether the files you are working on
are outside or inside a managed project. The following list contains the actions and events
that are recorded in the change log:
● New document
● Load
● Save
● Save as
● ORA export
● CAD import
● Data Template import
● Data Template restore
● Add object
● Add multiple objects
● Modify object
● Modify multiple objects
● Modify object geometry
● Delete object
● Delete multiple objects
● Undo
● Redo
● Move, scale, rotate – matrix operations
● Clipboard cut and paste? (Excluded. Functionally identical to delete and add)
● Specialised geometry commands?
● Copy geometry
◊ Array
◊ Mirror
◊ Trim
The Legion Project Manager also maintains its own, slightly more limited Change Log.
54
Legion SpaceWorks R6.5.0 User Guide
If you open files belonging to a project from 'outside' project management, or if you 'Save
as' files with new names and in different locations that don't exist within project man-
agement, they will not be considered part of the project and they will not be tracked and
included in change logs. However, files can be added to a project at any time.
56
Legion SpaceWorks R6.5.0 User Guide
A 'version' of a project is a record of an 'lgm', its associated 'ora' files (one per 'lgm' scen-
ario), any associated 'ana' files (potentially one per 'lgm' scenario), any associated 'res'
files (potentially one per 'lgm' scenario), and any associated 'l3d' files (potentially one per
'lgm' scenario).
This illustration shows the state of the dialog box after a new project has been opened and a
Legion model file ('lgm') has been added. The left-hand side of the dialog box contains a tree
structure showing all the files and scenarios associated with a project; the right-hand side
shows the properties of the project, including ID, notes, creation date, creator, date of modi-
fications, project file name, status, and various buttons allowing access to SpaceWorks mod-
ules where further work on project files can be carried out.
See also Creating a new managed project.
58
Legion SpaceWorks R6.5.0 User Guide
60
Legion SpaceWorks R6.5.0 User Guide
62
Legion SpaceWorks R6.5.0 User Guide
If you open the file from here and work on it, it will be considered to be outside of the pro-
ject and its changes won't be tracked.
4. You can change its 'ID' and add 'Notes' on the right-hand side of the Project Manager if you
wish. First, select the scenario in the left-hand tree and then enter text in the relevant
fields.
64
Legion SpaceWorks R6.5.0 User Guide
When you remove a file from a project, it still remains safely on your hard drive or
wherever it is stored.
66
Legion SpaceWorks R6.5.0 User Guide
3. You can change its 'ID' and add 'Notes' on the right-hand side of the Project Manager if you
wish.
To save a project:
1. Click the Save button.
or
1. If you want to save the project under another name or in another location, click the Save
As button.
2. Enter a name and/or choose a new location for the project.
3. Click Save.
68
Legion SpaceWorks R6.5.0 User Guide
While such files are open in Legion modules and being worked upon, it is best not to make
any changes within the Legion Project Manager dialog box. If you do, there will be change-
clashes between Legion files and the dialog box and you will have to abandon changes in
either the Legion files or the Legion Project Manager.
To refresh a project:
1. Open (or return to) the Legion Project Manager.
If there are changes that need to be updated in the Project Manager view, the Refresh but-
ton will be available.
2. Click the Refresh button.
3. Files and scenarios will be updated (and any additions will appear in the tree structure).
70
Legion SpaceWorks R6.5.0 User Guide
72
Legion SpaceWorks R6.5.0 User Guide
Toolbars
The Model Builder has several toolbars, which are initially grouped together above the work-
space. The purpose of each icon is explained as specific tasks are described.
To reposition a toolbar:
1. Click-and-hold on the vertical dotted line to the left of the toolbar you want to move.
2. Drag it to a suitable position over the workspace and release the mouse button to create a
floating toolbar.
or
Drag it to the bottom or the sides of the Model Builder interface to dock it there.
You can return any toolbar to its original position by clicking and dragging it back into place.
Any changes to your toolbars are lost if you reinstall Legion SpaceWorks.
You can also turn toolbars off to make more space on the interface.
74
Legion SpaceWorks R6.5.0 User Guide
4. Click Close.
If you change your mind about an icon, drag it back off the new toolbar to its original loc-
ation.
6. Add as many further icons as you require.
7. When you have added all the icons you need, click Close.
8. Drag the new toolbar into position.
You may now wish to turn off some of the other toolbars; see To turn a toolbar off:.
To restore the contents of all standard toolbars, select Tools > Customise > Toolbars >
Reset All.
Object Directory
The Object Directory lists all the objects and data that you create, input or import while build-
ing your model. The different objects appear on the ‘Objects’ tab, ‘Data’ tab, ‘Scenarios’ tab
and the ‘Imported’ tab. It is useful in several ways:
● It acts as an inventory of objects and data in your model.
● It enables you to make objects visible or invisible, which can be helpful when studying a
complex model.
● It enables you to select any object in your model without having to locate it in the main
window.
● It enables you to quickly view selected objects up close.
● It enables you to move or copy objects to other layers within your model.
● After importing the Data Template spreadsheet, it shows you at a glance which objects
exist in the model and which are ‘pending’ (see What happens in the Model Builder after
import?).
The objects and data are displayed in a tree structure and sorted alphabetically. Click on the
+ and – icons to expand or close branches of the Object Directory.
To hide an object in the workspace, click on its adjacent eye icon to display a bar across it.
To show an object again, click the eye icon to remove the bar.
You can also choose to show or hide 'Conditional' analyses in the Object Directory (see
Defining Analysis Project Settings).
When you open a new model the Object Directory will be populated with three default layers:
the Activity Object Layer, the Default Analysis Layer and the CAD Layer. When you add new
objects to the model, they appear in the Object Directory in the relevant active layers.
To create more space, you can choose to ‘Auto Hide’ the Object Directory: just click on the
small ‘push-pin’ icon next to its name. This will hide the directory until you click on its still-vis-
ible name tab. To turn off ‘Auto Hide’, click the push-pin icon again.
76
Legion SpaceWorks R6.5.0 User Guide
Camera Close-up
This feature enables you to zoom in on a single object within your model, which can be very
helpful if you need to isolate one object within a complex model.
Output Bar
The Output Bar provides feedback on your activities within the Model Builder. It has three
tabs:
● Information
● QA
● Search Results
Each tab of the Output Bar retains its information when you click on another tab.
Information
This portion of the Output Bar displays a history of previous commands and sometimes
prompts you to perform certain steps. It also has a Command Bar into which you can type
certain commands in order perform Model Builder tasks including selecting, placing and edit-
ing objects. For a full list of commands see Appendix: SpaceWorks Commands.
Right-click on the ‘Information’ tab for menu options to Clear or Copy its contents. Copying
the contents of the Output Bar is useful when you want to keep a record of recent actions.
Auto-complete commands
When you begin to type a command into the Command bar, it suggests available commands
based on the letters you type. As you type, a pop-up list of commands is displayed, from
which you can select.
For example, typing ‘c’ will pop-up the following list of available commands:
When the correct command is highlighted in the Command bar, press the Enter key to run it.
You may also double-click any command from the list to run it.
If you continue to type, the list will recompose itself, filtering the available commands accord-
ing to the letters you type. For example, typing an ‘o’ after the ‘c’ will reduce the list to the fol-
lowing available commands: ‘copy’, ‘copy geometry’ and ‘copy to layer’.
QA
This stands for Quality Assurance and displays the results when you check your model for
errors during the course of building or just before exporting the model file for simulation. For
further information, see Checking for errors.
Search Results
This tab displays any relevant results when you search for objects using the Find tool. Results
are listed by object and type.
Right-click on one or more listed objects for the options to Edit Properties or Select Object
(s).
78
Legion SpaceWorks R6.5.0 User Guide
To create more space, you can choose to ‘Auto Hide’ the Output Bar: just click on the small
‘push-pin’ icon next to its name. This will hide it until you click on its still-visible name tab. To
turn off ‘Auto Hide’, click the push-pin icon again.
Status Bar
The Status Bar at the bottom of the Model Builder interface displays information regarding
(moving from left to right):
● The status of the application and ‘ToolTips’
● The current position of the cursor (by X and Y coordinates)
● The length of any object being created
● The angle at which the cursor is currently off the X-axis, when drawing or placing an
object in the model
A progress bar provides a visual indication of the progress of QA checks, ‘ora’ file exports and
Generalised Journey Time exports, if applicable.
Arranging windows
In the same way that you can move toolbars around for convenience, you can also resize and
reposition the various windows in the Model Builder interface.
To move a window:
1. Click-and-hold on the horizontal dotted line at the top of the window you want to move.
2. Drag it to a suitable position over the workspace and release the mouse button to create a
floating window.
or
Drag it to the bottom or the sides of the Model Builder and release the mouse button to
dock it there.
To resize a window:
1. Position the cursor on the edge of a window until it changes to a vertical or horizontal
‘grab’ icon.
2. Click and drag the edge of the window to the desired size and release the mouse button.
To close a window, click on the X icon in the top right-hand corner of the window.
Those with a tick displayed to the left of their name are currently open.
2. Highlight and click the name of the window you want to reopen.
The window opens in the same place it was when you closed it down and with the same
dimensions. Conversely, highlighting and clicking a window which already has a tick dis-
played will close that window.
Arrows also appear at the extreme edges of the user interface, enabling you to place objects
in those locations too. To dock the object, move your cursor over one of the docking arrows
and click.
When dragging objects to the lower portion of the interface, a central blue square becomes
available. If you click this square, the object is docked alongside any existing objects in the
same location, each object residing on its own tabbed page, as illustrated here.
80
Legion SpaceWorks R6.5.0 User Guide
If the cursor ever behaves in an unexpected manner, check the Output Bar to see if there
are any uncompleted tasks or prompts and either finish the task or press Esc.
Saving a model
Now that you have opened a new model, it is a good idea to save it with a meaningful name.
To save a model:
82
Legion SpaceWorks R6.5.0 User Guide
Backups of models
The first time you save a model file, Legion SpaceWorks automatically creates a backup file
called <filename>.mbk (where <filename> is the name of your model) and saves it in the
same directory as your ‘lgm’ file.
Every subsequent time you save your model, Legion SpaceWorks saves the earlier version of
the model as an ‘mbk’ file and overwrites the previous ‘mbk’ file. This means that when you
save your model for the third time, the ‘mbk’ preserves the second saved version; when you
save for the fourth time, the ‘mbk’ overwrites the second ‘mbk’ file with the third saved ver-
sion and so on.
Remember that each saved ‘mbk’ overwrites the previous backup file.
This means you can restore previous versions of models when needed: change the backup
file’s extension from .mbk to .lgm. and open within the Model Builder in the usual fashion.
In the unlikely event that you want to turn this feature off, you can do so by following this pro-
cedure:
To configure Auto-save:
1. Select Tools > Options > Auto-save settings.
The ‘Options’ dialog box is displayed.
2. Tick the Enable Auto-save box.
3. Enter a number of minutes between 1 and 120 in the box labelled Automatically save
every n minutes.
4. Select either:
◊ Overwrite the main file–this will save over your working ‘lgm’ each time auto-save
is activated.
or
◊ Create a recovery file–this will create a recovery file alongside the ‘lgm’ you are
working on, so the ‘lgm’ will remain unchanged unless you explicitly save. If the file
you are working on has never been saved, a recovery file will always be created, pre-
fixed by the word “Unnamed”.
◊ To be able to see the recovery file in your file structure, check Don’t hide the file.
5. To make sure your current ‘lgm’ file is automatically saved when you export it as an ‘ora’
file, check the box labelled Update the current file when a simulation (.ora) file is
exported.
84
Legion SpaceWorks R6.5.0 User Guide
6. To display information about the status of Auto-save in the Output Bar, check Show Auto-
save details (see below for a list of these statuses).
7. Click Apply or OK to save your changes.
Notes on Auto-save
● Unless you check Don’t hide the file auto-saved recovery files are hidden so that they
are not confused with standard Model Builder files.
● Auto-saved backup files are always saved in your ‘My Documents’ folder.
● Auto-saved backup files have the extension ‘.lgm_as’.
● If the file you are working on has never been saved, the backup filename will begin with
“Unnamed”.
● The Output Bar will display the following details about the status of the Auto-save function:
◊ Disabled–not running.
◊ Idle–running but no changes to save yet.
◊ Countdown–minutes and seconds until the next auto-save.
◊ Suspended–temporarily not running due to an ongoing command or operation or open
dialog box.
◊ Pending–will auto-save as soon as the current command or operation is completed or
cancelled.
◊ In progress–performing an auto-save (access to the Model Builder is temporarily sus-
pended during an auto-save).
2. If you want to see a preview of a model file, double-click on its image. Click OK to close
the preview.
3. To open a model file in the Model Builder, select its name and click OK.
The file is opened with the generic title “Recovered unnamed Auto-save file”.
4. Select File > Save and save the file with a specific name.
With files that you have already saved and named, the recovery process starts as soon as you
try and open the file. The Model Builder looks to see if there are any associated recovery files.
If there are, the ‘Auto-recovery’ dialog box is displayed; if not, the original file is opened in
the normal manner. When displayed, the dialog box always lists the original file first.
86
Legion SpaceWorks R6.5.0 User Guide
Closing a model
Follow this procedure to close the model you are working on.
To close a model:
● Select File > Close.
If there are no unsaved changes in the model, it closes automatically. If there are unsaved
changes in the model, you will be prompted to save the model before closing:
◊ Click Yes to save the model.
◊ Click No to close the model without saving.
◊ Click Cancel to leave the model open.
In rare circumstances, you may wish to turn off auto-navigation throughout a model; you
can do so on the 'Auto-Navigation' tab.
There is also a slider control which enables you to set the ‘Distance Estimation Error’. This
determines the accuracy with which Entities can estimate distances for the purposes of choos-
ing target objects or avoiding congestion (see step 6).
This adjustment shifts the demand data in relation to the Model Start Time, ensuring that
no data is lost by being outside the time frame of the simulation. This is not obligatory if
you have changed the start time (for instance you may want to omit a period at the start
of the run time in which there is no data).
6. Set the percentage of Distance Estimation Error (0%–20%) by dragging the slider control
to the required level. Note that the default percentage is set at 5%.
7. If your model's CAD contains many long arc shapes, processing them may take longer.
You may like to alter how they are approximated by setting an 'arc tolerance level'. The
higher the tolerance, the less precisely the arcs are drawn. This may increase speed but
reduce accuracy a little. Experiment, if necessary, to find the right balance.
Check the box labelled 'Adjust the accuracy with which arcs are drawn' and adjust the
slider.
8. Switch to the 'Auto-Navigation' for the following steps.
◊ In the unlikely event that you wish to turn off auto-navigation throughout a model,
click the 'Auto-Navigation' tab and uncheck the box labelled Enable auto-navigation.
Recheck the box to enable auto-navigation again.
◊ If you enable auto-navigation and want Entities to aim for the focal point of objects
(rather than aim for the focal segment in general), click the 'Auto-Navigation' tab and
check the box labelled 'Always use focal points for auto-navigation'. This overrides any
target parameters you may have set in individual objects. See Target Parameters for
more information.
◊ 'Enable isovist grid caching' enables the Simulator to calculate and retain a grid of
each Entity's zone of vision. This speeds up simulations but uses a lot or memory. If
you are concerned about running out or memory, uncheck this box.
9. Click OK button to save your settings.
88
Legion SpaceWorks R6.5.0 User Guide
2. Click on 'Automatic Blockage Detection' to display the relevant panel of the dialog.
3. The feature is always activated at first. If you wish to deactivate it, uncheck the 'Enable'
box and go to step 7.
4. Set the delay threshold you require by entering a numeric value after the label 'If a sim-
ulation step exceeds' and by selecting 'minutes' or 'seconds' from the adjacent drop-down
menu.
5. To define what happens when this delay threshold is reached, select either:
◊ Pause the simulation
◊ Stop the simulation
6. If you would like to interrupt the simulation before the completion of a delayed time step
(because the step is taking too long to complete), check the box labelled 'Interrupt sim-
ulation step if time limit is exceeded'. If you check this box, the 'Pause the simulation'
option in step 5 will be deselected.
7. Click OK.
When ABD is on, and when a delayed time step reaches the specified length of time, the
simulation will either pause or stop as you require. A message dialog will be shown indic-
ating what has happened. The message will include the duration of the time step which
triggered ABD.
press the Esc button on your keyboard to return the cursor to its normal state.
Pan Click once then drag the model view in any direction
with the mouse
Mouse Click once and drag the mouse up and down an ima-
Zoom ginary y-axis to zoom in and out
Zoom Click once, draw a box over the area of the model you
Region want to zoom in on and click to complete the area
You must fix errors before you attempt to export your model as an ‘ora’ file for sim-
ulation; you should heed warnings but overlooking them will not prevent exporting as an
‘ora’ file.
90
Legion SpaceWorks R6.5.0 User Guide
Results are classified as Information, Warnings or Errors. Right-click on the ‘QA’ tab to change
whether it displays Information, Warnings or Errors.
All ‘ticked’ information types will be displayed. Click alongside each to add or remove the
ticks.
Where appropriate, these messages are hyperlinked to the objects they refer to. If so,
when you move the cursor over a message, it will change to a ‘pointing hand’. Click one of
these messages to open the ‘Edit Properties’ dialog box of the object containing the error.
This will enable you to fix the problem by changing object properties.
Right-clicking on an object’s name in the Output Bar will also offer you the option to
‘Delete’ the object.
3. Fix any errors.
4. Rerun the QA check to check that you have successfully fixed any errors.
Printing a model
While you are working on a model, you may wish to print versions of it to show colleagues or
to sketch pedestrian routes, etc. onto it.
92
Legion SpaceWorks R6.5.0 User Guide
The file retains the name of the model you are exporting and Model Output File (*.ora) is
automatically selected as the file type.
3. Tick the boxes of any data scenarios you want to export along with the model file (see
Scenarios for further information).
4. Click OK.
You will need to be able to find these files later when setting up Environment Maps in the
Analyser.
◊ Enter the CHID id for the file (max. 30 characters).
◊ Enter a Title for the file (max. 60 characters).
3. Set General Settings:
◊ Enter a Grid cell size (metres).
◊ Enter a Duration (seconds).
◊ Enter a Number of frames.
◊ Specify a Database to use, or click the browse button and select the appropriate data-
base.
◊ Enter a Default surface (the surface definition must be present in the FDS database).
4. Click Next to move to the ‘Fire Settings’ page of the wizard.
The reason you might like to hide analyses associated with conditions is to reduce 'clutter'
and to ensure that you don't confuse these kinds of analyses with more standard 'Report-
ing' analyses. This illustration shows the Object Directory listing both 'Conditional' and
'Reporting' analyses.
94
Legion SpaceWorks R6.5.0 User Guide
Using Help
You can view this User Guide in online form at any time when using Legion SpaceWorks. If
you don't have a working Internet connection, you will be directed to the PDF version of the
guide, which may be out of date; the online Help is updated more frequently.
To search for terms in the Help, use the 'Search' box in the top right-hand corner. Results will
be displayed in the main Help window.
Context-sensitive Help
Some dialog boxes feature a Help icon . Click this icon to display a small Help window con-
taining information or instructions about that particular portion of the dialog box.
Sending feedback
If you would like to send us feedback about Legion software and your experiences using it,
you can send it directly from the 'Help' menu, providing your machine has a valid and active
email application and connection. As well as reporting any technical issues, you could also
send us questions or suggest new features.
To send feedback:
1. Select Help > Send Feedback
2. The ‘Feedback’ dialog box is displayed.
3. Enter your feedback in the box labelled 'Describe your enhancement request or technical
issue'. If you are reporting a crash or problem, please tell us what happened and the steps
that lead up to it.
4. If you want to attach an example file to help with your report, click the Attach button,
browse to the appropriate file and click the Open button. To remove the file, highlight the
required file and click Remove. Add additional files in the same manner.
5. Click the Send button.
96
Legion SpaceWorks R6.5.0 User Guide
You can also create Entity Types using the Data Template spreadsheet. See Entities work-
sheet.
The following procedures assume that you have a Legion model open within the Model Builder.
1. Click or select Data > Entity Types. The ‘Edit Entity Type’ dialog box is displayed.
The left hand pane of the dialog box already contains a Default Entity Type, based on para-
meters associated with UK commuters. You could use this type for your model, or proceed
to create your own.
2. Click the New button in the top left-hand corner.
3. Enter a meaningful name for the Entity Type in the highlighted box and press Enter.
4. On the 'Appearance' tab select a colour for the Entity Type from the Colour drop-down
list.
5. For the 'Gender Ratio', leave at 50/50 or enter new percentages for 'Males' and 'Females'
if required.
6. For 'Entity Sizes', select one of:
◊ System defined
◊ Size profiles–if you select this option, choose Size Profiles from the drop-down lists
labelled 'Male' and 'Female' (you may need to create these profiles; see Creating an
Entity Size Profile).
7. Select the Luggage Size option that matches your Entity Type:
◊ No luggage
◊ System random (automatic allocation of none, or small, medium, large ranges)
◊ Size Profile (select a profile from the drop-down list; you may need to create one or
more profiles–see Creating a Luggage Size Profile).
8. Click on the Profile tab of the ‘Edit Entity Type’ dialog box.
9. Select an Entity Profile from the drop-down list.
The different Entity Profiles are:
◊ Asian
◊ Chinese
◊ North American
98
Legion SpaceWorks R6.5.0 User Guide
◊ Southern European
◊ UK (this is the default setting)
If you want to apply a user-defined Speed Profile rather than a system profile, see Creat-
ing a User-defined Speed Profile, otherwise continue to the next step.
10. Choose a Speed Profile from the Speed Profile drop-down menu.
Depending on the Entity Profile, the Speed Profile options are:
● Asian
◊ Asian Commuters
◊ Asian Weekend Passengers
◊ Runners
◊ Stadium Users
◊ Tourists
● Chinese
◊ Chinese Commuters
◊ Chinese Weekend Passengers
◊ Runners
◊ Stadium Users
◊ Tourists
● North American
◊ North American Commuters
◊ Runners
◊ Stadium Users
◊ Tourists
Use the ‘Runners’ speed profile with care. It represents people running when leaving a sta-
dium. We recommend that you use this exclusively for modelling stadia and then only for
a small number of Entities, e.g. 25% of the first 5% of people leaving a stadium.
● Southern European
◊ Runners
◊ Southern European Commuters
◊ Stadium Users
◊ Tourists
● UK
◊ Runners
◊ Stadium Users
◊ Tourists
◊ UK Commuters
11. Click Apply or OK to save the new Entity Type. It is added to the ‘Data’ tab of the Model
Builder Object Directory, under Entity Type.
You can also create User-defined Speed Profiles using either the Data Template spread-
sheet (see Entities worksheet) or the Edit Data Profiles dialog (see Creating a User-
defined Speed Profile).
To complete this procedure, you need to have imported user-defined Speed Profiles into
your model using the Legion Data Template. You can, however, also create Speed Profiles
in the Edit Data Profile dialog.
100
Legion SpaceWorks R6.5.0 User Guide
You can also create Entity Size Profiles in the Legion Data Template; see Entity profiles
worksheet for instructions.
1. Click or select Data > Data Profiles. The ‘Edit Data Profiles’ dialog box is displayed.
2. From the drop-down list on the left of the dialog box, select Size Profile–Entity.
3. Click the New button in the top left-hand corner. A new Entity Size Profile is displayed,
plotted with data to reflect the system's 'Normal distribution' of 'Width (metres) to 'Per-
centage' of Entities.
4. Enter a name for the new profile in the highlighted name field.
5. If you would rather work in the histogram view, click the option button labelled 'His-
togram' to display an empty graph and proceed to step 8 (to change back to the dis-
tribution layout, click the option 'Normal distribution'.
6. If you wish to change the data, enter new values for 'Width' and 'Deviation' by typing new
values or by clicking the up and down arrows next to each field.
7. If you would like to view this data as a histogram instead, click Convert to histogram.
8. In the histogram view you can alter the data by entering values into the cells at the foot of
the graph, or by dragging the columns of the graph up and down.
Allocation of data must equal 100%. You will see a percentage indicator to the left of the
y-axis.
9. If at any point you wish to restart, click the Clear button.
10. For any other Size Profiles you would like to create, repeat from step 3.
11. When you are happy with your profiles, click OK to close the dialog.
102
Legion SpaceWorks R6.5.0 User Guide
You can also create Luggage Size Profiles in the Legion Data Template; see Entity profiles
worksheet for instructions.
1. Click or select Data > Data Profiles. The ‘Edit Data Profiles’ dialog box is displayed.
2. From the drop-down list on the left of the dialog box, select Size Profile–Luggage.
3. Click the New button in the top left-hand corner. A new Luggage Size Profile is displayed,
populated with data to reflect the system's 'Normal distribution' of 'Area '(square metres)'
to 'Percentage' of Entities.
4. Enter a name for the new profile in the highlighted name field.
5. If you would rather work in the histogram view, click the option 'Histogram' to display an
empty graph and proceed to step 8.
6. If you wish to change the data, enter new values for 'Area' and 'Deviation'.
7. If you would like to view this data as a histogram instead, click Convert to histogram.
8. In the histogram view you can alter the data by entering values into the cells at the foot of
the graph, or by dragging the columns of the graph up and down.
You can also create Supply Types using the Data Template spreadsheet. See Entity pro-
files worksheet.
1. Click or select Data > Supply Types. The ‘Edit Supply Type’ dialog box is displayed.
2. Click the New button in the top left-hand corner of the dialog box.
3. Enter a meaningful name for the Supply Type in the highlighted box and press Enter.
In the right-hand pane of the dialog box, a chart is displayed featuring rows of the avail-
able Entity Types in your model and columns representing the composition, in per-
centages, of each as part of the Supply Type.
4. There are two ways to add proportions of Entity Types to your Supply Type: click and drag
a percentage across the chart or enter values into the appropriate data cells at the foot of
each column.
104
Legion SpaceWorks R6.5.0 User Guide
◊ To click and drag a percentage into the chart, double-click anywhere within the row
to the right of the name of an Entity Type. Depending on where you click, this will give
you an initial value represented by a coloured bar. Now drag the coloured bar to the
correct value. If you'd like to drag the bar in increments of 0.01% rather than 1%, hold
down the 'Ctrl' key as you drag.
◊ To type percentage values directly into the chart, click into the data cell at the foot of a
column and enter a percentage.
The overall percentage of the Entity Types must total 100%. A counter beneath the chart
indicates the percentages for your guidance.
5. Click Apply or OK to save the new Supply Type. It is added to the ‘Data’ tab of the Model
Builder Object Directory, under Supply Type. A completed Supply Type will resemble the
following.
106
Legion SpaceWorks R6.5.0 User Guide
7. If you want to add extra colours, remove colours or move them up or down in the list, high-
light the relevant colour or colours and click the Add, Remove, Up, or Down buttons.
See the next procedure.
These enable you to define a bespoke filtering criterion to apply to a highlighted colour.
3. Set up a filter by either typing the conditions directly into the space below the control
boxes or by selecting options from their drop-down menus. Reading left to right:
◊ Leave blank or select Not.
◊ Select an activity, metric or information type from the second menu (for example,
Activity, Density, Entity ID, etc.).
◊ Select equals (=), less than (<) or greater than (>).
◊ Depending on your selections so far, select an item from this menu or enter a specific
value if required (for example, a density level).
4. Click Add to verify the logic of your selections and to add them to the list of filters for that
colour.
If your criterion contains a logical error, a message is displayed beneath the list in red, for
example. You must correct any errors for your criterion to be saved.
5. Repeat step 3 to add more criteria to either the same colour or a new colour from your
range.
6. Click Apply to save your changes and OK to exit.
Colour Schemes are listed on the 'Data' tab of the Model Builder's Object Directory.
Please note that using colour schemes when playing back simulations can slow down per-
formance.
108
Legion SpaceWorks R6.5.0 User Guide
110
Legion SpaceWorks R6.5.0 User Guide
Relevant objects have a parameter tab labelled ‘Availability’ where you can specify that the
object use the time scope of a particular Availability Profile. Availability Profiles can also be
used in conjunction with conditions to make them sensitive to operational schemes or events
like emergencies or evacuations. A condition can be entered on the tab labelled ‘Conditions’.
For Direction Modifiers you can specify either an Event Profile or an Availability Profile in their
‘Timescope’ property. When using an Event Profile, the number of pedestrians specified in the
profile in any given time step are affected by the Direction Modifier. When using an Avail-
ability Profile, all Entities within the Direction Modifier when the profile is set to 'On' will be
affected.
Demand is also expressed in terms of pedestrians entering a site over time and this is typ-
ically reflected in the form of an Arrival Profile. The Arrival Profile defines the arrival of ped-
estrians distributed along a ‘timeline’.
To define the demand within a Legion model, object pairs from the OD matrix are combined
with Arrival Profiles (each Entrance in the model must have at least one Arrival Profile asso-
ciated with it).
As you will see in Creating Arrival Profiles automatically, SpaceWorks comes with a spread-
sheet template that can generate Arrival Profiles from an OD matrix.
Creating an OD matrix
There are two stages to creating a simple OD matrix:
● Define the origins and destinations
● Input the usage data (percentage or number of pedestrians moving between origins and
destinations)
Origins can be Entrances, Populated Zones, Evacuation Zones; destinations can be Exits
and Waiting Zones.
1. Define the names of all origins and destinations in your model. The following illustration is
a diagram of a very simple space with entrances, exits and routes to be modelled. The
Entrances (Origins) and Exits (Destinations) need to be represented in the OD matrix.
112
Legion SpaceWorks R6.5.0 User Guide
2. In a spreadsheet, enter the names of all the origins in the first column beginning at cell A2
and moving through A3, A4, etc.
3. Enter the names of all destinations across the first row beginning at cell B1 and moving
through C1, D1, E1 etc.
The Data Template spreadsheet enables you to associate Entity and Supply Types with ori-
gins. See OD matrix worksheet.
4. Enter the data (percentage or number of pedestrians moving between origins and des-
tinations) in the cells where origins and destinations intersect (if there is no required data
for a particular cell, leave it blank).
If you need to split the quantity of pedestrians arriving through an origin by Entity Type, you
can create multiple rows in the Data Template spreadsheet with the same origin name but
associated with as many different Entity Types as you require, see OD matrix worksheet.
This tool is only good for checking currently input model data against expected inputs. Dur-
ing simulation, certain things can change in response to model conditions and objects: for
example, Entities can change their Final Destinations en route when affected by conditions
and Direction Modifiers. Looked at in these terms, the only true OD Matrix for a model is
the one produced by the Analyser (see OD Matrices).
114
Legion SpaceWorks R6.5.0 User Guide
SpaceWorks supports the recent Excel file formats (xlsx and xlsm).
As well as introducing Entity Types, Supplies and Data Profiles into a model, the template can
provide a list of ‘pending’ origin and destination objects with many of their crucial parameters
already defined in Demand Lines. These objects are described as ‘pending’ because the spatial
objects in question still need to be manually placed in the model.
When drawing and placing new Spatial Objects, you will be able to choose from a list of these
imported pre-defined objects; choosing a pending Entrance means that your new Entrance
object will automatically have the correct Demand Line in place.
You can still create and manipulate all your necessary Data Profiles manually: see Manually
creating and editing Arrival, Availability, Speed and Event Profiles and following topics.
● All Data Objects (non-Spatial Objects) are created and added to the model.
● Spatial Objects (the origins and destinations named in the ‘Data Profiles’ worksheet) are
introduced as pending objects. Pending objects can be selected from a drop-down list
when placing and naming origin and destination objects, so that new objects are given
properties from the spreadsheet.
● Pending origin objects (Entrances, Populated Zones and Evacuation Zones) will already
have defined Demand Lines if the necessary information was included on the Data Profiles
worksheet.
Population Profiles don't appear as Data Objects but their origin objects can be selected
from the 'Name' drop-down list when drawing Evacuation Zones.
116
Legion SpaceWorks R6.5.0 User Guide
.
The Data Template spreadsheet
The template we provide is named ‘Legion Data Template.xls’ and, after you have installed
SpaceWorks, it can be found under the ‘Start’ menu, usually in this location: Start > All Pro-
grams > Legion International > Legion SpaceWorks > Data Template.
Depending on your version of Excel, you may be asked to confirm that you want to run
macros with the spreadsheet or indicate that you 'trust' this document. If you don't allow
the template's macros to run, it will not work properly.
The template comprises five worksheets:
● Entity Profiles
● Entities
● OD matrix
● Data Profiles
● Origin Settings
You may find it helpful to save a copy of the spreadsheet to a location of your choice.
Between them they enable you to: define Entity and Supply Types; specify a colour scheme
for Entities; create bespoke speed profiles; paste in or set up an OD matrix; create all the
data profiles you may need.
The ‘Origin Settings’ sheet contains advanced settings that enable you to take the demand
data associated with an origin and fine tune it further. This might involve creating different
train services, establishing the frequency and pattern of services, or manipulating data by
inputting timetable data.
You can also distribute an Arrival Profile across multiple entrances (suborigins) to simulate
alighters from each carriage.
General icons
There are three special icons, which you can find on the toolbar labelled ‘Add-Ins’ or, depend-
ing on your version of Excel, on a floating toolbar visible when you open the workbook:
– QA Worksheet (click this to check the current worksheet for errors; if errors are dis-
covered, a message is displayed to help you resolve the issue).
– QA Template (click this to check the whole of the data template for errors. Note that this
can take more time than checking a single worksheet, depending on the amount of inform-
ation in the template. if errors are discovered, the tabs of affected worksheets are highlighted
in red).
– Restore (click this to restore the spreadsheet to its original format if you accidentally
remove some of its functions by, for example, deleting a formula or cutting and pasting
between cells). If you suspect something is working incorrectly, it is always worth clicking
this icon to see if it solves the problem. This icon has a special function when you use it on the
‘Origin Settings’ sheet (see Adding and restoring Origin Tables).
118
Legion SpaceWorks R6.5.0 User Guide
2. Enter a name for the profile in the empty cell labelled ‘Name’.
3. To create an Luggage size profile histogram, enter percentage values beneath the appro-
priate sizes of Entity size (area in square metres).
4. Repeat steps 1 to 3 for any additional profiles you would like to create.
Entities worksheet
This worksheet enables you to create Entity Types and organise your Supply Types.
Each Supply Type must eventually have a ‘Composition’ of 100% to avoid an error.
3. Repeat step 2 for any further Entity Types you would like to add to your Supply Type.
OD matrix worksheet
In this worksheet you can paste in, or manually create, an OD matrix for your model. For
detailed information about the role of OD matrices and how to prepare them, please see
Demand: Origin–Destination Matrices & Arrival Profiles.
This worksheet also enables you to assign Entity Types/Supplies to origin objects and to cre-
ate simple colour schemes for Entities based on the colour of the destinations they are tar-
geted to.
The following procedure assumes you have an OD matrix that you wish to paste in. The steps
are the same if you are creating a matrix from scratch, you just need to input data manually,
rather than paste it.
You can reference other workbooks and worksheets if you prefer, rather than paste data;
see Excel documentation.
120
Legion SpaceWorks R6.5.0 User Guide
To specify Entity choice for an OD value, enter c rather than an absolute number or per-
centage. See A note on Entity Choice for more information.
4. Click in the cell beneath (next to ‘Colour’), click the 'Fill' icon on the toolbar and pick
a colour from the palette (different versions of Excel may have different methods for chan-
ging the colour of cells)
5. Paste the appropriate values (numbers or percentages) into the cells where origins and
destinations intersect.
6. In the cell immediately to the right of each origin name, select an Entity or Supply Type
from the drop-down list.
When Arrival Profiles are automatically created on the Data Profiles sheet, they are given the
name of the ‘Origin’; any origin that appears more than once will be automatically numbered
‘...#001’, ‘...#002’, in the usual Legion manner (see Creating Arrival Profiles automatically).
122
Legion SpaceWorks R6.5.0 User Guide
This worksheet also contains a useful ‘Profile options table’, which lists all the data profiles
you can create and the types of information that are necessary or optional. This table contains
helpful ‘Tool Tip’ comments: to see them, hover your cursor over a cell that contains a blue tri-
angle tag.
This screenshot illustrates completed Data Profile settings and a ToolTip comment.
Remember that you can have as many different model timelines as you need. All data pro-
files refer to the timeline beneath which they appear.
If you define more time intervals (for example, if you split a model’s runtime into five-minute
intervals), data will be distributed across these individual time intervals according to the
value in the ‘Spread’ column.
If you leave the Spread value blank, the data will be evenly spread across your model runtime
(or within each interval if you have a more detailed timeline). If a spread value exceeds a
time interval, any left-over demand is added to the next interval (unless the interval is the
last in the sequence).
If you leave the ‘Spread’ cell blank for an Arrival Profile, the data within each interval will
be spread uniformly across the interval; if you enter 1, no spread will occur.
For example, if you set minimum and maximum limits of 2 and 5, a cell containing an ini-
tial quantity ‘10’ will ultimately be modified to contain between 5 & 8 (if noise is sub-
tracted) and between 12 and 15 (if noise is added).
3. If you want to change the time over which the data is spread, enter a new value (in
seconds) in the cell labelled ‘Spread’.
4. If your OD matrix was specified in percentages rather than actual number of pedestrians,
you will need to enter actual numbers for each time interval of your model runtime.
If you would like to rename an Arrival Profile after creating it automatically, enter the new
name in the relevant ‘Profile name’ cell.
You will receive a warning message if you enter origin or destination names that do not
appear in the OD matrix but you can still import the data into the Model Builder.
5. In the next cell along, select a ‘Supply/Entity Type’ from the drop-down list.
6. In the next cell along, select a ‘Destination’ from the drop-down list, or type in your own.
7. To add a range of statistical noise to your data, specify minimum and maximum levels in
each profile’s ‘Noise’ cell, separating them with a comma.
8. If you wish to spread the OD matrix data over the course of the model runtime or over a
specific time, enter a value (in seconds) in the cell labelled ‘Spread’, equivalent to the
runtime of the simulation.
9. Add the total number of demand in the first cell of the profile (column J in our template). If
you want to add precise data linked to specified time intervals, see the next procedure.
Leaving the ‘Spread’ cell blank will spread the data over any defined time intervals.
124
Legion SpaceWorks R6.5.0 User Guide
You can define a single row of time intervals for all your Arrival Profiles or create indi-
vidual rows for particular Entrances.
You can also create Availability Profiles when generating frequency based arrivals on the
‘Origin Settings’ worksheet; see Creating Availability Profiles (Frequency based settings).
For the relationship between Availability Profiles and Gate Control Profiles, see Gates,
Gatelines, Gate Control Profiles and Availability Profiles.
5. Under each relevant time interval, enter the numbers of Entities you would like to be
affected by the event associated with this Event Profile.
If you enter 2, this means that two Entities per minute will be allowed to leave through the
Exit for the duration of the time interval.
3. Under each relevant time interval, enter the number of Entities per minute that are
allowed to leave through the Exit at this point.
126
Legion SpaceWorks R6.5.0 User Guide
◊ To specify a Variable delay, enter three values separated by commas for the min,
mean and max values.
You will receive a warning message if you enter origin or destination names that do not
appear in the OD matrix but you can still import the data into the Model Builder.
4. In the next cell along, select a ‘Supply/Entity Type’ from the drop-down list.
5. In the next cell along, select a ‘Destination’ from the drop-down list, or type in your own.
6. In the cell that corresponds to the 'Input' column, enter the number of Entities you require
for the population of the Evacuation Zone.
Delay Profiles
A Delay Profile determines how and when Entities are delayed when they are affected by a
Delay Point. They are used to model temporal elements such as the time taken to be serviced
at ticket machines or the length of time passengers spend inside a store.
As well as specifying a delay period, you can also define at which time over the course of a
simulation, this delay period is effective. For example, you can create a Delay Profile which
delays Entities for 12 seconds but is only active for a certain ten minute period of the sim-
ulation.
You can set a profile which endures throughout the whole length of the simulation, or one that
is effective at different periods of the simulation. You can also specify whether a delay is
fixed, whether it applies until a certain simulation time or whether it varies.
1. Click or select Data > Data Profiles. The ‘Edit Data Profile’ dialog box is displayed.
2. From the drop-down list on the left of the dialog box, select Delay Profile.
You can also create Delay Profiles using the new Data Template spreadsheet; see Creating
Delay Profiles
3. Click the New button in the top left-hand corner. A new ‘empty’ profile is displayed at the
top of the ‘Delay Profile’ tab.
4. Click the Add button on the right-hand side of the dialog box. A red ‘time block’ appears in
the profile, spanning the whole of the simulation time.
5. Click on the time block to select it. The Delay Settings parameters become available.
To remove a time block from a profile, click on it and then click the Remove button.
6. To set a particular duration for the Delay Profile, change the times in the Start and End
boxes.
7. Select the type of delay you want to apply from the three):
◊ Fixed delay of–enter a fixed delay period, in seconds.
◊ Wait until–enter either the model time up to which you would like Entities to be
delayed or select the 'Condition' option and click the Condition button to set up a con-
ditional circumstance like density or count inside.
◊ Variable delay of–enter values in seconds for a Boltzmann Distribution (this requires
you to enter values for min, mean and max values).
The different types of delay are colour coded: ‘Fixed’ is red, ‘Delay until’ green, ‘Variable
delay’ blue.
8. Choose one of the two Action at End Time options to apply at the end time of the delay
profile is reached:
◊ Continue being delayed-if an Entity steps into a Delay Point while this particular
delay is still active, it will be delayed for the full duration assigned to it (for example
12 seconds), even if the delay expires in the meantime.
◊ Stop being delayed-a delayed Entity will not be further delayed beyond the End Time
of this time block.
The following procedure explains how to create a Delay Profile with three different types of
delay and three different time periods.
The Action at End Time options (‘Continue being delayed’ and ‘Stop being delayed’), men-
tioned in step 10, instruct Entities to either wait for the full delay period to stop waiting when
the End Time of the particular delay (time block) is reached.
For example, an Entity may step into a Delay Point which has a fixed delay of 12 seconds as
part of a delay period which is about to expire in 4 seconds. If the option selected is ‘Continue
being delayed’, this Entity will be delayed for the full 12 seconds but if the option is ‘Stop
being delayed’, the Entity will be delayed only for the remaining 4 seconds of the particular
delay’s time period.
128
Legion SpaceWorks R6.5.0 User Guide
The relationship between legacy gatelines from earlier versions of SpaceWorks and Gate
objects (version R6.5.0 onwards) requires that Gate Control Profiles can be created from
Availability Profiles and also that Availability Profiles can be created from Gate Control Pro-
files. See Gates, Gatelines, Gate Control Profiles and Availability Profiles.
3. In each 'Time interval' cell that intersects with your profile's row (these cells are in
columns J, K, L and so forth), type in one of the required states for your Gate:
◊ IN
◊ OUT
◊ FREE IN
◊ FREE OUT
◊ FREE BOTH
◊ CLOSED
To create a Gate Control Profile using the 'Edit Data Profiles' dialog:
1. Click or select Data > Data Profiles. The ‘Edit Data Profile’ dialog box is displayed.
2. From the drop-down list on the left of the dialog box, select Gate Control Profile.
3. Click the New button in the top left-hand corner. A new ‘empty’ profile is created and
added to the left-hand column. If you wish, you can rename the profile by highlighting the
given name and entering a new name.
The parameters of the new profile are displayed in the main part of the dialog:
130
Legion SpaceWorks R6.5.0 User Guide
1. Click Add. A new time block is added to the profile. You can edit this to reflect required
time period and mode of operation in the panel labelled 'Gate Mode Settings' in the fol-
lowing steps.
2. For 'Active Period', input Start and End times for the time block.
3. For 'Gate Mode' select the required option from the drop-down menu:
◊ IN–these blocks are coloured green.
◊ OUT–these blocks are coloured red.
◊ FREE IN–these blocks are coloured blue.
◊ FREE OUT–these blocks are coloured purple.
◊ FREE BOTH–these blocks are coloured orange.
◊ CLOSED–these blocks are coloured black.
This screenshot shows a Gate Control Profiles containing each of these time blocks
(modes).
As the interface text states, any time gaps in the profile will be as if the Gate were
CLOSED, so you can leave gaps in the profile's timeline rather than adding CLOSED blocks
if you prefer.
4. Repeat steps 4 to 6 for additional time blocks you would like to add to the profile.
5. If you would like to secure the profile against accidental changes to it, check Lock
profile.
6. Click OK or Apply to save the profile.
The relationship between legacy gatelines from earlier versions of SpaceWorks and Gate
objects (version R6.5.0 onwards) requires that Gate Control Profiles can be created from
Availability Profiles and also that Availability Profiles can be created from Gate Control Pro-
files.
1. Click or select Data > Data Profiles. The ‘Edit Data Profile’ dialog box is displayed.
2. From the drop-down list on the left of the dialog box, select Gate Control Profile.
3. Click the New button in the top left-hand corner. A new ‘empty’ profile is created and
added to the left-hand column. If you wish, you can rename the profile by highlighting the
given name and entering a new name.
4. Right-click on the name of the new profile and select Convert from Availability Profile
(s).
The 'Gate Control Profile from Availability Profile(s)' dialog is displayed.
132
Legion SpaceWorks R6.5.0 User Guide
5. For each 'Gate Mode' that you would like to set in your Gate Control Profile (IN, OUT, FREE
IN, FREE OUT, FREE BOTH, CLOSED), you can now select settings from a previous Avail-
ability Profile to specify when the state is active. As an example, let's set the IN state.
6. In the IN row, double- click in the 'Selection' cell and choose 'Direct' or 'Inverse' ('Not
used' is the default choice and just means that you will ignore this Gate Mode entirely):
◊ Direct–this will use the Availability Profile's 'On' states to define when your Gate is set
to be an IN Gate.
◊ Inverse–this will use the Availability Profile's 'Off' states to define when your Gate is
set to be an IN Gate.
7. Double-click in the 'Availability Profile' cell and choose an Availability Profile from the
drop-down list (if you have none, you will need to import or create at least one).
8. In the 'Pulse Mode' cell, either leave 'As AV Profile' to preserve the profile's original Pulse
settings (and skip to step 10), or double-click and select 'Custom' to add your own value.
9. If you selected 'Custom', double-click in the 'Pulse Duration' cell and enter your own value
(in seconds).
10. Repeat steps 6 to 8 for any more Gate Modes you would like to set. Remember that you
can use the same Availability Profile or different Availability Profiles for each mode.
11. Click OK to save your changes and create your Gate Control Profile(s). Successfully cre-
ated profiles will appear in the Object Directory and in the 'Edit Data Profile' dialog.
1. Click or select Data > Data Profiles. The ‘Edit Data Profile’ dialog box is displayed.
2. From the drop-down list on the left of the dialog box, select Gate Control Profile.
3. Right-click on the name of the Gate Control Profile you want to use as the basis for cre-
ating the Availability Profile or Profiles and select Convert to Availability Profile(s).
The 'Availability Profile(s) from Gate Control Profile' dialog is displayed.
4. For each 'Gate Mode' of the Gate Control Profile (IN, OUT, FREE IN, FREE OUT, FREE
BOTH, CLOSED), you can now create an Availability Profile based on its settings. As an
example, let's use the IN state.
5. In the IN row, double- click in the 'Selection' cell and choose 'Direct' or 'Inverse' ('Not
used' is the default choice and just means that you will ignore this Gate Mode entirely):
◊ Direct–this will use the Gate Control Profile's 'IN' mode to define 'On' periods in the
new Availability Profile.
◊ Inverse–this will use all modes not defined as 'IN' in the Gate Control Profile to define
'Off' periods in the new Availability Profile.
6. Double-click in the 'Availability Profile' cell and enter a name for the new Availability Pro-
file.
7. In the 'Pulse Mode' cell, either leave 'As Gate Profile' to preserve the profile's original
Pulse settings (and skip to step 9), or double-click and select 'Custom' to add your own
value.
8. If you selected 'Custom', double-click in the 'Pulse Duration' cell and enter your own value
(in seconds).
9. Repeat steps 5 to 7 for any more Availability Profiles you would like to create. Each row
you complete in this dialog will create a new Availability Profile based on your settings.
10. Click OK to save your changes and create your Availability Profile(s). Successfully cre-
ated profiles will appear in the Object Directory and in the 'Edit Data Profile' dialog.
134
Legion SpaceWorks R6.5.0 User Guide
● Split into suborigins–this section enables you to divide an Arrival Profile into smaller
profiles in order to model, for example, the different carriages of an arriving train. On
import, a pending object will be created for each sub-origin.
● Frequency based–this section enables you to create arrival patterns based on a fre-
quency (5 trains per hour, for example) or to set up a sequence of arrivals for different ser-
vices (three express trains – one stopping service – three express trains, for example).
If you enter a number lower than the number you already have, say 3, this will restore
three tables only, removing the fourth or fifth, etc. Be certain not to remove tables for
which you have entered required data.
3. The specified number of tables will be added. Any existing data is retained and all func-
tionality is restored to the worksheet.
1. In the ‘Origin Name’ box, select an origin from the drop-down list.
A list of Arrival Profiles associated with this origin is displayed in the table beneath the Ori-
gin Name.
2. Next to the box labelled ‘Split into suborigins?’ select Yes from the drop-down list.
This makes the relevant ‘Distribution’ cells available for use.
3. In the cells to the right of the label ‘Name’, enter the names of the train carriages or divi-
sions you need (for example, ‘Car 1’, ‘Car 2’ and so on).
4. For each division, enter a percentage value; the total ‘Composition’ must equal 100%, how-
ever.
5. If you want to associate a Type ID created in step 2 with one of your distributions, click in
the cell to the right of the ID and select a Distribution from the drop-down list in the ‘D’
column.
You can apply a distribution to as many Arrival Profiles as you like. For example, you may
have profiles for ‘train3’ and ‘train4’ and you may wish to apply the carriage distribution
defined as ‘D1’ to both of them.
6. Repeat these steps for as many distributions you need, up to a maximum of six.
During import, these settings will create six Arrival Profiles named: ‘train1’, ‘train2’, ‘train1-
car1’, ‘train1-car2’, ‘train2-car2’, ‘train2-car2’ as seen here on the ‘Imported’ tab of the
Object Directory.
136
Legion SpaceWorks R6.5.0 User Guide
You do not need to have created suborigins in order to use frequency based data.
You can also create Availability Profiles that are offset from these arrival pulses, so that you
can associate certain events (like boarding or departing) with the arrival times and data.
We’ve broken down the frequency based portion of the worksheet into three topic areas:
Ignoring Type IDs, using Type IDs, and Creating Availability Profiles.
To enable all frequency based functions, you must first select Yes from the drop-down list
next to the cell labelled ‘Frequency based?’.
If you don’t randomise arrivals, the first arrival will occur at the very start of the time
interval.
6. To add random noise to the amount of Entities in your Arrival Profile, enter ‘Lower’ and
‘Upper’ limit values in the appropriate cells.
As an example, if you set lower and upper limits of 2 and 5, a cell containing an initial
quantity ‘10’ will ultimately be modified to contain between 5 & 8 (if noise is subtracted)
and between 12 and 15 (if noise is added). The demand total is preserved regardless of
noise.
7. To spread the arrival of Entities over a certain period, add a value (in seconds) to the cell
labelled ‘Spread arrivals (sec)’. This ensures that Entities don’t all arrive in one instant-
aneous surge, which may be unrealistic.
This spread will override the spread defined on the Data Profiles worksheet.
This portion of the worksheet should now resemble this screenshot.
After import, these settings will create the same six Arrival Profiles mentioned in Splitting an
Origin into Suborigins. However, the data for the suborigins (the train cars) will be divided
into 10 arrival ‘spikes’. This is due to the ‘Arrival frequency’ of ‘10’ per period (in this case the
period is the whole runtime of one hour). This graph illustrates these spikes after import.
138
Legion SpaceWorks R6.5.0 User Guide
2. Select Use from the drop-down list labelled ‘Use/Ignore type IDs’.
3. Click the ‘Copy time intervals’ button to add the correct time intervals for the Arrival Pro-
file in question.
4. From the drop-down list labelled ‘Apply service type sequence?’, select Yes or No. If you
choose No, go to step 8.
‘Continuous’ repeats across the runtime and across time intervals (without restarting);
‘Per interval’ respects the start of each new time interval and will restart at the beginning
of each.
5. From the drop-down list labelled ‘Sequence: Continuous or Per Interval’ choose Continu-
ous or Per Interval. If you choose ‘Continuous’, go to step 7.
6. Having chosen ‘Per Interval’, enter either:
◊ the sequence of Type IDs you wish to apply to all time intervals (enter them into the
cell labelled ‘All’; for example, enter T1,T2).
or
◊ the sequence of Type IDs you require in the appropriate cells along the timeline, for
example T1,T2 in the first interval, T1,T1,T2 in the next interval, and so on.
Using the examples in step 1, this means that a sequence of ‘Express, Stopping Service’
will occur in these time intervals, starting from the beginning in each new interval. Now go
to step 8.
7. Having chosen ‘Continuous’, enter the sequence of Type IDs you require in the cell labelled
‘Continuous sequence (Type ID)’, for example, T1,T2
Using the examples mentioned in Splitting an Origin into Suborigins, this means that a
sequence of ‘Express, Stopping Service’ will recur continuously throughout the model’s
runtime.
8. To specify the frequency of arrivals (across the whole simulation or within individual time
intervals), enter either:
If you don’t randomise arrivals, the first arrival will occur at the very start of the time
interval.
11. To add random noise to the amount of Entities in your Arrival Profile, enter ‘Minimum’
and ‘Maximum’ values in the appropriate cells.
As an example, if you set minimum and maximum limits of 2 and 5, a cell containing an ini-
tial quantity ‘10’ will ultimately be modified to contain between 5 & 8 (if noise is sub-
tracted) and between 12 and 15 (if noise is added). The demand total is preserved
regardless of noise.
12. To spread the arrival of Entities over a certain period, add a value (in seconds) to the cell
labelled ‘Spread arrivals (sec)’. This ensures that Entities don’t all arrive in one instant-
aneous surge, which may be unrealistic.
This portion of the worksheet should now resemble this screenshot.
This spread will override the spread defined on the Data Profiles worksheet.
After import, these setting will create the same six Arrival Profiles mentioned in Splitting an
Origin into Suborigins. However, the data for the suborigins (the train cars) will be divided
140
Legion SpaceWorks R6.5.0 User Guide
into two groups of six arrival ‘spikes’. This is due to the sequence ‘T1,T2’ and the ‘Arrival fre-
quency’ of ‘12’ per period (in this case the period is the whole runtime of one hour). This
graph illustrates these spikes after import.
When associated with a Direction Modifier in the Model Builder, this profile could be useful for
prompting passengers to start boarding for one minute, five seconds after the arrival of their
train.
After import, four Arrival Profiles will be created, named ‘t1 board’, etc.
and they can be viewed in the Edit Data window, along with all data objects. Note that the
start and end times correspond to the offset and duration values specified in the example.
142
Legion SpaceWorks R6.5.0 User Guide
2. Click the ‘Browse’ button next to the box labelled ‘File Selection’.
3. From the ‘Open’ dialog box, select the spreadsheet you want to import and click Open.
4. Click the Validate button to check and load the spreadsheet (this may take a minute or
so, depending on the amount of data it contains).
Any errors will be highlighted in red and explained in the ‘Status’ portion of the dialog box.
Fix any errors in the spreadsheet and then import it again by returning to step 2.
5. Click Import.
If the Model Start Time in your spreadsheet is different from the Model Start Time in the
current model, you will receive a warning message with the following prompt: “Would you
like to update any existing data profiles to begin at the new imported start time?”
You may lose data from existing profiles if you import a new Start Time but do not update
existing profiles so that they fall within the new run time.
6. Click Yes to update the existing profiles or No to leave them unchanged.
The data import continues.
7. Any additional warnings generated by the import process will be displayed in the ‘Status’
area of the dialog box. You can either change the spreadsheet in line with the warnings or
choose to proceed regardless.
8. Click OK to finalise the import.
144
Legion SpaceWorks R6.5.0 User Guide
—there are errors in the file (these need to be fixed before import can take place)
—there are warnings associated with the file (the file can still be imported but may be lack-
ing certain information)
—the imported file is good
If you want to check the history of data imports, click on the Import History button for a
list of activities.
Every time you import a file, it is cached in the programme's memory and kept until that ver-
sion is updated as described above. If you go on to modify the imported data within the Model
Builder, you can always decide to restore the data from the last validated and imported file.
When a file is available in the cache, the 'Import' button will now be labelled 'Restore'. Click
Restore to return the imported data to the state it was in at the last successful import.
If you have never imported a Data Template into the model, the option to export will not
be available to use.
146
Legion SpaceWorks R6.5.0 User Guide
Bear in mind that Availability profiles simply use OFF and ON as data (in terms of
integers: 0 and 1 respectively).
Once you have created a Data Profile, you can also modify and manipulate it. These topics are
covered towards the end of this part of the guide.
1. Click or select Data > Data Profiles. The ‘Edit Data Profiles’ dialog box is displayed.
2. From the drop-down list on the left of the dialog box, select which type of Data Profile you
want to create.
3. Click the New button in the top left-hand corner. A new ‘empty’ graph is displayed.
4. Type a meaningful name for this profile in the highlighted name box and press Enter. It is
a good idea to name a profile in such a way that it refers to the object within the model
that references it, for example “Entrance Street”.
5. Enter data into the graph using any of the methods described in Entering data into a graph
1. Click or select Data > Data Profiles. The ‘Edit Data Profiles’ dialog box is displayed.
2. From the drop-down list on the left of the dialog box, select Availability Profile.
3. Click the New button in the top left-hand corner. A new ‘empty’ graph is displayed.
All the cells are automatically set to 'OFF'.
4. To set periods of availability, locate the cells (time steps) along the X-axis that you would
like to change and double-click on 'OFF' so that it displays 'ON'.
5. Click OK.
You can also enter data into an Availability Profile using the following methods:
Entering data into a graph
Applying Pulse
1. Click or select Data > Data Profiles. The ‘Edit Data Profiles’ dialog box is displayed.
2. From the drop-down list on the left of the dialog box, select Speed Profile.
3. Click the New button in the top left-hand corner. A new Speed Profile histogram is dis-
played.
148
Legion SpaceWorks R6.5.0 User Guide
When adjusting the values in the histogram, take care to maintain a total of 100%. You
will see a percentage indicator to the left of the y-axis.
6. Click Apply or OK to save the Speed Profile.
Any profiles you create will be available to you when creating Entity Types.
● Graph View–shows a graphical representation of the demand data, with time specified
along the horizontal axis and Entities per second on the vertical axis.
● Cell View–shows the numerical data associated with the data profile, with each cell rep-
resenting one second in the profile.
Free-drawing data
This enables you to enter data directly into a graph by clicking and dragging your cursor along
the X and Y axes.
If the graph is locked, the padlock icon above the graph will look like this. If it is
unlocked, it will look like this. Click on the padlock icon to change the state of the
graph from locked to unlocked or vice-versa.
While you are holding down the left mouse button, a tool-tip displays the time interval and
number of Entities.
4. If you want to add values for many time intervals, click and hold the left mouse button and
move your cursor over the graph. You will see that Entities are added over time as you
move the cursor along the X axis and up and down the Y axis.
Experiment by moving the cursor around the graph. Notice that the graph scrolls hori-
zontally and vertically according to the movement of your cursor.
5. When you are happy with the demand data you have ‘drawn’ into the graph, click the
Apply or OK button to save the Arrival or Event Profile.
The process is slightly different for an Availability Profile as the data only represents ON
or OFF. To add data for an Availablity profile, click in the graph at the point on the X axis
(time interval) where you want to add or change data: for ON, click near the top of the
time interval's column and to specify OFF, click near the bottom of it.
150
Legion SpaceWorks R6.5.0 User Guide
1. Click once into the time interval cell at the foot of the graph into which you want to enter a
number of Entities.
The existing value is highlighted.
The process is slightly different for an Availability Profile as the data only represents ON
or OFF. To toggle between ON and OFF in cells, just double-click within them.
Availability Profiles only require 0 and 1, which represent OFF and ON respectively.
To be pasted successfully, the data must incorporate one of these time formats:
If the data contains the time format mm:ss, the Model Builder will assume that it is
hh:mm and will not generate a warning or error. It is vital that all times specified in the
data are contained within your model’s overall run-time.
● hh:mm:ss (hours, minutes and seconds)
● hh:mm (hours and minutes)
● Absolute seconds after midnight (the number of seconds since midnight–00h00m–so that
they are correct for your model’s start time). For example, to specify a demand at 08h00
in seconds, you would specify 28,800 seconds after midnight, which is 8 x 3600 seconds
per hour.
● Click the Show Cells button to show or hide the data cells.
● Click the edges of individual cell boundaries and drag to increase or reduce their width:
● Click the button to the left of the time interval cell column headings to select all cells:
and drag the edges of a cell boundary to simultaneously increase or decrease the width of
all cells.
● To show the entire graph, right-click in the graph and select View > Show entire graph.
To revert to the original view, repeat this action.
● To show the full length of the X axis, right-click in the graph and select View > Show
entire X axis.
● To show the full length of the Y axis, right-click in the graph and select View > Show
entire Y axis.
● To set the scales of the two axes, right-click in the graph and select View > Set axis
scales.
◊ Drag the horizontal and vertical sliders, located below and to the left of the Example
Graph, to change the scale for the relevant axis.
152
Legion SpaceWorks R6.5.0 User Guide
◊ To show the entire horizontal axis in the graph view window, check the Show entire X
range box. Similarly, to show the entire vertical axis in the graph view window, check
the Show entire Y range box.
◊ Click the OK button to apply the scale changes or click the Cancel button to discard
your changes.
At horizontal scales of less than one pixel per bar, it is not possible to manually draw val-
ues in the graph view using Free Draw. This is due to the ambiguity in deciding which time
the values should be applied to. If you attempt to do so, an error message is displayed.
Ensure that the file you are importing is not already open in another application as this will
create a file-sharing error and you will not be able to import it.
3. Browse to the data file you want to import and select the correct file type from the drop-
down list in the Files of type field. The ‘Import’ dialog box is displayed.
If the original data file has not been changed since it was imported, click the Close button.
154
Legion SpaceWorks R6.5.0 User Guide
If the original data file has been changed since it was imported, click the Update button.
3. Enter the correct information about rows, columns and headers as described in step 4 of
To import data for a single Arrival or Event Profile:.
If there are no formatting or time errors in the updated file, it is successfully updated and
the new values are reflected in the Data Profile.
Do not left-click at this point as this will change the selection and result in data being pas-
ted only once.
The start time is indicated by a small green triangle on the horizontal axis.
4. From the right-click menu, select Edit > Repeated Paste. The ‘Repeated Paste’ dialog
box is displayed.
5. Enter the Number of repetitions (the number of times you want to paste the copied
data).
or
Select the Duration to paste over option and enter the duration (in seconds) over which
you want to paste the copied data.
6. To specify the interval between each of the repetitions, enter a number in the box labelled
‘Paste data every n seconds’.
This interval is the time between the start of each repetition of data: a 10s interval will
paste your data anew every 10s from the first time it was pasted.
7. Click the OK button.
The data is pasted according to the number of repetitions you specified or over the time
interval you entered.
156
Legion SpaceWorks R6.5.0 User Guide
There is no Undo function in the ‘Edit Data Profile’ dialog box, so take care when altering
data. If you want to experiment with demand data but do not necessarily want to save
your changes, always click Cancel rather than OK or Apply in the ‘Edit Data Profile’ dialog
box.
Once you have entered demand data into an Arrival or Event Profile, you can apply modi-
fications to selected ranges of data, using one of these three options:
● Set to Value–sets the demand within selected entries to a specified value (or changes the
state of data to 'ON' of 'OFF' if you are modifying an Availability Profile).
● Change by Value–adjusts the demand within selected entries by a specified value.
● Set Percentage–adjusts the demand within selected entries by a specified percentage.
The following procedure assumes you have already selected the Data Profile whose data you
want to modify.
When applying the ‘Change by value’ modification, the modified value can never be less
than zero, regardless of the value you enter. For example, 22 reduced by 60 produces
zero.
◊ Change by value
Enter the value by which you want to change the selected data. For example, if you
enter 10, the selected data will be increased by 10 when you click OK. To reduce the
value of the selected data, enter a minus sign before the value. -10 will reduce the
selected data by 10.
◊ Set percentage
Enter the percentage by which you would like to modify the selected data. This per-
centage must be greater than or equal to zero. If you enter 125%, the selected data
will be increased by 25%; if you enter 75%, the selected data will be decreased by
25%.
This percentage change is applied individually to all selected data entries and returns a
result rounded off to the nearest integer.
4. Click OK to apply your modifications to the selected data.
158
Legion SpaceWorks R6.5.0 User Guide
There is no Undo function in the ‘Edit Data Profile’ dialog box, so take care when altering
data. If you want to experiment with demand data but do not necessarily want to save
your changes, always click Cancel rather than OK or Apply in the ‘Edit Data Profile’ dialog
box.
Availability Profiles only use 'OFF' and 'ON' (0 and 1) as data, therefore Spread and Split
do not apply to them.
Applying Pulse
The Pulse function enables you to quickly define a Standard Pulse (single fixed value over a
given time interval) or a Pulse Train (repeated standard pulse over a specified period of
time).
The following procedures assume that you have already selected a suitable Data Profile. Avail-
ability profiles work slightly differently from the other data profiles, so their procedures are
described in Applying Pulse to Availability Profiles.
To apply Pulse:
1. Right-click in the graph and select Apply > Pulse. The ‘Pulse/Pulse Train’ dialog box is dis-
played.
2. Enter the Start time for the Pulse in seconds.
3. Enter the Duration of the Pulse in seconds.
4. Enter the number of People (Entities) to apply to each second of the Pulse.
To apply a Pulse Train at this point, see the next procedure below.
5. If you don’t want the pulse to overwrite the existing data and prefer the pulse to be added
to the existing data, untick the Overwrite box under ‘Pulse Application’.
6. Click the OK button to apply the Pulse to the Data Profile.
5. If you don’t want the Pulse to overwrite the existing data and prefer the pulse to be added
to the existing data, untick the Overwrite box.
6. Click the OK button to apply the Pulse Train.
If you selected the 'ON' state, the pulse duration will consist of the 'ON' value and the
'Time Between' will consist of the 'OFF' value. These values are reversed if you selected
'OFF' as your 'State'.
4. In the Time between box, specify the number of seconds you want to pass between
pulses.
5. Click the OK button to apply the Pulse Train.
Applying Spread
The Spread function takes the demand in a single demand entry and spreads it uniformly
across a specified time period, starting from the time of the selected demand.
The following procedure assumes that you have already selected an Arrival or Event Profile.
To apply a Spread:
1. Select the single demand entry that you want to Spread.
If you want to define the duration of the spread at the same time as selecting the data
entry, click on the entry and drag the cursor to the right until you have also selected the
time-range.
160
Legion SpaceWorks R6.5.0 User Guide
If the result of a spread overlaps either existing demand in the profile or demand from sub-
sequent spread selections, the ‘Spread Duration Overlaps Existing Data’ message is dis-
played.
In this situation, you have three choices:
● Click Abort to stop the spread operation and return to the ‘Edit Data Profile’ dialog box.
● Click Overwrite to replace the existing demand within the Spread Duration with the result
from the spread.
● Click Increment to add the resulting spread data to any existing demand within the
Spread Duration.
Applying Interpolation
The Interpolation function takes the demand values at the start and end of a selected data
range and generates demand data by interpolating values linearly from the first value in the
data range to the last.
You can use interpolation to quickly fill-in sections of the demand graph with equal values or
to generate linearly increasing or decreasing demand between two different values.
The following procedure assumes that you have already selected a Data Profile.
To apply Interpolation:
1. Select the range of data over which you want to apply the interpolation, including the first
and last values which define the interpolation.
Select the first and last data values very carefully to avoid unexpected results.
2. Right-click in the graph and select Apply > Interpolation. The interpolation is performed
and the results displayed in the graph.
The following examples illustrate the Interpolation function. The selected demand data is illus-
trated in the left-hand graphs with the results of the Interpolation illustrated in the right-hand
graphs.
162
Legion SpaceWorks R6.5.0 User Guide
For multiple ranges of data, always leave at least one second between the end of one
range and the start of the next.
Select the Interpolation range carefully. If you accidentally select zero as the first or last
values, the result will be inaccurate.
When interpolating Availability Profiles, the function will simply fill the selected range with
'ON' values (1).
When applying Random Noise to an Availability Profile, the process will simply randomise
the 'OFF' and 'ON' states throughout your selected data range.
The following procedure assumes that you have already selected a Data Profile.
164
Legion SpaceWorks R6.5.0 User Guide
6. Click the OK button to apply random noise to your selected data entries.
The following example shows the outcome of applying random noise to a constant demand of
20, using lower and upper limits of 2 and 5, and applying the Mix addition and subtraction of
random noise method.
Applying Split
The Split function takes a range of selected data, and splits it into a number of smaller, equal
values distributed evenly or randomly throughout the selected range.
To apply Split:
1. Select the range of data over which the split is to be distributed, starting with the demand
to be split in the first entry in the range.
2. Right-click in the graph and select Apply > Split. The ‘Apply Split’ dialog box is displayed.
3. Enter a Number of sections to split into.
4. Enter the Minimum interval to be observed when the split data is distributed (absolute
seconds from midnight or one of the recognised time formats).
5. Tick one or more of the following options, or leave them all unticked if you don’t want to
apply any of them:
◊ Random start
Specifies whether the first entry of the Split data is placed randomly rather than at the
start of the selected range.
◊ Random distribution of sections
Specifies whether the new Split data entries are randomly distributed within the selec-
ted range.
◊ Force Minimum Interval before first placement
Ensures that the first entry of the Split demand is placed such that the Minimum Inter-
val you specified is maintained between the first entry and any other demand entry
before the selected range.
6. Click the OK button to apply the Split.
The following example illustrates an initial demand of 60 being split into 4 sections over 50
seconds, applying a random distribution with a minimum interval of 7 seconds.
166
Legion SpaceWorks R6.5.0 User Guide
Scenarios
Data Scenarios enable you to model, simulate and analyse a range of different demand situ-
ations for the same model.
This means that your model (‘lgm’) file can have several different scenarios associated with
it, such as ‘Morning Rush Hour’, ‘Afternoon’, ‘Evening Rush Hour’, ‘Match Day’, etc., all of
which can be simulated and analysed without having to change the model file.
Base Scenario
Every model must have a Base Scenario, which is defined as all the data that is associated
with the Spatial Objects in the model. For example, if an Entrance’s parameters reference an
Arrival Profile called ‘West Entrance Demand’, then this Arrival Profile automatically becomes
part of the Base Scenario.
All scenarios are visible in the Model Builder’s Object Directory, on the tab labelled ‘Scen-
arios’. See Object Directory for further information.
A scenario can incorporate the following:
● Arrival Profiles
● Delay Profiles
● Exit Profiles
● Event Profiles
● Populated Zones
● Evacuation Zones
● Entity and Supply Types
All additional scenarios are based on pre- existing scenarios (either the Base Scenario or
another scenario) with modifications to the original data; for example, ‘Scenario Two’ might
be based on the Base Scenario but may use modified demand data or a different Delay Profile,
and so on.
Scenario Manager
The Scenario Manager enables you to add, delete and rename scenarios.
● To open the Scenario Manager, click or select Data > Scenario Manager.
Adding a scenario
Using the data creation methods described earlier in this section, you will need to create
new demand data for use in any scenarios you want to add.
As mentioned above, each model must have a Base Scenario, which is viewable in the Object
Directory and also in the Scenario Manager. This Base Scenario is automatically generated by
the software as you add objects and demand data to your model.
This procedure describes how to add another scenario to the model as well as the Base Scen-
ario.
To add a scenario:
1. Click or select Data > Scenario Manager to display the Scenario Manager, which
will already contain the Base Scenario.
2. Click the Add button.
The ‘Add Scenario’ dialog box is displayed.
3. Enter a meaningful name for the new scenario in the Name box.
4. From the Based Upon drop-down menu, select the existing scenario you want to base
this new scenario on.
5. From the Modification Type drop-down menu, select the type of data modification you
want to apply to the demand data in the original scenario:
◊ None–no new Data Profiles are created and the initial population of any Populated
Zones or Evacuation Zones is unchanged (if you select this option, click OK now, as
you do not need to make any further changes).
◊ Global–this applies specified changes to all the Data Profiles, Populated Zones or Evac-
uation Zones within the original scenario.
168
Legion SpaceWorks R6.5.0 User Guide
◊ Advanced–this enables you to apply specified changes to one or more Data Profiles,
Populated Zones or Evacuation Zones within the original scenario (see To apply
Advanced Modifications when adding a scenario: for full details).
6. If you selected Global modification:
◊ Check the All arrival profiles box and enter a percentage value in the % of ori-
ginal box (this will change all original Data Profile data by the percentage applied–
50% will halve all values, 200% will double all values, etc.).
and/or
◊ Check the Apply over interval box and enter Start and End times to specify a time-
range within which you want these data modifications to be applied.
Setting a time-range is useful for modelling evacuations or events like the closure of all
Entrances for a set period (this would involve setting the Data Profile to 0% for the time-
range).
7. If you want to change the values of any Populated Zones or Evacuation Zones, check the
All populated and evac zones box and enter a percentage in the % of original box.
8. Click Apply or OK to apply your changes and create the new scenario.
The following procedure describes how to apply modifications when you have selected the
‘Advanced’ option while adding a scenario.
1. Click or select Data > Scenario Manager to display the Scenario Manager.
2. Click on the scenario that you want to delete or rename.
3. Click either:
Deleted objects
If you delete Spatial Objects from the model and there are no objects left that relate to a data
item in a scenario, then the Scenario Manager will no longer display details of that data item.
For example, if all Delay Points that refer to ‘Gateline A delay profile’ are removed from the
model, the ‘Gateline A delay profile’ row is no longer displayed.
170
Legion SpaceWorks R6.5.0 User Guide
172
Legion SpaceWorks R6.5.0 User Guide
Activity Objects
Activity Objects provide origins and targets for Entities to move towards or away from. They
represent the specific functionality of a site and should be placed in the model according to the
physical information you possess.
They may also enable Entities to carry out certain activities, such as waiting, queuing and
receiving services. Within a model they sit in an Object Layer. For more information, see Lay-
ers . As well as providing structure and rationale for Entities, they can also supplement
Legion's auto-navigation system to correct anomalies, such as unrealistic congestion
The following table contains a list of Activity Objects along with their icons and a brief descrip-
tion of how they are typically used.
Level Exit To remove Entities from one level of a model, so that they can
instantaneously re-enter another level.
Level To allow Entities that have exited one level of the model
Entrance through a Level Exit, to instantaneously re-enter another level
of the model.
Waiting To make selected Entities passing over this area wait for an
Zone event with an ‘absolute time’ to occur. Once this event has
occurred, all the Entities that were waiting are released and
re- targeted by an overlaid Direction Modifier. Along with
Exits, Waiting Zones can be ‘Final Destinations’.
Direction To redirect Entities to another target when they pass over this
Modifier object, according to filters and conditions. Direction Modifiers
can also change an Entity’s Type and assign a different Final
Destination.
Drift Zone When Entities enter the area of a Drift Zone, they may move
in a certain direction, or change speed, according to the
defined parameters of the Drift Zone. Useful for alleviating
congestion or correcting unusual or inaccurate Entity move-
ment.
Route A guide (any shape, using the CAD drawing tools) that can
Guide restrict or allow the passage of Entities according to its filter.
Useful for cordoning off space within a model.
Analysis Objects
Analysis Objects (Zones, Lines and Poly-lines) are used most widely and powerfully in the Ana-
lyser but they also exist within the Model Builder. In the Analyser, they are used to identify
areas of a simulation that you want to 'interrogate' analytically, using a wide range of met-
rics. These kinds of analyses are known as 'Reporting' analyses'
174
Legion SpaceWorks R6.5.0 User Guide
In the Model Builder, Analysis Objects are used in setting up 'Conditions', which enable you to
model operational measures taken in response to over-crowding or other dynamic events.
These kinds of analyses are known as 'Conditional' analyses'. For an explanation of Condi-
tions, see 14: Conditions in Models and for more information on Analysis Objects within the
Analyser, see About Analysis Objects.
While it is usual to set up 'Reporting' analyses in the Analyser, you can do so in the Model
Builder. When your model is eventually opened in the Analyser, these analyses will
already be there and will not need to be added.
For Waiting Zones, the Focal Segment is optional as you may require the zone to work
purely as a filter rather than a target.
The following illustration shows the area and Focal Segment of an Exit, along with other key
elements.
176
Legion SpaceWorks R6.5.0 User Guide
Focal point
The focal point is used by Legion’s auto-navigation function to direct Entities (who can’t yet
‘see’ the target object) towards the Focal Segment.
Focal segment
This line influences Entities once they can ‘see’ the segment they are targeted towards. Entit-
ies can see the focal point from any distance, depending on the presence of obstacles and
other environmental conditions.
Approach angles
The approach angles, which can be configured when you draw the Spatial Object, govern the
angle at which Entities (from any direction) approach the Focal Segment.
In Zones III and IV, which are further away than the 8 metre-visibility of the Focal Segment,
Entities head towards the nearest point along the distant segment and their step-choices are
unrestricted at this distance. For instructions on placing a Focal Segment, see Placing a Focal
Segment.
178
Legion SpaceWorks R6.5.0 User Guide
2. Click either the rectangular drawing icon or the polygonal drawing icon .
3. Click on the icon belonging to the Spatial Object you would like to draw.
4. Click in the model at the point where you would like to start drawing the object.
5. If you are drawing a rectangular object:
◊ Drag your cursor to define the size and shape of the object. When you are happy with
its proportions, click to complete and place the object.
If you are drawing a polygonal object:
◊ Move your cursor to the first vertex of the polygon you are drawing and click your
mouse. Now move the cursor to the next vertex of the polygon and click to place that
point.
◊ Continue for as many points as the polygon contains and, to complete the shape, right-
click your mouse and select Finish Boundary to place the object.
Delay Points and Waiting Zones also have Dispersal Points. You will need to add these
after drawing them. See Drawing Delay Points for instructions.
If the object has a Focal Segment as well as an area you will be prompted to place a Focal
Segment. See Placing a Focal Segment.
Waiting Zones and Level Exits can work purely as filtering objects so when drawing them you
will be asked if you want to use the object as a target or as a filtering object.
We recommend that you keep the Focal Segment on or very close to the side of the Spa-
tial Object in question.
180
Legion SpaceWorks R6.5.0 User Guide
2. To move the focal point or change the approach angles, click once on the relevant vertex,
move the cursor to the new position and click again to release.
This setting is only relevant if you intend to present your model in Legion 3D.
After defining the shape of the object, you are asked: ‘Apply entity facing direction? [Y]/N’. To
accept, press Return and then position the graphical arrow using your cursor (you can change
this angle in the Edit <object> dialog box.
182
Legion SpaceWorks R6.5.0 User Guide
When placing an Analysis Zone, you have the choice of calculating visibility from a single
point or a segment. A point is useful for small areas like a camera lens; a segment is bet-
ter for wider objects like information boards, or signs, or shop windows. The procedures
for both are slightly different.
1. Click the visibility drawing icon (any icons and features not connected with visibility
drawing are disabled).
You can only place your point inside the model's accessible space. A dotted line is tem-
porarily imposed on the model, delineating areas of accessible space.
You are prompted to 'Move mouse to change distance'.
5. To set the distance from where you wish to calculate the visibility of the point, move the
mouse to the required place and left-click to fix it. By dragging the visibility arrow, you
can affect distance and direction. You can also type the distance coordinates (two figures
are needed) directly into the Command bar if you prefer. This screenshot shows the point
in the middle of a street Exit. The arrow has been extended to the required visibility dis-
tance.
You can now set the low and high angles from which your point can be seen.
6. To set the low angle, move your mouse to the required position and left-click.
7. To set the opposite (high) angle, move your mouse to the required position and left-click.
8. You can now review your settings and, if you need to make any adjustments, you can
'grab' the various distance and angle markers by clicking on them and moving them. They
are highlighted in red, as in this screenshot.
When you're happy with the shape of the Analysis Zone, hit Return. The ‘Edit Analysis
Zone’ dialog box is displayed.
9. Enter an appropriate name for the Analysis Zone and click OK.
The new zone appears in the workspace and in the Object Directory, in the Analysis Layer.
10. Repeat from step 2 for any more Visibility-based Analysis Zones you would like to place.
To exit 'visibility mode', click the icon again.
Drawing from left to right will create a directional arrow pointing up; drawing from right to
left will create a directional arrow pointing down; drawing top to bottom will create a dir-
ectional arrow pointing to the right; drawing bottom to top will create a directional arrow
pointing to the left. Also, you can only draw your segment inside the model's accessible
space. A dotted line is temporarily imposed on the model, delineating areas of accessible
space.
184
Legion SpaceWorks R6.5.0 User Guide
You can now set the low and high angles from which your segment can be seen.
6. To set the low angle, move your mouse to the required position and left-click.
7. To set the opposite (high) angle, move your mouse to the required position and left-click.
8. You can now review your settings and, if you need to make any adjustments, you can
'grab' the various distance and angle markers by clicking on them and moving them. They
are highlighted in red, as in this screenshot.
When you're happy with the shape of the Analysis Zone, hit Return. The ‘Edit Analysis
Zone’ dialog box is displayed.
9. Enter an appropriate name for the Analysis Zone and click OK.
The new zone appears in the workspace and in the Object Directory, in the Analysis Layer.
10. Repeat from step 2 for any more Visibility-based Analysis Zones you would like to place.
To exit 'visibility mode', click the icon again.
186
Legion SpaceWorks R6.5.0 User Guide
Depending on the type of object, other tabbed pages of the dialog box enable you to define
parameters relating to Links, Filters, Final Destinations, Target Parameters, Focal Distribution
and, in the case of Direction Modifiers, Target Rules and Conditions. Drift Zones, Waiting
Zones and Delay Points also have an 'Additional Parameters' tab for special Entity behaviour-
related settings.
When you have entered or selected all the appropriate parameters for the object in question,
click OK to save your changes. You can edit these parameters at any stage in your model
building activities. See Editing Spatial Objects. Parameters are discussed for each Spatial
Object in 15: Spatial Objects–in Detail.
Target Parameters
All objects that contain Focal Points as part of their structure have an additional parameter tab
named 'Target Parameters'. This enables you to adjust the way Entities navigate towards the
Focal Point when they can't 'see' it due to obstructions in their path.
The tab contains a checkbox labelled 'Use Focal Point Navigation'. If this option is checked,
Entities will auto-navigate to the Focal Point and, once they can see it, will cross the Focal Seg-
ment at the nearest point.
If the option is unchecked, Entities will head towards the nearest visible point on the Focal Seg-
ment whether they can see the Focal Point or not (this method can create more realistic move-
ments but may also slow the software's performance).
In this illustration, the left-hand example shows how Entities move towards an obscured Focal
Point with 'Focal Point Navigation' checked and, on the right, how they behave when the
option is unchecked.
188
Legion SpaceWorks R6.5.0 User Guide
● Click or select View > Show Grid (to hide the Grid, click the icon again).
● Click or select View > Show Axes (to hide the Axes, click the icon again)
Using Snaps
Snaps enable you to place Spatial Objects next to other objects or CAD lines, or at a certain
point on the grid, with greater speed and accuracy. They are also useful when positioning
objects in line with the Grid, if you have displayed and enabled it.
To activate one (or more) of the types of Snap, click on the appropriate icon or icons on the
Snaps toolbar. To switch a particular Snap off, click its icon again; the grey border around the
active icon disappears.
The following table contains the Grid functions and available Snaps within the Model Builder.
Snap
Icon Name Function
symbol
To use snaps:
1. Click on one or more of the Snap icons described in the table above.
2. Draw new lines or objects, or move existing lines or objects.
When you move the cursor close to another Spatial Object or CAD element, the Snap sym-
bol appears and snaps temporarily onto any obstacles or Spatial Objects at highlighted
points defined by the Snap type(s) you selected (mid-point, end-point, etc.).
As a reference guide, when you move an existing line or object, its initial location is high-
lighted in red and a white line displayed from that point to the location of your cursor.
3. Click near the highlighted point to snap the vertex you are drawing or moving directly onto
this point.
If there are no highlighted points near to snap to, you may click and place the line or
object where you please.
Priority of Snaps
Snaps are prioritised so that if two possible snapping points are within range, the one with the
highest priority is chosen. The order of priority is as follows: End-point > Mid-point >
Centre > Intersection > Nearest.
190
Legion SpaceWorks R6.5.0 User Guide
A pasted object inherits all the properties, filtering, links and other information that the
copied object contained. The number and types of links from/to pasted objects depends on
the object selection.
For instance:
● Copying and pasting “Entrance #005” in a model that already contains 13 Entrances
labelled “Entrance #001”...”Entrance #013” will result in the pasted object being named
“Entrance #014”.
● Copying and pasting “Main Entrance” in a model where no other Entrances have the same
name results in “Main Entrance #001”.
You may give two Spatial Objects of different types the same name. For instance, it is pos-
sible to have a Drift Zone and a Waiting Zone both named “Platform#001” in the same model.
It follows that if you copy a Drift Zone called “Platform #002” into a model already containing
a Waiting Zone labelled “Platform #003”, then no conflict will arise and the pasted Drift Zone
will also be labelled “Platform #003”.
192
Legion SpaceWorks R6.5.0 User Guide
or
Select the object and type Move in the Command bar and press Enter.
or
Type Move into the Command bar, press Enter, click on the object and press Enter
again.
2. Click in the model to establish a Base point for the object you are moving.
You can move multiple objects at the same time by selecting them before typing the
Move command.
or
Type a Base point value into the Command bar and press Enter.
The object appears attached to your cursor.
3. Move your cursor to the place where you want to move the object and click to position it.
This is particularly useful when you have, for example, a circular Drift Zone at
one end of a flight of stairs that you would like to rotate and use for the other end
of the stairs.
You can rotate multiple objects at the same time by selecting them before typing the
Rotate command.
To rotate an object:
1. Right-click within the space of an object and select Rotate <object name>.
Click on the object, type Rotate into the Command bar and press Enter.
or
Type Rotate into the Command bar, press Enter, click on the object and press Enter
again.
2. Click in the model to establish a Base point for the object you are rotating.
or
Type a Base point value into the Command bar and press Enter.
3. Type an angle of rotation into the Command bar and press Enter to rotate the object
around the Base point.
Typing 45 will rotate the object 45° (UCS), typing 315, or -45 will rotate the object 315°
(UCS).
194
Legion SpaceWorks R6.5.0 User Guide
To scale an object:
1. Right-click within the space of an object and select Scale <object name>.
You can scale multiple objects at the same time by selecting them before typing the Scale
command.
or
Click on the object and type Scale into the Command bar and press Enter.
or
Type Scale into the Command bar, press Enter, click on the object and press Enter
again.
2. Click in the model to establish a Base point for the object you are scaling.
or
Type a Base point value into the Command bar and press Enter.
3. Type a Scale factor, in decimals, into the Command bar and press Enter.
As an example, typing 2 will enlarge the object by a factor of 2 in the direction of the X
and Y axes; typing 0.5 will halve the size of the object.
To stop the trimming process at any time, press the Esc key.
The following procedure uses the example of trimming a Drift Zone around part of a circular
CAD object.
1. Click or select Modify > Trim (or type trim in the Command bar).
The Output Bar prompts you to Select object to trim.
2. Click on the object whose shape you want to change by trimming (in this example, the rect-
angular Drift Zone).
1. Click on or select Modify > Rectangular Array (or type rectarray in the Command
bar).
The Command bar prompts you to Select object(s) for the array.
2. Select the object (or objects) you want to reproduce, and press Enter.
The Command bar prompts you to Select the object reference point.
3. Click within the object (or at one point within the selected objects) to define the reference
point around which the array will be generated.
The Command bar prompts you to Select row direction and spacing interval.
4. Move your cursor in the direction you want the row of reproduced objects to be arrayed.
5. Click at the point which represents the space you want to maintain between each sub-
sequent object in the row:
196
Legion SpaceWorks R6.5.0 User Guide
The Command bar prompts: How many objects in a row (to create a single row, enter
1).
6. Type the number of reproduced objects you want to appear in the row you have just
defined and then press Enter.
The Command bar prompts you to Select column direction and spacing interval.
7. Move your cursor in the direction you want the column of reproduced objects to be
arrayed.
8. Click at the point which represents the space you want to maintain between each sub-
sequent object in the column.
The Command bar prompts: How many objects in a column (to create a single
column, enter 1).
9. Type the number of reproduced objects you want to appear in the column you have just
defined and then press Enter.
The arrayed objects are displayed in the Model Builder workspace. All properties and links
associated with the original object are also associated with the objects in the array.
1. Click or select Modify > Polar Array (or type polararray in the Command bar).
The Command bar prompts you to Select object(s) for the array.
2. Select the object (or objects) you want to reproduce, and press Enter.
The Command bar prompts you to Select the centre of the Polar Array.
3. Click within the model to select the point around which the Polar Array will be generated.
The Command bar prompts you to Select the object reference point.
4. Click within the object (or at one point within the selected objects) to define the reference
point around which the array will be generated.
The Command bar prompts you to Select the increment angle.
5. Click at the point which represents the angle you want to maintain between each object as
it is plotted in the array.
The Command bar prompts: How many objects in the Polar Array.
6. Type the number of reproduced objects you want to appear in the array and then press
Enter.
The Command bar asks: Do you wish to rotate the object(s) as they are copied?.
7. To rotate the objects, type y and press Enter; if you do not want to rotate the objects,
type n and press Enter.
The arrayed objects are displayed in the Model Builder workspace. All properties and links
associated with the original object are also associated with the objects in the array.
1. Click or select Modify > Mirror (or type mirror in the Command bar).
The Command bar prompts you to Select object(s) to mirror.
2. Select the object (or objects) you want to mirror, and press Enter.
The Command bar prompts you to Select first point of mirror axis.
3. Click at the point in the model where you want the first point of the mirror axis to be.
The Command bar prompts you to Select second point of mirror axis (you can define
a horizontal, vertical or oblique axis).
4. Click at the point in the model where you want the second point of the mirror axis to be.
This defines the plane of the ‘mirror’.
The object (or objects) are mirrored across the axis you defined. All properties and links
associated with the original object are also associated with the mirrored objects.
Measuring distances
The Measure tool enables you to accurately measure:
● The distance between two points
● The cumulative length of a number of contiguous line segments
● The area of a closed rectangle or polygon
198
Legion SpaceWorks R6.5.0 User Guide
1. Click or select Modify > Copy Geometry (or type copy geometry).
2. Select the object you want to modify.
3. Select the object whose geometry you want to copy.
The Output Bar asks Do you want to superimpose the copy on top of the original
(Y/N)?
4. If you want to superimpose the object whose geometry you are changing directly on top of
the original object, type y and press Enter.
If you do not want to superimpose the object, type n and press Enter.
5. Press Enter to copy the object’s geometry.
The first object’s shape is altered to match the geometry of the second object.
Search criteria
You can base a search on one or more of the following criteria, which all appear in the ‘Find’
dialog box:
● Type–search for all objects of a specified type (Entrance, Supply Type, Delay Profile,
etc.).
● Name–search for all objects with a common name, based on the whole name or part of the
name combined with ‘*’ and ‘?’ wildcards (see Using ‘Wildcards’).
● Layer–search for all objects in a specified layer.
● Depends Upon–search for all objects that are associated with a specified data object
(Entity Type, Arrival Profile, etc.).
● Linking To–search for all objects that link to specified objects (Exit, Delay Point, etc.).
● Linking From–search for all objects with links from specified objects (Queue, Entrance,
etc.).
● Final Destination–search for all objects linked to specified Final Destinations (Exit, Waiting
Zone, etc.).
● Filter Method–select one of the available methods to search for objects or elements that
use filters (‘Affect none’, ‘Affect all’, ‘Selected attributes’, ‘Tracked entities’).
If you choose ‘Selected attributes’, the following five criteria also become available;
choose one or more and select the relevant objects to refine your search
◊ Filter by target
◊ Filter by entity type
◊ Filter by activity
◊ Filter by origin
◊ Filter by final destination
Selecting Criteria
To select criteria in the ‘Find’ dialog box, check the box next to the name of the criterion. This
enables the associated field, drop-down menu or ‘browse’ button.
‘Name’ requires you to type a name into the related text box.
‘Type’ and ‘Filter method’ require you to select items from drop-down menus.
The other criteria require you to click on a browse button, which displays a further ‘Select
Objects’ dialog box from which to select objects or targets, etc.
200
Legion SpaceWorks R6.5.0 User Guide
All available objects are listed in the left-hand pane (Available) of the dialog box. To include
items in your search, you must move them into the right-hand pane (Selected).
To select items:
1. You may need to expand the list of items by clicking the + symbol to reveal all items.
2. Select items in the following ways.
◊ To move all items into the Selected pane, click the >> button.
◊ To move a single item into the Selected pane, click on the item and click the > button.
◊ To move all items back into the Available pane, click the << button.
◊ To move a single item back into the Available pane, click on the item and click the <
button.
3. Click the OK button.
Using ‘Wildcards’
When typing a name into the Name field, you can enter the full name of the object you are
searching for, if you know it, or you can use one of the two accepted ‘wildcards’: ‘?’ and ‘*’.
The ‘?’ wildcard substitutes a single character, so if you typed Ent?, the Find tool would
search for a four-letter name beginning with “Ent”.
The ‘*’ wildcard substitutes 0 or more letters, so if you typed Ent*, the Find tool would search
for words of any length beginning with “Ent”.
These wildcards can be useful when you are searching for a range of objects whose names are
similar.
1. Click or select Data > Find to display the ‘Find’ dialog box.
2. Working down the list of Search Criteria, check the box of each criteria you want to use
in your search and specify the object, target or filtering method you require in each case.
3. Select one of the Search Scope options:
Type All objects of a spe- Any object or element within the model (Activ-
cified type ity Objects, Analyses, Analysis Objects, Data
Profiles, Objects, Layers).
Layer Layers within the Any of the four types of Layer found in
model SpaceWorks (Activity, CAD, Conditions, Par-
tition).
Linking_To All objects that are Any objects that can be linked to.
linked to a specified
object
Linking_ All objects with Any objects that can be linked from.
From links from specified
objects
Final All objects linked to Any object that can be used as a Final Destin-
Destination as Final Destin- ation
ations
202
Legion SpaceWorks R6.5.0 User Guide
Target Escalator
Focal Node
Level Exit
Queue/Queue Group
Stair
Waiting Zone
All these criteria can be used in combination with AND, OR and AND NOT, as described in the
following table:
Syntax Meaning
& AND
| OR
! AND NOT
Search Results
Successful search results are displayed in the ‘Search Results’ tab of the Model Builder Output
Bar. They are listed by object and type.
● To select an object, right-click on its name and Select Object(s).
● To select more than one result, hold down Ctrl and select the specific multiple entries, or
hold down Shift and select the start and end of a range of entries. After selecting these
multiple objects, click the Select Object(s) button.
● To edit the properties of one of the results, double-click it or right-click on its name and
select Edit Properties.
1. Use the Find tool to search for a group of objects of the same type (see The Find Tool)
2. Select the objects you want to edit.
3. Click the Edit Properties button.
The ‘Edit Multiple <object types>’ dialog box is displayed.
4. Change any parameters that are available (some may be greyed out because they are
only available for individual editing) and click the OK button to save your changes.
or
1. Type Edit in the Command bar and press Enter.
2. In the workspace, select the objects you want to edit.
3. Press Enter again.
204
Legion SpaceWorks R6.5.0 User Guide
If the group of objects you have selected is made of up of different object types, the ‘Edit
Multiple Objects’ dialog box for each of the object types opens in sequence as you save
your changes
To rename objects:
206
Legion SpaceWorks R6.5.0 User Guide
12: Layers
In this chapter
This part of the guide provides further information about layers and their use within Legion
models.
This section covers the following topics:
● About layers
● Working with layers
About layers
Layers enable you to manage your model, simulations and analyses and keep them visually
and conceptually ‘tidy’. Models can rapidly become very complex and it is helpful to arrange
different model objects in different layers.
This enables you to view, or work on, the layer of your choice rather than having to tackle the
whole model at once. Layers also enable different members of your team to work on different
areas of a model at the same time.
Types of layer
There are four types of layer within Legion SpaceWorks:
● CAD Layers
● Activity Object Layers
● Partition Layers
● Analysis Layers, including the Conditions Layer (Model Builder)
Whenever you create a new model within the Model Builder, a default CAD Layer; default
Activity Object Layer and default Conditions Layer are created. Layers are listed in both the
Object Directory and the Layer directory. Similarly, when you open a project in the Analyser,
a default Analysis Object Layer is created.
CAD Layers
A CAD Layer stores CAD that has been imported into, or drawn in, the Model Builder. It may
contain either Presentation CAD or Simulation CAD (see Preparing a CAD plan).
Each CAD Layer has two tabs, labelled Properties and FDS.
Properties
● Name.
● A check box labelled Use in simulation, which enables you to use the contents of this
layer as part of a simulation. CAD segments included in simulation layers will be treated
by Entities as obstacles.
● A check box labelled Use for Auto-navigation, which enables you to include or exclude
the contents of the layer from the auto-navigation process (this will enhance per-
formance). Auto-navigation is also know as macro-navigation.
● The number of CAD objects stored in the layer.
● An attribute to indicate whether the layer contains imported CAD or user-drawn CAD.
● (If the layer contains imported CAD) the filename of the imported file along with the date
and time it was imported. When you import a .dxf, .dgn or .dwg file, you are presented
with the option to retain any existing layer structure in the file.
FDS
This tab enables you to use the CAD objects on this layer as part of a file to be used with the
FDS software (see y for further information).
There are only two parameters to set on this tab:
● A check box labelled Include CAD in FDS file, which enables you to include the CAD in
this layer as part of the file you will export for use with the FDS software.
● A box labelled Height of CAD, which enables you to enter a height in metres for the CAD
walls (this is also known as the z-coordinate).
208
Legion SpaceWorks R6.5.0 User Guide
Partition Layers
Partition Layers are useful when you need to override Legion’s auto-navigation system and
place Focal Drift Zones to provide routing instructions instead. This can be done using Inter-
active or Batch partitioning (see Focal Drift Zone partitioning for details).
Before you can place Focal Drift Zones, you need to specify a unique target object for the Par-
tition Layer. See Selecting a target for the Partition Layer.
Analysis Layers
An Analysis Layer stores Analysis Objects: Analysis Lines, Poly-lines and Zones. It contains a:
● Name
● List of Analysis Objects stored in the layer.
Conditions Layer
The Conditions Layer is an Analysis Layer that is created by default whenever you create a
new Model. It stores any Analysis Objects which you place in order to introduce Conditions
into a model. For more information, see 14: Conditions in Models.
Properties of layers
You can define whether a layer is:
● Snappable/unsnappable.
● Locked/unlocked.
● Visible/invisible.
When a layer is snappable, you can snap new objects to objects in the layer. When a layer is
locked, you cannot select or modify any of the objects in the layer. When a layer is visible, all
objects in it are displayed in the workspace (conversely, when it is invisible, the objects are
not displayed).
Layers Directory
The Layers Directory allows you to add new layers and view and edit the properties of existing
layers. It is displayed alongside the Legion SpaceWorks workspace and can also be displayed
by selecting View > Toolbars > Layers.
The Layers Directory lists all layers in the model alphabetically, along with icons that denote
whether a layer is snappable, locked or visible:
A diagonal bar across an icon means it is either not snappable or not visible; the open or
closed padlock icon tells you whether the layer is locked or unlocked. A blue padlock icon
denotes a layer that cannot be unlocked; all non-Analysis Layers within the Legion Analyser
are permanently locked.
In the top right of the dialog box there are two further icons: Clicking the left-hand ‘copy’ icon
duplicates a selected layer; clicking the rubbish bin icon deletes a selected layer.
210
Legion SpaceWorks R6.5.0 User Guide
You can also make one or more layers visible or invisible from the Object Directory. Click
on the eye icon next to a layer or a selection of layers. You can also do this for objects
within layers.
Adding layers
You can quickly add extra layers to your model in addition to the default layers. Usually, only
one Conditions Layer is required per model.
To add a layer:
3. If the layer contains objects that you would like to exclude from the auto-navigation pro-
cess, uncheck the box labelled Use for auto-navigation. This can help speed up the soft-
ware as it doesn’t calculate possible Entity paths around each small CAD element. It also
activates the 'Availability' tab, so you can now apply Availability profiles to the CAD layer.
Entities will still be able to negotiate around small objects when they encounter them on
their journey.
4. If you want to include the CAD on this layer in a file for use with the FDS software, click on
the FDS tab.
5. Check the box labelled Include CAD in FDS file.
6. Enter a value in metres for Height of CAD.
7. Click OK to save your settings.
212
Legion SpaceWorks R6.5.0 User Guide
rolling stock can be drawn in CAD and these designs can then be 'turned on' or 'off' at spe-
cified times within a simulation. In this manner, Entities will interact with this CAD only when
it is available.
You can then use Layer View events on the Analyser Timeline to show or hide these CAD trains
at the correct times within your simulation and any animations you may produce as part of
your project. See 'Setting a Layer View' in Screen Camera track events for more information.
● Select an object and click the ‘Activate a Layer’ icon . This makes the layer on which
the object was sitting the active layer.
or
● On the Active Layer toolbar, select the layer you want to make active from the relevant
drop-down menus.
This layer is now the active layer and appears in the Active Layers Toolbar.
or
● In the Layers Directory, right-click on the layer you want to make active and select Make
active.
To quickly create a Partition Layer with a target already selected, right-click within the
area of the target object and select Create Partition Layer with <object name>.
If you are using a Partition Layer to place Focal Drift Zones, you must select a target object
for the layer. If you do not, an error is reported by the Model QA.
Duplicating layers
You can duplicate layers, whether they are locked or not. If your model contains several
floors with identical layout or objects, duplicating can save you time in the model building
phase of your project. When you duplicate a layer, you create a complete copy of all the
objects and their properties that exist on the original layer.
To duplicate a layer:
1. In either the Layers Directory or the Object Directory, right-click on the layer you want to
duplicate and select Duplicate.
or
◊ Select the layer you want to copy and click on the Duplicate icon . Click Yes to con-
firm.
The new layer is created, named and added to the list of available layers.
Deleting layers
You can use either the Object Directory or the Layers Directory to delete layers from your
model.
To delete a layer:
1. In either the Layers Directory or the Object Directory, right-click on the layer you want to
delete and select Delete.
or
Select the layer you want to delete and click on the Delete icon .
2. Click Yes to confirm.
The layer and its contents are removed from the model.
214
Legion SpaceWorks R6.5.0 User Guide
Do not mix Spatial Objects and CAD objects in your selection as there is no suitable layer
that can contain both types of object.
1. Type either Copy to Layer or Move to Layer into the Command Line.
The software prompts you to select object(s).
2. Select one or more objects from the workspace (including CAD if required).
3. Press Enter.
A dialog box is displayed with a choice of suitable destination layers.
4. Select the appropriate layer and click OK to move or copy the original object.
Layer Views
You can define certain ‘views’ that contain a specified group of layers. This enables you to
quickly display a predefined selection of layers. Combined with the ability to set active Layer
Views in the Analyser's Timeline, this is a powerful way of attracting viewer's attention to par-
ticular aspects of your model (different train designs, annotations, vehicle CAD, doors, etc.).
See Setting a Layer View for further information.
1. Click the Layer View icon to display the ‘Edit Layer View’ dialog box.
2. Click on the Layer View you want to delete, rename or copy.
3. Click one of the available buttons in the top left-hand corner:
216
Legion SpaceWorks R6.5.0 User Guide
Linking
Linking is the process of specifying a sequence of objectives (targets) that Entities may wish
to meet (visit) on their journey through a Legion model and towards their final destination.
By linking one Spatial Object (the 'origin object') to one or more 'target objects' you are trans-
lating an objective (to exit, to withdraw cash, to use a ticket gate) into alternative locations
represented by Spatial Objects (Exits, Gates, Queues, Delay Points) for fulfilling that object-
ive. You can add these links manually in the workspace and by using the Object Directory but
they can also be introduced by pasting pairs or groups of objects into a model.
You must decide on an object's linking method before creating links between objects. When
you first draw a Spatial Object, the ‘Edit <object name>’ dialog box is displayed and it is
here, on the ‘Links’ tab, that you can specify the linking method.
Although you must decide the linking method before adding links between objects, you cannot
define specific 'Percentage Weighting' values until you have created links between the origin
object and its target object or objects. In the same way, you must create new Entity Types
and Supply Types if you want to assign Entities other than the Default Entity or Supply Type as
part of your links.
Spatial Objects that can be the origins of links are:
● Entrances
● Populated Zones
● Evacuation Zones
● Level Entrances
● Delay Points
● Queues (to Delay Points only)
● Queue Groups
● Direction Modifiers
● Focal Nodes
● Stairs
● Escalators
● Gates (IN and OUT)
Spatial Objects that can be linked to are:
● Focal nodes
● Delay points
● Waiting Zones (can also filter)
● Queues,
● Queue Groups,
● Level Exits (can also filter)
● Stairs (can also filter)
● Escalators (can also filter)
● Gates (IN and OUT)
● Mesoscopic Transit Zone
● Exits
218
Legion SpaceWorks R6.5.0 User Guide
Linking methods
The four linking methods you can select for Spatial Objects are outlined below. There are
subtle variations when it comes to Queues and Queue Groups.
When linking to or from Gate objects, note that a 'Switch' Gate (one capable of switching
through the simulation from operating as an IN Gate to an OUT Gate and back) will require
you to choose the IN or OUT Gate Side when linking to or from it.
You can set percentages as fractions up to three decimal places, e.g. 70.258%.
This method is preferable when your demand information is of the form: ‘about 70% of people
arriving at the station have a travel card, whereas the remaining 30% purchase a ticket’.
The following procedure assumes that, for the Spatial Object you are linking from, you have
selected Link by Percentage Weighting and also linked the object to the relevant target
objects. See Linking for further information.
Percentages are not exact. For example, 70% is interpreted as ‘around 70%’, in order to
avoid contrived patterns of Entity activity. The larger the percentage figure, the smaller
the difference between defined and actual percentage weighting.
If you are aiming to reproduce these percentage weightings closely, then you should go to
step 6. Otherwise, consider inputting appropriate values in steps 4 and 5 depending on the
people in your simulation and their familiarity (or lack thereof ) with the site.
4. Enter a value for the '% of people consider congestion' ahead.
This percentage defines the proportion of Entities that will seek to avoid excessive con-
gestion if or when it arises. ‘Congestion avoiders’ periodically re-evaluate their choice of
target and may switch to a target which is not necessarily the one to which they were ori-
ginally assigned.
5. Enter a value for the '% of people follow the majority'.
This percentage defines the proportion of Entities that, owing to lack of familiarity , will
seek to follow major flows in the hope that the ‘safety in numbers’ principle will apply and
help them to reach their destination. Again, by doing so, ‘followers’ may switch to a target
which is not necessarily the one they were originally assigned.
6. If you want Entities to consider whether a target object is available or not (according to its
Availability Profile), check the box labelled 'Use Target Availability'.This means that Entit-
ies will be reassigned to other available targets in the same percentages, if one of their tar-
gets is unavailable at the time.
If you don't want Entities to consider whether a target object is available or not, uncheck
the box labelled 'Use Target Availability'. In this case Entities will use the target as if it
were available, regardless of any Availability Profiles associated with it.
220
Legion SpaceWorks R6.5.0 User Guide
The 'Use Target Availability' parameter functions slightly differently when Entities are
being linked to Delay Points. See A note on 'Use Target Availability' in connection with Delay
Points.
● Shortest distance–the default scheme for all origin objects except for queues. Entities
will head to the target closest to them.The choice is based on the distance between the
Entity's initial position in the origin object and the focal point of each of the target objects
(usually, the mid-point of the Focal Segment). The calculation is subject to a distance-
estimation noise term that you can specify in the ‘Model Properties’ dialog box.
● Shortest queue (when linking to a Queue Group) or Fewest occupants–this choice
scheme is only available when the target objects are Gates, Queues, Queue Groups, Delay
Points, Waiting Zones or Focal Nodes. It only routes Entities to active objects, active being
defined as follows:
◊ Gates–the Gate is visible from the area where the decision is made and the Gate is
open.
◊ Queues–the queue is visible from the area where the decision is made and (if a queue
management scheme is in place) it is open.
◊ Delay Points–the capacity has not been exceeded.
◊ Queue Groups, Waiting Zones and Focal Nodes are always active and available.
At this stage, depending on the Entities in your simulation and their familiarity (or lack
thereof) with the site being modelled, you should consider inputting appropriate values in
steps 5 and 6 You can, however skip those steps and go to 7, if you so wish.
5. Enter a value for % of people consider congestion ahead.
This percentage defines the proportion of Entities that will seek to avoid excessive con-
gestion if and when it arises. ‘Congestion avoiders’ periodically re-evaluate their choice of
target and may switch to a target which is not necessarily the nearest to their original or
current position.
6. Enter a value for % of people follow the majority.
This percentage defines the proportion of Entities that, owing to lack of familiarity, will
seek to follow major flows in the hope that the ‘safety in numbers’ principle will apply and
help them reach their destination. Again, by doing so, ‘followers’ may switch to a target
which is not necessarily the one closest to them.
7. Click OK to save your changes.
222
Legion SpaceWorks R6.5.0 User Guide
5. Add links between the origin object and the target object or objects.
For each link you place, the ‘Link Parameters’ dialog box is displayed. The portion labelled
‘Objects’ contains details of the origin object and the target object it is linking to.
6. In the lower portion labelled ‘Linking by Final Destination’, drag and drop destinations you
want to assign to the linked object from the Final Destinations ‘Available’ pane into the
Final Destinations ‘Selected’ pane.
You can also do this by using the following buttons to move the available destinations from
the Available pane of the dialog box to the Selected pane:
◊ To move all Entity Types into the Selected pane, click the >> button.
◊ To move a single Entity Type into the Selected pane, click on the item and click the >
button.
◊ To move all Entity Types back into the Available pane, click the << button.
◊ To move a single Entity Type back into the Available pane, click on the item and click
the < button.
7. Click OK to save your changes.
Link operations
You can add, edit, delete and copy links between origin objects and target objects. In the case
of Linking by Percentage Weighting, these links must be established before you can define the
specific percentages of Entities you want to assign to target objects.
The following procedure assumes that you have drawn and placed all the relevant Spatial
Objects and have selected the appropriate linking method. If you need more information,
please see Drawing and placing Spatial Objects.
Adding a link
Links are always created in the direction of travel: origin object first, target object second.
When you are Linking by Percentage Weighting, all links are drawn in blue, whereas when you
are Linking by Entity Type, the links appear in the various colours of the Entity Types.
If there are more than 10 objects in this submenu, select More to see the full list.
2. Move your cursor over the target object that you want to link to.
Notice that your cursor is now dragging a coloured line, which indicates the new link you
are creating.
3. Click within the area of the object you are linking to.
If there is more than one target object in the area where you click a submenu appears
from which you can select the correct object.
When you have clicked the correct object, the ‘Link Parameters’ dialog box is displayed.
This dialog box differs according to the linking method you have selected for the origin
object. In the case of Gates, ensure that you select the correct Gate Side (IN or OUT), as
illustrated below. A Gate may have a unique name but two 'sides' if is a 'Switch' Gate.
4. Complete the ‘Link Parameters’ dialog box in one of the following ways:
◊ If you are Linking by Percentage Weighting, enter the percentage of Entities you want
to assign in the Percentage box.
224
Legion SpaceWorks R6.5.0 User Guide
◊ If you are Linking by Entity Type, select or de-select the Entity Types you want to
assign to the each target object by using the following buttons to move the available
Entity Types from the Available pane of the dialog box to the Selected pane:
To move all Entity Types into the Selected pane, click the >> button.
To move a single Entity Type into the Selected pane, click on the item and click the >
button.
To move all Entity Types back into the Available pane, click the << button.
To move a single Entity Type back into the Available pane, click on the item and click
the < button.
5. Click OK.
4. Select one or more target objects from the tree structure and click OK.
5. Adjust link parameters according to the method selected:
◊ Link by percentage weighting–adjust percentages per target as described in Linking
methods.
◊ Link by entity type–you will need to select a different Entity Type for each target selec-
ted as described in Linking methods.
◊ Link by entity choice–edit as described in Linking methods.
6. Click OK to save your settings.
Editing a link
At any point, you may change the Percentage Weighting of a link or the Entity Types it is
assigning to the target object.
Deleting links
There are two methods for deleting links; the second method below enables you to delete
more than one link at a time.
If Linking by Percentage Weighting is the active linking method of the origin object, deleting a
link will reduce the total percentage to below 100%. As a result, you must either create addi-
tional links or increase the percentage weighting of the remaining links to 100%
To delete a link:
1. Right-click on the origin object and select Delete Link.
2. Move your cursor over the target object and click. The link disappears.
or
3. Open the origin object’s ‘Edit <name>’ dialog box and click on the Links tab.
4. Click the Delete Link button.
The ‘Select Target Objects’ dialog box is displayed, with a tree listing all objects which are
currently linked to.
5. Select one or more target objects from the tree structure and click OK.
6. The link or links are removed.
7. Click OK to confirm.
226
Legion SpaceWorks R6.5.0 User Guide
Using the directory structure, highlight the object whose links you want to copy.
In the case of Gates, ensure that you select the correct Gate Side (IN or OUT). A Gate may
have a unique name but two 'sides' if it is a 'Switch' Gate.
5. Click OK to copy the links into the origin object.
This action will override the origin object’s existing linking method and replace any exist-
ing links.
When copying groups of objects within the same model or across to a different model, links
between pasted objects replicate links between copied objects. This provides a handy method
of modelling multiple level buildings by creating the logic for one floor and then generating the
models for the additional floors through copying and pasting.
This action will override receiving objects’ existing linking methods and replace any exist-
ing links.
Using the directory structure, highlight the object or objects to which you want to copy the
original object’s links.
In the case of Gates, ensure that you select the correct Gate Side (IN or OUT). A Gate may
have a unique name but two 'sides' if it is a 'Switch' Gate.
4. Click OK to copy the links to the selected object or objects.
‘Stealing' links
You can ‘steal’ pre-existing links from one object and move them all to another object (this
removes the links entirely from the object from which they are stolen). This can be useful in
situations where linking conditions change or new objects are introduced into a route that has
already been set up.
Throughout the following procedure, error messages will be displayed should you accidentally
select invalid objects.
In the case of Gates, ensure that you select the correct Gate Side (IN or OUT) when select-
ing objects. A Gate may have a unique name but two 'sides' if it is a 'Switch' Gate.
228
Legion SpaceWorks R6.5.0 User Guide
Inspecting links
This feature enables you to visually trace and audit a series of object links within a model. As
well as helping you to understand the logic of a model, the Inspect Links feature can also warn
you about possible issues and errors in your model. Hovering your cursor over a link reveals
further information about the link in the form of a ToolTip.
This procedure assumes that you have a model with links open in the Model Builder.
To inspect links:
4. For more information about a link, hover your cursor over any part of the link marker to
display a ToolTip.
5. If you would like to add more objects to the link sequence you are inspecting, hold down
Ctrl and left-click on the next object. It will be highlighted along with the original object.
You can also click on any other object in the model without holding down Ctrl: this will
deselect your first (or previously selected) object(s) and highlight the new object.
6. Continue to select objects and inspect links until you are satisfied.
7. To exit the process, hit the Esc key at any point.
● Green tick means that the object's links are correctly configured.
● Amber warning means that the object's links contain problems that would cause a QA
warning (for example, linking is my Entity Choice but there is only one target selected).
● Red warning means that the object contains an error that will cause a QA warning (for
example, percentage allocation of Entities not equalling 100%).
● Revert to Final Destination means that Entities will do so when leaving this object.
230
Legion SpaceWorks R6.5.0 User Guide
Filtering
There are certain objects that enable you to filter for Entities according to type, activity or
goal. This means you can control precisely which Entities are affected by an object.
The following objects can filter:
● Direction Modifiers
● Evacuation Zones
● Level Exits (when in filter rather than target mode)
● Waiting Zones (when in filter rather than target mode)
● Drift Zones
● Focal Drift Zones
● Route Guides
● Stairs
● Escalators
● Multipath Zones
During a Legion simulation, whenever Entities encounter this kind of object, filter settings
determine which Entities are affected. For example, a Direction Modifier might redirect Entit-
ies that match its filtering criteria from a Waiting Zone to a train platform. A Route Guide
might prevent passengers from entering space reserved for staff by applying a filter to
exclude all Entity Types except for staff. The filtering criteria are very precise and flexible.
In SpaceWorks you can define ‘advanced filters’ in spatial objects in the same way you can
define them for Analyses in the Analyser. See 22: Advanced Filtering for more information.
Filtering objects automatically filter for 'All' Entities until you change their settings.
The following procedure assumes that you have drawn and placed the object whose filter set-
tings you want to specify. It deals with 'Standard' filter settings; 'Advanced' filter settings are
covered in 22: Advanced Filtering.
5. If you chose the third option above, select attributes from the five categories of ‘Activity’,
‘Entity Type’, ‘Final Destination’, ‘Origin’ and 'Target'.
6. To do this, expand the tree of ‘available’ attributes as you need and move them into the
‘selected’ pane using the > and >> buttons (to remove selected attributes, use < and
<<).
If you selected 'Target' and wish to choose a Gate object, ensure that you select the cor-
rect Gate Side (IN or OUT). A Gate may have a unique name but two 'sides' if it is a
'Switch' Gate.
7. From the drop-down list labelled ‘Logic method’, select one of the following:
◊ AND–only Entities with every selected attribute will be affected
◊ OR–Entities with any of the selected attributes will be affected
8. If you wish to exclude your selected attributes from the filter, you can do so by clicking
on the tick above your criteria labelled ‘All selected’ to change it to ‘All EXCEPT’.
This enables you to specify which attributes are excluded from the filter, which can speed
up your work if you have far more attributes to include than exclude. It also helps to keep
information about the logic of the object brief and easy to understand. This illustrated
example filters for all Entity Types except for the type named ‘Staff’.
232
Legion SpaceWorks R6.5.0 User Guide
It is best to create Named Filters only when your model is reasonably complex and con-
tains Activity Objects, Entities, and Entity Supplies.
1. Click or select Data > Filters. The ‘Edit Filter’ dialog box is displayed.
2. Click the New button in the top left-hand corner. The 'Filter' tab is populated.
3. Set up your filter settings as described from step 3 of Specifying filter settings.
4. If you want to set advanced filters, click on the Advanced button and follow the steps as
described in Entering advanced filters.
5. Click Apply to save this Named Filter. You can now select this Filter when setting the para-
meters of Activity Objects by selecting it from the 'Named Filter' drop-down list.
6. To add a new filter, repeat from step 2.
7. Click OK to save your changes and close the dialog box.
● To show all links between objects in your models, click or select Objects > Links.
● To show all Target Filters, click or select Objects > Target Filters.
● To show all links between origin objects and Final Destination, click or select Objects
> Final Destinations.
Specifying how Links, Target Filters and Final Destinations are drawn
You can choose how to display these links and objects by selecting from a range of different
lines, arrows and colours. You can also decide whether to resize them as you zoom in and out
of a model (scaling).
234
Legion SpaceWorks R6.5.0 User Guide
236
Legion SpaceWorks R6.5.0 User Guide
About Conditions
Using conditions is a powerful method for modelling situations where certain pre-defined cri-
teria may prompt operational interventions or cause pedestrians to make certain kinds of
decisions.
Such criteria might include things like a combination of occupancy, density, speed or other
pedestrian experience metrics. For example, you may wish to model opening a new exit route
when a certain level of density is reached for Entities travelling towards a particular Final
Destination. If you are using Environment Maps based on FDS output files, you can also create
conditions relating to temperature, visibility and toxicity.
In Legion SpaceWorks, the Spatial Objects that can make use of Conditions to influence the
movement of Entities are: Direction Modifiers, Focal Nodes, Queues, Queue Groups, Exits and
Delay Points.
In order for these objects to have any conditions to use, you must first place Analysis Objects
(Zones, Lines or Poly-lines) in your model and set up Analyses. Conditions can then be defined
using the standard logical expressions (=, <, >, AND, OR, NOT).
To help you better understand Conditions, familiarise yourself with About Analysis Objects,
Setting up analyses and Setting Direction Modifier parameters.
Setting up Conditions
Before setting up Conditions, you need to plan ahead and articulate precisely the operational
measure(s) you want to model. This will help you specify the analyses whose results will be
part of the condition or conditions you select. Depending on the conditions you need to set up,
you may have to use a combination of Analyses Objects, Environment Maps and Analyses
(Environment Maps handle fire metrics, such as temperature, visibility and so on).
Analysis Objects and Analyses use the same icons and interface as described in About ana-
lyses.
An example of an operational measure might be: ‘If visibility in a corridor falls below a cer-
tain threshold during an evacuation, the corridor's Exit should be closed'. This can be achieved
by using an Environment Map, Analysis Zone, and an Exit with conditional availability.
In order to use the Visibility metric, you need a slice file produced in FDS (Fire Dynamics Sim-
ulator) software (see Exporting a model for use with FDS). This slice file must then be asso-
ciated with an Environment Map (see Environment Maps ). Next you need to place the
appropriate Analysis Objects in the relevant areas of the model.
For further information about Analysis Objects and how to use them, see About Analysis
Objects and the rest of that section. All such Analysis Objects are stored on the Model
Builder’s Conditions Layer and all Analyses appear on the ‘Data’ tab of the Object Directory.
Once you have placed your Analysis Objects, you need to set up one or more Analyses. For
full instructions on setting up Analyses, see Setting up analyses. If you don't set up Analyses,
your Conditions tab won't contain any metrics for you to use.
The following procedure assumes that you have set up at least one analysis and have also
placed the object, a Direction Modifier for example, that will use the Conditions. This pro-
cedure explains how to set up a condition of visibility falling below 2 metres in a particular
zone. Available metrics depend on the kind of analyses you have set up.
Any errors in the syntax of your conditional statements will be highlighted. There are
example statements on the ‘Conditions’ tab as a guide.
To set up a Condition:
1. Complete steps 1 to 5 of Setting Direction Modifier parameters.
2. To use conditions, check the box labelled use condition. This makes the ‘Conditions’ tab
and the associated ‘Restrictions’ available.
3. If you chose Event Profile or Availability Profile from the Time Scope list, select an option
from the left-hand drop-down list:
◊ AND–the condition will apply only when the Scope settings and the conditional settings
are both ‘true’.
◊ OR–the condition will apply when either the Scope settings or the conditional settings
are ‘true’.
4. Click on the Condition tab.
5. If you have already created Condition Objects, which you would like to use, select the
'Condition Object' option and choose a condition from the drop-down list. You can now
click OK to finish and save your condition settings. If you do not have any Condition
Objects, either create them as described in Creating Condition Objects, or continue from
step 6.
6. To add a condition, select a metric from the drop-down list (in this example, Visibility )
and click the Add button. This places the metric into the space below the dialog box.
238
Legion SpaceWorks R6.5.0 User Guide
7. Add a condition to the end of the metric, for example < 2.00, so that it reads Analysis
#001::Visibility Map::Area <2.00
8. Place square brackets around the condition (these are essential for the condition to be
accepted).
If you want to quickly identify any Analyses used by Conditions, type the command list-
conditionalanalyses.
Restrictions
When you have set up your Conditions, you can fine-tune their impact by setting the following
time restrictions (in seconds) on any event occurring as a result of the criteria being met.
These restrictions are best explained in the context of pedestrian-activated traffic signals at a
crossing:
● Time before action–a built-in minimum delay between the condition being met (e.g. the
button being pushed) and the action (signals changing to red for cars and green for ped-
estrians) taking effect.
● Minimum activity period–enter a minimum period for any resulting activity (e.g. when
lights do change to green, a minimum ‘walk’ period applies which allows a number of ped-
estrians to cross safely).
● Maximum activity period–enter a maximum period for the resulting activity. In our
traffic signals example, this value would be set to equal the minimum activity period if the
lights operated on a fixed-walk cycle.
● Minimum time between Actions–enter the minimum time to leave before the action is
repeated again. In our example, if the lights have just changed from green to red, they
will not change back to green for a while, even if the button has been pressed.
240
Legion SpaceWorks R6.5.0 User Guide
It is best to create Condition Objects only when your model is reasonably complex and con-
tains objects, Entities, Entity Supplies, and Analyses.
1. Click or select Data > Conditions. The ‘Edit Conditions’ dialog box is displayed.
2. Click the New button in the top left-hand corner. The 'Condition' tab is populated.
Exporting Conditions
Rather than setting up all Conditions on an object-by-object basis within the Model Builder,
you can export a list of objects and add their conditions manually in one place: a single 'csv'
file. To do so, you first need to draw your Spatial Objects and make sure they have the 'use
condition' parameter checked. Then you can export the objects and work on them separately.
To export Conditions:
1. Select Data > Export Conditions or type exportconditions .
A Windows 'Save As' dialog is displayed.
2. Select a location to save the exported file to.
3. Click Save.
You can now open the exported file using a spreadsheet programme. All your model's objects
and any pre-existing Conditions will be exported.
You can now add conditions to this spreadsheet and import the file back into the Model Builder
(see Importing Conditions).
It is easier to check the validity of your Conditions by referring to an exported list rather
than editing objects one by one.
242
Legion SpaceWorks R6.5.0 User Guide
Importing Conditions
When you want to import a 'csv' file of Conditions into your model, follow this procedure. This
is usually done when Conditions have been added to one central file rather than created on an
object-by-object basis. See Exporting Conditions for more information.
To import Conditions:
1. Select Data > Import Conditions, or type importconditions
2. Locate the file you wish to import.
3. Click Open.
The Conditions are imported into the model; if any objects are missing or have been removed,
their Conditions will be ignored and not imported. To check that the import has been suc-
cessful, run a QA or edit specific objects and check their 'Conditions' tab.
244
Legion SpaceWorks R6.5.0 User Guide
A Demand Line can contain more than one Final Destination and different Demand Lines
can share Final Destinations. Assignment of Entities to Final Destinations can only be done
using percentage weighting or by Entity Choice > Shortest Distance
Delay Points, Drift Zones, Evacuation Zones, Level Exits and Waiting Zones have an extra tab
named 'Additional Parameters' where you can specify more specialised types of Entity move-
ment and behaviour. See the relevant sections of this guide for more information about these
particular objects.
All objects except for Entrances, Populated Zones and Evacuation Zones have an ‘Availability’
tab and a ‘Conditions’ tab. See Availability Profiles and About Conditions for more information.
Some objects also have a ‘Links’ tab or an ‘Entity Filters’ tab and two objects–Delay Points
and Waiting Zones–have a ‘Focal Distribution’ tab. All objects which are capable of being used
as targets for Entities also have a tab labelled 'Target Parameters.'
Most procedures in this part of the guide assume that you have correctly drawn and placed the
Spatial Objects in question (including Focal Segments where necessary) and have displayed
the ‘Edit <object name>’ dialog box either at the time of drawing or after selecting Edit Prop-
erties.
If you need a recap on these procedures, please see Drawing and placing Spatial Objects, Pla-
cing a Focal Segment and Selecting Spatial Objects.
The objects Delay Points, Escalators, Focal Nodes, Gates, Mesoscopic Transit Zones and Stairs
have a parameter that enables you to limit the maximum flow of pedestrians using them. This
can be useful when you need to test your model against strict regulatory requirements for
flow rates on stairs and escalators, or through gates and so on. It appears on the main 'Para-
meters' tab and is labelled 'Flow Rate Limiting. To set a maximum flow rate, check the box
Maximum and enter a value for people/minute in the adjacent box.
Some objects are more complex than others and for this reason Delay Points, Direction Modi-
fiers, Queues, Queue Groups, Waiting Zones and Focal Drift Zones have special instructions
for defining their parameters and in some cases placing certain physical features of the
object.
Entrances may be used within models to represent arriving trains, trams, buses, aero-
planes, etc.
Non-vehicular Entrances perform best when they are narrow (about 0.5m) in the direction
Entities are travelling in. Drawing Entrances at this depth prevents Entities from stacking up
behind each other, as 0.5m will only introduce (or ‘seed’) one Entity per time-step. This
means you will avoid the problem of fast moving Entities getting blocked behind slower ones.
Entrances must also be placed at least 20cm clear of any walls in order to accommodate the
proper seeding of Entities.
For Entrances, the simulator keeps a count of the Entities that failed to enter in any time-
step and tries to introduce them in a subsequent time-step.
Placing Entrances and Exits in high-density areas with bi-directional flow should be avoided:
models should be extended out to non-bottleneck areas whose exclusion will not affect sim-
ulation outputs. If you are forced to deviate from this guideline, then Entrances and Exits
should not overlap and the depth of Entrances should be kept to a minimum, 1-10cm being a
good guide.
246
Legion SpaceWorks R6.5.0 User Guide
If you want to input the distribution manually, click next to each destination name and
drag the distribution bar to set the percentage (they must equal 100%).
Exits
Exits enable Entities to leave your model. Unless you associate the Exit with an Exit Profile, it
will assume there is enough space ‘outside’ for all Entities to leave as soon as they reach the
Exit.
You can also associate an Availability Profile with an Exit (see Availability Profiles for further
information).
Exit Profiles
Exit Profiles work with Exits to limit (by means of a ‘Cap rate’) the flow of Entities leaving a
model. An Exit Profile can be linked to several Exits and, like a Delay Profile, it can contain
several intervals over time which have different Cap rates or none at all (a rate of zero will
prevent any Entities from leaving).
The following procedure describes how to set up an Exit Profile that could be used with an Exit
representing people entering a regulated-flow area just outside your model. This scenario
could involve security controls and stadium ingress trains leaving from a platform every three
minutes and taking one minute for passengers to board.
248
Legion SpaceWorks R6.5.0 User Guide
The red blocks represent periods between trains where the Exit is capped to 0, thereby pre-
venting any Entities from Exiting (entering the ‘train’). The intervals between the blocks have
no capping and therefore Entities are able to leave the Exit with no restrictions.
1. Click or select Data > Data Profiles. The ‘Edit Data Profile’ dialog box is displayed.
2. From the drop-down list on the left of the dialog box, select Exit Profile.
You can also create Exit Profiles using the new Data Template spreadsheet.
3. Click the New button in the top left-hand corner. A new ‘empty’ profile is displayed at the
top of the ‘Exit Profile’ tab.
4. Click the Add button on the right-hand side of the dialog box. A red ‘time block’ appears in
the profile, spanning the whole of the simulation time.
5. Enter a Start time of 00:01:00 and an End time of 00:04:00 in the relevant boxes.
6. Enter a Cap rate of 0.
7. Click Update to apply the settings for this period of the Exit Profile.
8. Repeat steps 4 to 7 for two further time blocks, ensuring that each block’s Start time is
one minute after the end of the previous block and that each block lasts for three minutes.
Click Apply to save this profile.
It is now available to be associated with an Exit.
To remove a time block from a profile, click on it and then click the Remove button.
You can add as many time blocks to a profile as you can fit into the running time of your sim-
ulation, with differing Cap rates as required.
Availability Profiles
Availability Profiles enable you to turn certain spatial objects ‘on or off’ at specified times and
for specified periods within the runtime of a simulation. You can create them using the Data
Template spreadsheet template or you can create them manually in the following manner.
You can also create Availability Profiles using the new Data Template spreadsheet tem-
plate.
1. Click or select Data > Data Profiles. The ‘Edit Data Profile’ dialog box is displayed.
2. From the drop-down list on the left of the dialog box, select Availability Profile.
3. Click the New button in the top left-hand corner. A new ‘empty’ profile is displayed at the
top of the ‘Availability Profile’ tab.
4. Click the Add button on the right-hand side of the dialog box. A green ‘time block’ appears
in the profile, spanning the whole of the simulation time.
5. Enter a Start time of 00:00:00 and an End time of 00:10:00 boxes. This period of 10
minutes represents the ‘ON’ period of the profile (the time when any associated object will
be available for Entities to use within a simulation).
This setting means that whichever object is associated with this profile will be available
for the first ten minutes of a simulation. Of course you can tailor this period to a specific
period with the runtime of your simulation.
6. Click the Update button to apply the ‘ON’ period. The green time block will reflect the new
period.
7. Click OK to save the Availability Profile.
Populated Zones
A Populated Zone is an area that already contains Entities (Entity or Supply Types) at the start
of a simulation. It must be sized to fit the relevant location, which may be the seating area of
a stadium or the space within a shop, etc. Entities are introduced (or ‘seeded’) randomly into
the Populated Zone at the start of a simulation.
A Populated Zone packs Entities without luggage to a maximum of 8 or 9 Entities per m 2. You
will receive a warning if your input tries to exceed 10 Entities per m2 and an error if it exceeds
15 Entities per m2.
Populated Zones with an initial population of one Entity can be as small as you like as in
this case they are exempt from warnings and errors.
Use Populated Zones wherever you need Entities to appear ‘already in the model’ at the start
of the simulation. For example, you might use them in the following instances:
● Egress modelling when, for example, Entities may start within seated areas of the model.
This can be useful for modelling the end of sporting events.
● Terminal modelling, where Populated Zones can be used along with Entrances to represent
people already in a space, for example, waiting for trains, standing in front of an inform-
ation board or en route to a destination.
Entities are directed to move away from the zone towards other destinations as soon as the
simulation starts. If you want them to remain static, you need to overlay the Populated Zone
with a Waiting Zone (the Copy Geometry tool can help you to do this; see Copying the geo-
metry of Spatial Objects).
Populated Zones only introduce Entities in the first time-step. If the space of the zone is insuf-
ficient for all Entities, those that cannot fit are discarded.
250
Legion SpaceWorks R6.5.0 User Guide
Like Entrances, Populated Zones need Demand Lines to introduce Entities into the model and
you can also assign Final Destinations to the Entities.
Evacuation Zones
These objects introduce Entities for use in evacuation simulations and they can also affect the
movements of Entities that happen to walk through them. They enable you to introduce a pop-
ulation to a model, specify the delay between the discovery of a fire and the sounding of an
alarm, and also to specify ‘pre-movement’ behaviour which complies with British Standard PD
7974-6 (this behaviour can also be customised).
Evacuation Zones are best used when you want to analyse the performance of a whole model
or a specific area of a model in terms of evacuation. Like Populated Zones, they introduce a
specified number of Entities into a model but with Evacuation Zones you can specify an alarm
time, select the Entity Type of evacuees and define pre-movement behaviour.
While the principle role of an Evacuation Zone is to introduce Entities into a model, they can
also be used as filtering objects, meaning that a Demand Line (with an initial population) is
not essential. However, in such cases you will need to adjust the 'Entity Filter' settings to
ensure that the zone affects at least some Entities.
252
Legion SpaceWorks R6.5.0 User Guide
1. Enter a name, or choose a name from the drop-down list of imported pending objects, in
the 'Name' box.
You may not need to add any Demand Lines as any Entities in the model who happen to be
in the zone at the time of the alarm will be affected.
2. To add a Demand Line (or Lines), click the New button once for each Demand Line you
need.
3. For each Demand Line:
◊ Double-click in the ‘Entity/Supply Type’ column and select from the available list.
◊ Double-click in the ‘Population’ column and enter a number.
◊ Double-click in the ‘Final Destinations’ column.
The ‘Final Destinations’ dialog box is displayed.
4. Select one ‘Assignment Method’ from:
◊ Assign by percentage weighting
◊ Assign by entity choice: shortest distance
5. To add Final Destinations, click Add destination.
The ‘Select final destinations’ dialog box is displayed.
6. Expand the object trees within the dialog box and select one or more destinations (press
and hold the ‘Ctrl’ key to select more than one available object).
7. Click OK to add the destination(s).
8. If you want to distribute Entities evenly across your destinations, click Uniform Dis-
tribution.
If you want to input the distribution manually, click next to each destination name and
drag the distribution bar to set the percentage (they must equal 100%).
Pre-movement settings
The ‘Edit Evacuation Zone’ dialog box contains a tab called ‘Pre-movement’. It includes set-
tings for six key categories of fire evacuation analysis which are contained in British Stand-
ards guidelines: Scenario, Alertness, Familiarity , Building Type , Staff training and
Alarm type.
254
Legion SpaceWorks R6.5.0 User Guide
Depending on the type and scope of your evacuation analysis, select the appropriate settings
from the 'British Standard PD 7974-6' option. The ‘Pre-movement’ tab also enables you to
override these categories by selecting Custom from the list labelled Type. You can then
enter minimum, mean and maximum values (in seconds) which are used to control the dis-
persal of evacuees according to probability factors.
For example, a minimum of 30s, mean of 45s and maximum of 60s means that the first evacu-
ees to leave the zone will leave 30 seconds after the alarm; the majority will leave around the
45 second mark and the last few to leave will leave after one minute.
256
Legion SpaceWorks R6.5.0 User Guide
The logical place to locate the Level Exit/Level Entrance pair is on the second flight of stairs
because it appears in both Level 1 and Level 2 plans. The Level 1 drawing of the second flight
will need to be extended to match the Level 2 drawing. The Level Exit and Level Entrance can
then be placed. The obstacles that appear in a Level Entrance match those in the paired Level
Exit.
Congestion
If a Level Entrance is located in an area that becomes congested, Entities will not pass through
the Level Exit until there is sufficient space for them in the Level Entrance.
Movement from a Level Exit to a Level Entrance is one-way. Once an Entity has passed from a
Level Exit into the Level Entrance, it cannot pass back into the Level Exit, even if congestion
builds up and forces Entities backwards: they will remain in the congested Level Entrance.
Showing Clones
Entities affected by a Level Exit upon their first step into its area immediately appear in the
same location inside the paired Level Entrance. This process is referred to as ‘cloning’ and it
ensures that the area occupied by Entities that have moved to a different level does not
appear to be available for other Entities to move into until the next time-step.
2. Enter a name for the Level Exit in the 'Name' box (or leave it as it is if you are happy with
the existing name).
3. If the Level Exit doesn’t require an Exit Profile, go to step 5.
4. To associate the Exit with an Exit Profile, check the box labelled Use exit profile and
select a profile from the adjacent drop-down list.
5. If the Level Exit is a filtering object, you can click on the 'Additional Parameters' tab and
enter a value in the box labelled 'Transition Cost'. The higher the value, the higher the per-
ceived cost of using the Level Exit to the Entity. This may assist Entities to choose other
less costly means of leaving a level, such as an escalator.
6. If appropriate, click on the Entity Filter tab and complete all filtering details (see Spe-
cifying filter settings for full instructions).
7. Entities automatically navigate towards the Focal Point of the object if and when they can-
not 'see' it due to obstructions. In rare instances this may cause them to move in an unex-
pected or illogical manner. To remedy this, click to the 'Target Parameters' tab and
uncheck 'Use focal point for navigation'.In this case Entities will navigate towards the
closest point on the Focal Segment.
8. If you want to link the Exit to an Availability Profile, click on the ‘Availability’ tab and
select an Availability Profile from the drop-down list labelled ‘Time Scope’. If you don’t
want to apply conditions, proceed to step 13.
9. If you want to apply conditions to the Availability Profile, check the box labelled ‘use con-
dition’.
10. Select an option from the left-hand drop-down list:
◊ AND–the condition will apply only when the ‘Time scope’ settings and the conditional
settings are both ‘true’.
◊ OR–the condition will apply when either the ‘Time scope’ settings or the conditional set-
tings are ‘true’.
The OR option is useful in cases where, for example, you may wish to allow a higher num-
ber of Entities out of an exit when an unforeseeable instance of high density occurs at a
time not covered by the Availability Profile.
11. Set up your condition as described from step 4 of To set up a Condition:.
12. If you wish to apply any restrictions to the condition, click on the ‘Availability’ tab again
and enter values for the following restrictions (details in Restrictions):
◊ Time before action
◊ Minimum activity period
◊ Maximum activity period
◊ Minimum time between Actions
13. Click OK to save the parameters.
258
Legion SpaceWorks R6.5.0 User Guide
4. Tick the box named Make size and shape consistent with level exit.
5. Click OK to save the parameters.
Stairs
The Stair object is flexible enough to represent one or all of the following types of stair con-
figuration, which combine flights of steps with landings where required.
● Single stair (no landing required)
● Linear multiple stair
● Dogleg stair
● 2-flight return stair
● Offset stair
● Extended dogleg stair
● 3-flight return stair
Stairs are always drawn from bottom to top and always finish on a step, never a landing.
The basic elements of creating the different varieties of Stair are:
1. Drawing the Stair section.
2. Splitting the Stair at some point if it connects two levels across separated CAD.
3. Deciding on whether to add a landing (type y or n).
4. Drawing a landing.
5. Adding another Stair section and either completing the object or continuing with further
landings and flights.
6. Deciding whether the Stair will be a Filter or Target object (type t or f).
7. Setting Stair parameters.
The overlap area defines the location of the Level Exit/Level Entrance pair which manages the
transition of Entities from one level to another as part of the Stair object.
This illustration shows a bidirectional Stair with two landings, which is split across two levels
of CAD (the left-hand side is the lower level).
260
Legion SpaceWorks R6.5.0 User Guide
If you need to adjust Focal Segments after drawing a Stair, see Adjusting a Focal Segment
for details.
7. If you need to test your model against required regulatory flow rates you may wish to set
a maximum value for 'Flow Rate Limiting'. To do so, check the box Maximum and enter a
value for people/minute in the adjacent field.
8. Set the Stair's filter settings by clicking on 'Up Filter', 'Down Filter' (or both if it's a bid-
irectional Stair) and following the steps outlined in Specifying filter settings.
9. To set Availability and possibly Condition parameters, follow the steps in Setting Avail-
ability parameters.
10. Click OK to close the ‘Edit Stair’ dialog box.
Placing the final vertex manually will result in a self-intersecting landing and will generate
errors during ‘ora’ import.
4. Click on the side of the landing from which you would like to draw the next flight of stairs.
You are asked whether you wish to add a further landing.
5. To add a landing, press Enter and repeat step 4.
or
If you don’t wish to add a landing, type n and press Enter.
6. From here you need to choose whether the Stair is a Filter or Target object and follow the
steps in either To create a single Stair (Target) or To create a single Stair (Filter).
262
Legion SpaceWorks R6.5.0 User Guide
When changing an Up stair to a Down stair or vice-versa, the procedure is slightly more
involved as there is an intermediate step which requires you to change the stairs to bid-
irectional. This procedure works for both cases.
Escalators
The Escalator object represents an escalator, comprising five key sections:
● the area from the end of the balustrades to the comb line
● the flat portion of stair that leads to the lower work point
● the inclined stair (riser) that leads to the upper work point
● the flat portion of stair leading to the upper comb line
● the upper landing as far as the end of the balustrades
When placing an Escalator, you need to draw these elements in sequence. Follow the prompts
in the Output Bar.
In simulations, Entities appear to be standing still while using escalators (there is no over-
taking).
Like Stairs, Escalator objects can act as targets or filters. When targets, Escalators
require you to define Focal Segments. They can be set up to allow movement upwards
downwards to match the operational conditions of the venue being modelled. You can also
specify if and on which side Entities stand or walk when using an Escalator. When Escal-
ators are used to filter Entities, you need to set Up and Down filter settings
This illustration shows a single escalator split across two levels of CAD (the left-hand side is
the lower level).
Creating an Escalator
As with the Stair object, escalators are always drawn from the bottom up.
While the flat stair and riser sections of an escalator are always rectangular, you may draw
the areas between comb lines and balustrades as polygonal sections if required.
264
Legion SpaceWorks R6.5.0 User Guide
To draw an escalator:
1. Draw the first portion of the escalator:
◊ When drawing a rectangular area, click to complete it.
◊ When drawing a polygonal area, place all the necessary vertices, press Enter to com-
plete it and then click on the side of the area from which you want to draw the flat stair
portion of the escalator.
2. Drag out the first flat stair section of the escalator to the required size and click to com-
plete it.
3. Drag the main riser section out to the desired size and:
◊ If the escalator is completely contained within one level, click to complete it and go to
step 7.
◊ If the escalator needs to be split across two levels, hold down Ctrl and click.
You are prompted to accept the default overlap area (this will be somewhere between
the minimum 0.5 metres and the maximum 2 metres) or define your own.
4. Press Enter to accept the default overlap area.
or
Type n, press Enter and then drag the area to the desired length (minimum of 0.5m to a
maximum which cannot exceed the length of the first stair section); click to set the over-
lap area.
5. Place the overlap area in the correct position on the second level of your CAD and continue
to draw the rest of the riser section of the escalator. Click to complete the section.
6. Drag out the second flat stair section of the escalator to the required size and click to com-
plete it.
7. Draw the area from the upper comb line to the end of the balustrades.
If the area is polygonal, when you have finished drawing it you are asked to select one of
its sides as the ‘entry segment’, being the segment which Entities will cross as they board
the escalator at this end. This step is necessary because, depending on the direction of the
escalator, a Focal Segment may be required at this end.
You are prompted to 'Create as Target or Filtering object? T[F]'.
8. Press Enter if you want the Escalator to be a Target or type F and press enter if you want
the Escalator to filter for Entities instead.
The ‘Edit Escalator’ dialog box is displayed.
See the following procedures for further parameters for both Target and Filter objects.
◊ Enter a value for Slope (escalator slopes generally range from 30° to 35° but check
with the manufacturer).
◊ Enter a value for the Distance Factor (for more information, see Distance Factors for
Stairs and Escalators).
4. In the 'Link Properties' area, select one of these three options:
◊ Do not change target (Entities will proceed to their next target unchanged).
◊ Revert to final destination (Entities will proceed to wards their original Final Destin-
ation).
◊ Specify links (if you select 'Specify link', click on the 'Links' tab and add your target
objects manually following the steps in Linking methods).
5. In the 'Escalator Walk/Stand Preference' area, select from the following options to define
how Entities ride on the escalator:
◊ Stand on the left
◊ Stand on the right
◊ Stand on both sides
◊ Walk on both sides.
6. If you need to test your model against required regulatory flow rates you may wish to set
a maximum value for 'Flow Rate Limiting'. To do so, check the box Maximum and enter a
value for people/minute in the adjacent field.
7. To set Availability and possibly Condition parameters, follow the steps in Setting Avail-
ability parameters.
8. Click OK.
If you need to adjust Focal Segments after drawing an Escalator, see Adjusting a Focal Seg-
ment for details.
266
Legion SpaceWorks R6.5.0 User Guide
5. In the 'Escalator Walk/Stand Preference' area, select from the following options to define
how Entities ride on the escalator:
◊ Stand on the left.
◊ Stand on the right.
◊ Stand on both sides.
◊ Walk on both sides.
6. If you need to test your model against required regulatory flow rates you may wish to set
a maximum value for 'Flow Rate Limiting'. To do so, check the box Maximum and enter a
value for people/minute in the adjacent field.
7. Set the Escalator's filter settings by clicking on Entity Filter' and following the steps out-
lined in Specifying filter settings.
8. To set Availability and possibly Condition parameters, follow the steps in Setting Avail-
ability parameters.
9. Click OK.
Linking to Escalators
Escalators can be linked to and from in the standard Legion manner (see Linking).
While the actual distance of the Stair Route is shorter than the distance of the Escalator Route,
the perceived distance in terms of effort is much longer, so the Entity will choose the Escal-
ator Route as the effort required is less even though the distance is greater.
Gates
The Gate object represents an individual ticket gate and can be set up to be an 'IN' Gate, an
'OUT' Gate or a 'Switch' Gate. An IN Gate enables pedestrians to travel from an unpaid to a
paid area of a model; an OUT Gate enables pedestrians to travel from a paid to an unpaid area
of a model; and a Switch Gate is one in which IN and OUT status can be alternated throughout
a simulation. While there are several key parameters you can set for Gates, as with all
objects, further control and logic is available through the use of Gate Control Profiles.
The relationship between legacy gatelines from earlier versions of SpaceWorks and Gate
objects (version R6.5.0 onwards) requires that Gate Control Profiles can be created from
Availability Profiles and also that Availability Profiles can be created from Gate Control Pro-
files. See Gates, Gatelines, Gate Control Profiles and Availability Profiles.
To clarify further:
● In gate–this gate enables pedestrians to flow through it from an unpaid area of the model
to a paid area.
● Out gate–this gate enables pedestrians to flow through it from a paid area of the model to
an unpaid area.
● Switch gate–the flow of pedestrians through this kind of gate can be alternated from In to
Out throughout the simulation, according to its associated Gate Control Profile.
When drawing a Gate, there is no default setting for In, Out or Switch and you are able to
choose which state you prefer after you've placed the object. The different states require
slightly different parameters to be set, as described below. As with all objects, it helps to use
the Model Builder's various Snap tools when drawing and placing a Gate.
To draw a Gate:
268
Legion SpaceWorks R6.5.0 User Guide
Depending on where your cursor is placed, the Gate object will display an arrow indicating
whether the gate is an In, Out, or Switch gate. The illustration above indicates an Out gate
(because the cursor is hovering over the trapezoid at the 'paid' side of the gate).
If you shift the cursor towards the centre of the Gate, you will see a double arrow, indic-
ating the Switch state.
And if you move the cursor to the trapezoid at the 'unpaid' side of the gate, you will see a
green arrow, indicating the In state.
5. To set the state of the gate to In, Out, or Switch, move your cursor to the appropriate pos-
ition as just described and click, or you can type i, o, or s and hit Enter.
The Edit Gate dialog box is displayed. Its active contents will differ according to which
state of Gate you have chosen. Here a 'Switch' gate's parameters are illustrated.
6. Continue to the next procedures to set parameters for the three types of Gate.
270
Legion SpaceWorks R6.5.0 User Guide
If you select 'Specify link', click on the 'Links from IN gate' tab and add your target
objects manually following the steps in Linking methods).
5. If you need to test your model against required regulatory flow rates you may wish to set
a maximum value for 'Flow Rate Limiting IN'. To do so, check the box Maximum and
enter a value for people/minute in the adjacent field.
6. Click the 'IN Delays' tab.
7. Choose a Delay Profile for the default Entity Type (‘All Other Entity Types’) by double-click-
ing in the ‘Delay Profile’ column and selecting a profile from the list.
8. If you wish to add an extra Entity Type/Delay Profile combination, click the New button to
add a new row to the ‘Delay profiles’ portion of the dialog box.
9. Double-click in the ‘Entity Type’ column and select a type from the drop-down list.
10. Double-click in the adjacent ‘Delay Profile’ column and select a profile from the drop-
down list.
11. Repeat steps 8 to 10 for any new combinations of Entity Type and Delay Profiles you
would like to add.
12. Click the 'Target Parameters' tab. Entities automatically navigate towards the Focal Point
of an object if and when they cannot 'see' it due to obstructions. In rare instances this may
cause them to move in an unexpected or illogical manner. To remedy this, uncheck Use
focal point for navigation. In this case Entities will navigate towards the closest point
on the Focal Segment.
13. Click OK.
9. Double-click in the ‘Entity Type’ column and select a type from the drop-down list.
10. Double-click in the adjacent ‘Delay Profile’ column and select a profile from the drop-
down list.
11. Repeat steps 8 to 10 for any new combinations of Entity Type and Delay Profiles you
would like to add.
12. Click the 'Target Parameters' tab. Entities automatically navigate towards the Focal Point
of an object if and when they cannot 'see' it due to obstructions. In rare instances this may
cause them to move in an unexpected or illogical manner. To remedy this, uncheck Use
focal point for navigation. In this case Entities will navigate towards the closest point
on the Focal Segment.
13. Click OK.
272
Legion SpaceWorks R6.5.0 User Guide
Delay Points
Delay Points cause Entities to pause in a specified fashion, for a specified interval of time
(defined by Delay Profiles). When they have individually satisfied the conditions of the Delay,
Entities are targeted to another object as part of their journey.
Delay Points differ from Waiting Zones in the following ways:
● A Delay Point is associated with one or more Delay Profiles, whereas a Waiting Zone
induces an indefinite delay which is typically interrupted by an Event Profile linked to a
superimposed Direction Modifier.
● A Delay Point gives waiting Entities instructions individually, according to their Delay Pro-
file, whereas a Waiting Zone instructs Entities collectively.
Delay Points have an area, a Focal Segment and you may also place Dispersal Points.
You should use Delay Points when an individual Entity’s delay leads to a change in destination,
for example when a person stops at an information point in a retail centre to find out the loc-
ation of a particular store, or pauses to eat food beside a kiosk before returning to a stadium
seat.
You can also use Delay Points anywhere that Entities are likely to stop for a particular time,
until a particular time (one event only), or according to a distribution.
Delay Points are also used in combination with Queues to represent service points where a per-
son eventually receives the service they were queuing for.
Point. However, they will only wait if they are being targeted from one of these four objects:
Entrance, Populated Zone, Focal Node or another Delay Point. From any other objects, they
will approach the Delay Point target and disperse close to it.
When 'Use Target Availability' is unchecked, Entities will disregard availability and approach
the target objects anyway.
The kind of dispersion that Dispersal Points counteract may actually be useful for mod-
elling train carriages where density is low and people tend to disperse to the perimeters.
For more information on Delay Profiles, see Delay Profiles. You must have already cre-
ated a Delay Profile if you want to associate a Delay Point with it.
274
Legion SpaceWorks R6.5.0 User Guide
6. If you need to test your model against required regulatory flow rates you may wish to set
a maximum value for 'Flow Rate Limiting'. To do so, check the box Maximum and enter a
value for people/minute in the adjacent field.
Use behaviour modification options with caution. In most cases the options should only be
used to influence sub-sets of Entities within discrete areas of a model and where a model
without the modification has shown anomalous behaviour
● None—no special behaviour is applied to Entities
Entity Environment
● Vehicle (carriages, buses, lifts and other vehicles)
◊ Diffusing
> Removes Entity synchronisation and reduces priority of Entities and encourages an
even dispersion inside the zone.
> Use it to encourage Entities to disperse evenly within a crowded space, such as a
train carriage or lift.
◊ Waiting
> Reduces priority of Entities further so that all other Entities can move past them. It
also removes Entity synchronisation.
> Use it to encourage waiting or delayed Entities to reposition themselves to allow
other Entities to move past them. Useful in train carriages and lifts.
● Platform (rail and metro; areas in front of lifts, buses and other vehicles)
◊ Removes Entity synchronisation and modifies Discomfort and Frustration parameters.
◊ Use it to encourage waiting or delayed Entities to reposition themselves to allow other
Entities to move past them. Useful on crowded platforms and similar contexts.
3. Click on the Links tab and complete the link details (for further information, see Linking
methods).
If a delay is brief, an Entity may actually fulfil its delay requirements while walking
towards a Dispersal Point.
276
Legion SpaceWorks R6.5.0 User Guide
◊ OR–the condition will apply when either the ‘Time scope’ settings or the conditional set-
tings are ‘true’.
The OR option is useful in cases where, for example, you may wish to allow a higher num-
ber of Entities out of an exit when an unforeseeable instance of high density occurs at a
time not covered by the Availability Profile.
5. Set up your condition as described from step 4 of To set up a Condition:.
6. If you wish to apply any restrictions to the condition, click on the ‘Availability’ tab again
and enter values for the following restrictions (details in Restrictions):
◊ Time before action
◊ Minimum activity period
◊ Maximum activity period
◊ Minimum time between Actions
7. Click OK to save the parameters.
Target Parameters
There is an additional tab named 'Target Parameters' where you can adjust the way Entities
navigate to the Focal Point when they can't 'see' it due to obstructions. The tab contains a
checkbox labelled 'Use Focal Point Navigation'.
If you check this option, Entities will auto-navigate to the Focal Point and, once they can see
it, will cross the Focal Segment at the nearest point. If you leave the option unchecked, Entit-
ies will head towards the nearest visible point on the Focal Segment whether they can see the
Focal Point or not (this method can create more realistic movements but may also slow the
software's performance).
Queues
Queues simulate the activity of people queuing for services like cash machines, or ticket coun-
ters. You can set their position, how visible they are to your Entities, the angle at which the
Queue grows and the ‘rigidity’ of the developed Queue (that is, how willing the queuing Entit-
ies are to let non-queuing Entities pass through the line). Queues can also be included in
Queue Groups (see Queue Groups).
Queues have a ‘Direction of Growth’, a ‘Region of Visibility’ and a ‘Zone of Influence’. They
can receive links from other objects but can only be linked to Delay Points. Each Queue must
be linked to a Delay Point for it to function properly.
The Legion Model Builder provides you with the tools to create three types of queue:
● Single Queue to single service point–one Queue leading to one service point, like a queue
for a cash machine.
● Single Queue to multiple service points–one Queue serviced by multiple service points.
Entities wait at the head of the Queue until a service point becomes available, like a queue
in a post office.
● Grouped single Queues to single service points–a series of single Queues, each serving
their own individual service point and offering the same service. Each service point has its
own queue but Entities decide which queue to join, like queues for supermarket checkouts.
This type of Queue is covered in Queue Groups.
Creating a Queue
Queues are a little more complex to draw and place than most Spatial Objects.
To draw a Queue:
278
Legion SpaceWorks R6.5.0 User Guide
This procedure assumes that you have already drawn the relevant Delay Point and set its para-
meters. For further information, see Drawing Delay Points.
Queue Groups
A Queue Group is an object that enables you to model airline check-in or supermarket check-
out-style queuing systems where there are a series of single Queues, each leading to indi-
vidual service points that offer the same service. Each service point has its own Queue but
Entities decide which Queue to join after assessing which visible Queue is shortest.
280
Legion SpaceWorks R6.5.0 User Guide
4. Click within the Queue Group object to place a Focal Point (this is the point to which Entit-
ies targeted to the Group will head for initially).
A suggested polygon, based on your chosen Focal Point, is displayed with a dark green dot-
ted outline. If you want to change the shape of this polygon, move your cursor.
5. To accept a suggested polygon, press Enter.
To reject a suggested polygon, type n and press Enter. Now manually draw the shape of
the Queue Group (to complete a polygon, press Enter).
6. The ‘Edit Queue Group’ dialog box is displayed.
See the next two procedures for information on how to complete the Queue Group Para-
meters.
Queue #001 1 10
Queue #002 3 10
Queue #003 2 8
Entities will initially head to Queue #001 as it has the highest priority (1). Once this queue has
10 people waiting in it, Queue #003 will open as it has the next highest priority (2).
Entities will begin to choose between Queue #001 and Queue #003 in accordance with the
Entity Choice Assessment Method associated with the Queue Group (i.e. shortest queue or
shortest distance to the queue).
If Queue #003 reaches its capacity of 8 people while Queue #001 is also at capacity, then
Queue #002 will open and Entities will start to join it as well.
Queue Closing
The Queue Closing scheme uses the priority settings to decide which Queues to close first: low-
est priority Queues are closed before those with a higher priority.
The scheme also uses a ‘threshold’ setting, which you can set at anywhere between 0 and
100%. This threshold indicates an amount of available queue capacity above which the lowest
priority Queue will close. Capacity is calculated using those Entities already waiting in Queues
and those Entities already on their way to join Queues.
So, in the example above, if all three Queues are open and the threshold is set to 50%, then
the lowest priority Queue will close when the remaining capacity in the other two Queues is
greater than 50% (in this case a capacity of more than nine Entities).
When a Queue closes, you can decide whether Entities waiting in that Queue remain there
until they receive the service they are queueing for (no other Entities can join the Queues
once it has closed, however) or you can send these Entities to the other open Queues.
In the latter case, capacity is calculated by also counting these Entities that will need to be
reallocated.
282
Legion SpaceWorks R6.5.0 User Guide
Waiting Zones
Waiting Zones cause Entities to wait inside a defined area of your model, for an undefined
period. As in the case of Delay Points, Entities disperse inside the area of the Waiting Zone
according to a combination of defined Entity waiting parameters and Dispersal Points.
To get Entities to leave a Waiting Zone, you need to interrupt their wait with one or more
Event Profiles, each linked to a Direction Modifier. This combination will cause selected Entit-
ies to move on to a new target when a scheduled event occurs. For more information on Event
Profiles, see About Demand Data; see also Direction Modifiers.
You can link Entities directly to Waiting Zones or you can set Waiting Zones to filter Entities by
Target or by Entity Type:
● If the Waiting Zone filters By Target, the Direction Modifier you link to it must change the
affected Entities’ target.
● If the Waiting Zone filters By Entity Type, the Direction Modifier you link to it must change
the affected Entities’ Types.
Waiting Zones have an area, either a Focal Segment or Filter properties, and also require Dis-
persal Points.
Superimpose objects by using the Copy Geometry tool. See Copying the geometry of Spa-
tial Objects.
Waiting Zones are best used for scheduled events, like the regular arrival and departure of
trains. A typical use for a Waiting Zone would involve superimposing a Direction Modifier onto
it, which in turn is associated with an Event Profile.
3. The Entity Waiting parameters are the same as those for Delay Points so please follow the
steps in To set Waiting Location parameters:.
4. If you created the Waiting Zone as a filter object, then you can click on the 'Entity Filter'
tab and complete the Filtering parameters (for further information on filtering, see Spe-
cifying filter settings). Otherwise the ‘Entity Filters’ tab will be unavailable and you can
omit this step.
5. To set the Dispersal Point parameters, follow the steps in Setting Dispersal Point para-
meters.
6. To set Availability and possibly Condition parameters, follow the steps in Setting Avail-
ability parameters.
7. If your Waiting Zone is a target object, Entities automatically navigate towards the Focal
Point of the object if and when they cannot 'see' it due to obstructions. In rare instances
this may cause them to move in an unexpected or illogical manner. To remedy this, click
to the 'Target Parameters' tab and uncheck 'Use focal point for navigation'.In this case
Entities will navigate towards the closest point on the Focal Segment.
Use behaviour modification options with caution. In most cases the options should only be
used to influence sub-sets of Entities within discrete areas of a model and where a model
without the modification has shown anomalous behaviour.
● None—no special behaviour is applied to Entities
Entity Environment
● Vehicle (carriages, buses, lifts and other vehicles)
◊ Diffusing
> Removes Entity synchronisation and reduces priority of Entities and encourages an
even dispersion inside the zone.
> Use it to encourage Entities to disperse evenly within a crowded space, such as a
train carriage or lift.
◊ Waiting
> Reduces priority of Entities further so that all other Entities can move past them. It
also removes Entity synchronisation.
> Use it to encourage waiting or delayed Entities to reposition themselves to allow
other Entities to move past them. Useful in train carriages and lifts.
● Platform (rail and metro; areas in front of lifts, buses and other vehicles)
◊ Removes Entity synchronisation and modifies Discomfort and Frustration parameters.
◊ Use it to encourage waiting or delayed Entities to reposition themselves to allow other
Entities to move past them. Useful on crowded platforms and similar contexts.
3. Click OK to save the parameters.
284
Legion SpaceWorks R6.5.0 User Guide
Direction Modifiers
Different Roles of Direction Modifiers
The principal role of a Direction Modifier is to re-target Entities to other Activity Objects dur-
ing their journey. This is useful when, for example, you want to redirect waiting Entities to a
platform in response to a station announcement or when you want to define a catchment area
from which a percentage of people is redirected to a nearby attraction (for example a shop or
ticket office) or an alternative route.
A second role is to change an Entity’s Type. As an example, this can be useful when modelling
passengers who drop off luggage at a certain point in the model and thereafter occupy a smal-
ler footprint and possibly move at a different pace.
A third role is to change an Entity’s Final Destination. This could be used during evacuation
modelling: the Direction Modifier could change an Entity’s Final Destination to be one of the
exits as soon as an evacuation begins.
If you set this to fewer than 100%, then the number of Entities that the ‘Scope’ portion
affects will be scaled accordingly. For example, assume that this value has been set to
40%. If at a given moment in time a Direction Modifier's occupancy is 600 Entities and the
Scope attribute is set to ‘Always’ or there is an active Event Profile that affects 600 or
more Entities at that precise moment, then only 240 Entities will actually be affected in
that time-step.
4. Select a Data Profile from the drop-down list labelled 'Profile'.
5. If you want to apply conditions to the Direction Modifier, check the box labelled ‘use con-
dition’ to enable the 'Conditions' tab. See 14: Conditions in Models and in particular, To set
up a Condition: for further information.
If you wish to apply any restrictions to the condition, enter values for the following restric-
tions (details in Restrictions):
◊ Time before action
◊ Minimum activity period
◊ Maximum activity period
◊ Minimum time between Actions
6. Click on the Entity Filter tab and complete the Filtering parameters (for further inform-
ation on filtering, see Specifying filter settings).
7. Click on the Links tab and complete the link details (for further information, see Linking
methods).
8. If applicable, click on the Target Rules tab and set up the appropriate rules. See Setting
Target Rules for full instructions.
9. If you checked the box labelled ‘Change final destination’ earlier, click on the Final
Destinations tab and click the Add Destination button, otherwise proceed to step 14.
The ‘Select final destinations’ dialog box is displayed.
10. Expand the object trees within the dialog box and select one or more destinations (press
and hold the ‘Ctrl’ key while clicking to select more than one).
11. Click OK to add the destination(s).
12. If you want to distribute Entities evenly across your destinations, click Uniform Dis-
tributionIf you want to input the distribution manually, click next to each destination
name and drag the distribution bar to set the percentage (they must equal 100%).
286
Legion SpaceWorks R6.5.0 User Guide
◊ Affect Entity multiple times while inside–Entities may be affected more than
once while they are inside the Direction Modifier (for example, they may miss a train,
return to their waiting point and then attempt to board subsequent trains).
2. In the ‘Target List’ portion of the dialog box, specify whether Any target or All targets
should be used in the evaluation.
By way of illustration, if you selected ‘Do not affect Entities that have visited targets in the
list below’, then specifying ‘Any target’ means that if an Entity has visited one of the tar-
gets in your Target List, it will not be affected again. Conversely, 'All targets' means that
an Entity will continue to be affected until it has visited each and every target in the list.
3. Select targets in the following ways.
◊ To move all items into the Selected target(s) pane, click the >> button.
◊ To move a single item into the Selected target(s) pane, click on the item and click the
> button.
◊ To move all items back into the Available target(s) pane, click the << button.
◊ To move a single item back into the Available target(s) pane, click on the item and
click the < button
4. Click OK to save your rules or click any of the other tabs if required.
Focal Nodes
Focal Nodes are intermediate targets comprising an area and a Focal Segment. Entities tar-
geted to a Focal Node move towards its Focal Segment and are re-targeted to another object
once they step into its area. In this way Focal Nodes function as intermediate objectives or
‘decision-points’ within an Entity's total journey.
You should use Focal Nodes when you want to create a subroute for a percentage of your Entit-
ies or certain Entity Types. A typical application arises when there are multiple valid paths to
the same onward destination.
You can associate Focal Nodes with Availability Profiles (for more information, see Availability
Profiles).
288
Legion SpaceWorks R6.5.0 User Guide
Drift Zones
Drift Zones provide information about the nature of a space and people’s movement through
it, such as the level of the terrain and any necessary changes of direction or changes in walk-
ing speed. In some circumstances, notably long corridors, they may be more appropriate to
use than Focal Drift Zones. They are useful as a supplementary routing measure in areas of
high congestion or anomalous situations where Entity movement needs to be ‘corrected’ from
that created by Legion auto-navigation.
Drift Zones have an area, a directional arrow and can filter by Entity Type and Target. They
are generally used for modelling the following:
● Long narrow corridors, generally for corridors of 2m width or less.
● Stairs and escalators in rare occasions when the specialised Stair and Escalator objects
are not sufficient.
● Boarding areas in front of ‘ad-hoc’ stairs and escalators when the specialised Stair and
Escalator objects are not sufficient.
Drift Zones are also useful in the following cases:
● ‘Keep left’ signs
◊ In instances where signage results in people moving in an absolute direction (to the
left or right) as opposed to towards a point (represented by a Focal Drift Zone).
● Heavy two-directional flow
◊ In corridors where very heavy bidirectional flow is expected, operational procedures
to segregate that flow are best represented with two Drift Zones directing Entities in
opposite directions (using filters to select Entities).
Entities affected by a Drift Zone move in the general direction it defines rather than
towards a specific focal point.
290
Legion SpaceWorks R6.5.0 User Guide
◊ Linear–enter a value to define the angle (0° to 360°) in which Entities will drift or drag
and move the Drift Zone’s arrow in the model.
◊ Random Deviation–this causes Entities to move in a defined direction according to a
defined probability. Enter a value for the Max Deviation Angle (this is the maximum
direction-change allowed between steps) and then enter a Change Probability value
(this is a percentage and defines the probability of Entities changing direction in the
angle of deviation).
◊ Circular–this makes the Drift Zone circular. Select either Clockwise or Counter
Clockwise to set the direction of the Drift Zone and enter values for X and Y coordin-
ates in the boxes labelled Centred On. You can also change the centre by clicking and
dragging the central node of the Drift Zone in the model.
The distance factor applies if the Drift Zone is a filtering object rather than a target object.
Distance factors indicate how much more or less energy a person would use using an escal-
ator or stairs compared to walking. Escalators have default factor of 0.2 (20% of the
energy needed to walk on flat ground is required) and stairs have a default factor of 1.98
(almost twice as much effort needed compared to walking on flat ground).
3. If you would like your Entities to change their behaviour to respond to certain envir-
onmental conditions, you can set 'Entity Special Behaviour' parameters:
Use behaviour modification options with caution. For example, the Alighting and Late
boarding modifications make Entities highly motivated, which can lead to unreliable res-
ults if assigned incorrectly. In most cases the options should only be used to influence sub-
sets of Entities within discrete areas of a model and where a model without the modi-
fication has shown anomalous behaviour
● None—no special behaviour is applied to Entities
● Entity Step
◊ Entity Priority
> High—Entities have priority and are able to pass other Entities (with a lower pri-
ority) first.
> Low—Opposite effect to 'High'.
> Use where an 'after you' etiquette is helpful to resolve competition between oppos-
ing or allied Entities.
> High and Low priorities can be used in combination to amplify the effect of each.
◊ Direction
> Left—Entities prefer to avoid other Entities and obstacles by stepping to the left.
> Right—Entities prefer to avoid other Entities and obstacles by stepping to the right.
> Use to help resolve high-density counter-flow inside constrained areas (stairs, pas-
sageways, footpaths and similar).
> Also helps when modelling the effects of signage, floor markings, or local customs.
Entity Environment
● Vehicle (carriages, buses, lifts and other vehicles)
◊ Alighting—Similar to 'High priority'; increases tolerance of Discomfort resulting from
high-density and removes Entity synchronisation.
> Use to help Entities leave a crowded space (lift, train carriage and similar).
◊ Late boarding—By increasing tolerance of Discomfort and removing Entity syn-
chronisation, this results in Entities being more willing to push into crowded areas (like
a cramped train carriage).
> Use to help Entities enter a crowded space (lift, train carriage and similar).
4. Click on the 'Entity Filter' tab and complete the filtering details (for further information,
see Filtering).
5. Click on the 'Availability' tab if you wish to set availability restrictions on the Drift Zone.
See 'Setting Availability Parameters' after this procedure.
6. Click OK to save the parameters.
292
Legion SpaceWorks R6.5.0 User Guide
3. If you want to apply conditions to the Availability Profile, check the box labelled ‘use con-
dition’.
4. Select an option from the left-hand drop-down list:
◊ AND–the condition will apply only when the ‘Time scope’ settings and the conditional
settings are both ‘true’.
◊ OR–the condition will apply when either the ‘Time scope’ settings or the conditional set-
tings are ‘true’.
5. Set up your condition as described from step 4 of To set up a Condition:.
6. If you wish to apply any restrictions to the condition, click on the ‘Availability’ tab again
and enter values for the following restrictions (details in Restrictions):
◊ Time before action
◊ Minimum activity period
◊ Maximum activity period
◊ Minimum time between Actions
7. Click OK to save the parameters.
Before placing FDZs, you must create a Partition Layer (or Layers) for them.
4. Click once on one of these new markers. A new FDZ is suggested and appears as a light
brown shape.
5. Either press Enter to accept the suggested FDZ, or type n and press Enter to reject it.
If you experience errors with gaps in partitioning or inaccurately placed FDZ borders, see
Changing the algorithm to resolve errors with FDZs.
Repeat steps 4 and 5 until you have placed all possible FDZs. The ‘Auto FDZ Parameters’
dialog box is displayed.
6. Enter a value (in metres) in the box labelled Enter the distance to offset Focal Points
from corners. This distance represents the space that people generally leave between
themselves and an obstacle they are passing (0.5 metres is a realistic distance).
If the demand on a model increases significantly (for example when different scenarios
are tested), you may need to increase this offset value to ensure accurate simulation of
people moving around corners and obstacles.
7. Click OK to close the dialog box.
294
Legion SpaceWorks R6.5.0 User Guide
After placing the FDZs, you must set up their parameters. See Setting Focal Drift Zone para-
meters for further information.
1. Click on or select Route Partitioning > Batch toolbar button (or type autofdz_
batch).
An initial Focal Target is indicated by a marker (a red circle) within the target object.
2. Click once on this marker.
The shape of a suggested FDZ is indicated by brown dotted lines. You can move these lines
by moving your cursor, which will also move the original marker. If you want to override
the suggested Focal Target, hold down the Shift key and click where you want it to be.
Focal Targets must lie within the accessible space of the model.
3. When you are happy with the shape and position of the suggested FDZ, press Enter.
The software will now try to fill all available space with a series of FDZs. If it does so suc-
cessfully, the ‘Auto FDZ Parameters’ dialog box is displayed.
If you experience errors with gaps in partitioning or inaccurately placed FDZ borders, see
Changing the algorithm to resolve errors with FDZs.
4. Enter the offset distance in metres; this is the distance between the focus of each FDZ and
the corners of walls or obstacles (0.5 metres is a realistic distance).
5. Click OK to close the dialog box.
There is a high probability that this process will encounter spatial conflicts. Please see the
following section for information on how to resolve these.
After placing the FDZs, you must set up their parameters. See Setting Focal Drift Zone para-
meters for further information.
Spatial conflicts
A spatial conflict occurs in batch partitioning when two or more suggested FDZs would, if gen-
erated, occupy the same space. This occurs when Entities have a choice of routes around an
obstacle. When a conflict is detected, the software stops processing the accessible space.
Non-conflicting polygons are added to the model as FDZs, a warning message is displayed and
conflicted areas are coloured red.
This is an example of a spatial conflict:
The red area is the conflicted area where both focal targets are suggesting FDZs that would
overlap.
There are three ways to resolve the conflict:
● Manually draw FDZs and Drift Zones in the conflict area.
● Start the Interactive FDZ partitioning process. This continues from the last suggested focal
targets of non-conflicting FDZs and it enables you to choose which route should be fol-
lowed.
● Split the conflict area using a Partition Guide and then resume the batch partitioning.
296
Legion SpaceWorks R6.5.0 User Guide
They are also useful for solving spatial conflicts when you are partitioning your model’s
accessible space with Focal Drift Zones. This does not apply to auto-navigation since spatial
conflicts do not arise where it is active.
Partition Guides have a tiny area of 7cm (in model-scale terms) surrounding them that cannot
be covered by the FDZ. This creates the slight risk of Entities losing instructions if their
centres stray into this unpartitioned area. To avoid this, snap all adjacent, generated FDZs to
any Partition Guides you have used. See Using Snaps.
● Delete the FDZ and replace it with a Drift Zone (taking care to ensure that the Drift Zone’s
Direction Change parameters do not create any routing anomalies).
● Trim the FDZ to the edge of the Activity Object used to initially generate the FDZs as part
of the partitioning process (this is the recommended method).
298
Legion SpaceWorks R6.5.0 User Guide
Route Guides
Route Guides can be used to steer Entities away from certain areas of a model and thereby
suggest they take an alternative route. They have a directional feature, similar to Analysis
Lines, and the ability to filter for Entities. Sometimes Entities may cross a Route Guide as a
result of congestion but they can also be set up as obstacles that cannot be crossed under any
circumstances.
For example, you can use Route Guides to model one-way passageways (by blocking access
to the passageway in one direction) or to restrict certain areas of a model to Entity Types rep-
resenting staff or VIPs. The filter on Route Guides also helps when modelling routes for mobil-
ity impaired people, as inaccessible areas or elements can be barred to these types of Entity.
Drawing from left to right will create a directional arrow pointing up; drawing from right to
left will create a directional arrow pointing down; drawing top to bottom will create a dir-
ectional arrow pointing to the right; drawing bottom to top will create a directional arrow
pointing to the left.
3. To draw a single segment, drag the cursor to the point where you would like to place the
other end of the line, click, and press Enter.
To draw a poly-line, drag the cursor to the point where you would like to place the other
end of the first line and click; then move the cursor to the point where you would like to
place the end of the second line and click, and so on for each new line you would like to
place as part of the Poly-line. Click and press Enter to complete the line.
The ‘Edit Route Guide <name>’ dialog box is displayed.
4. Enter an appropriate name for the Route Guide.
5. If you want the Route Guide to keep Entities from crossing it in either direction, check
Affect Entities in either direction.
6. If you want the Route Guide to work as an inviolable obstacle, check Function as an
obstacle.
7. To specify which specific Entities are affected by the Route Guide, click the ‘Entity Filter’
tab and specify the filters in the standard manner as described in Specifying filter settings.
8. If you want to link the Route Guide to an Availability Profile, click on the ‘Availability’ tab.
9. Select an Availability Profile from the drop-down list labelled ‘Time Scope’. If you don’t
want to apply conditions, proceed to step 14.
10. If you want to apply conditions to the Availability Profile, check the box labelled ‘use con-
dition’.
11. Select an option from the left-hand drop-down list:
◊ AND–the condition will apply only when the ‘Time scope’ settings and the conditional
settings are both ‘true’.
◊ OR–the condition will apply when either the ‘Time scope’ settings or the conditional set-
tings are ‘true’.
The OR option is useful in cases where, for example, you may wish to allow a higher num-
ber of Entities out of an exit when an unforeseeable instance of high density occurs at a
time not covered by the Availability Profile.
12. Set up your condition as described from step 4 of To set up a Condition:.
13. If you wish to apply any restrictions to the condition, click on the ‘Availability’ tab again
and enter values for the following restrictions (details in Restrictions):
◊ Time before action
◊ Minimum activity period
◊ Maximum activity period
◊ Minimum time between Actions
14. Click OK.
When drawing an MTZ, you will be asked 'Does this MTZ have any entrance/exit areas?'
This question refers to whether or not the zone will contain a volume of space which Entit-
ies will enter and exit, or whether the zone will be comprised of single segments which
Entities simply cross. Answering yes or no changes how you draw the object. If you
answer 'yes', you will draw an area (or areas if the exit area is in a different location to
the entrance area); if you answer 'no', you will simply draw segments. Segments are use-
300
Legion SpaceWorks R6.5.0 User Guide
ful when the geometry you wish to model mesoscopically is difficult to draw or lays bey-
ond the boundaries of your model (for example, a string of complex train carriages or a
holding area outside your area of interest).
7. To add an extra Entity Type/Delay Profile combination, click the New button to add a new
row to the ‘Delay profiles’ portion of the dialog box.
8. Double-click in the ‘Entity Type’ column and select a type from the drop-down list.
9. Double-click in the adjacent ‘Delay Profile’ column and select a profile from the drop-down
list.
10. Repeat steps 7 to 9 for any new combinations of Entity Type and Delay Profiles you would
like to add.
11. In the 'Link Options' area, select one of these two options:
◊ Revert to final destination (Entities will proceed to wards this target or targets)
◊ Specify links
If you select 'Specify link', click on the 'Links' tab and add your target objects manually fol-
lowing the steps in Linking methods).
12. If you need to test your model against required regulatory flow rates you may wish to set
a maximum value for 'Flow Rate Limiting'. To do so, check the box Maximum and enter a
value for people/minute in the adjacent field.
13. If you would like to associate the object with an Availability Profile, click the 'Availability'
tab.
302
Legion SpaceWorks R6.5.0 User Guide
the choice of adjusting both areas or just the entry or exit area. For example, here is what
you see when you right-click on the entry area of an MTZ. The ' (Entry Area)' only is high-
lighted here.
Multipath Zone
The Multipath Zone (MPZ) enables you to create an area of your model within which Entities
choose between multiple possible routes depending on conditions along the routes and their
preferences for distance and time. This new object simplifies modelling and shifts route
choice away from predetermined inputs and towards more genuinely emergent outputs.
You should place MPZs in areas where Entities ought to consider alternative paths within their
journey. A good place would be where there are a choice of vertical circulation elements like
stairs and escalators. In such places, pedestrians make decisions based on immediately per-
ceptible congestion, and assumed effort. Enabling them to choose their own routes by placing
an MPZ in relevant areas ensures decisions are made without a false 'God-like' knowledge of
the whole environment.
3. To set the criteria by which Entities decide between multiple routes, adjust the Distance vs
Time slider.
At first, the slider is set at 50:50, meaning half the Entities inside the zone think the dis-
tance they have to travel along a route is more important than the time it will take, and
vice versa.
4. Click and slide the value towards either Distanceor Time. The 50:50 value will change as
you do so.
The closer you move the slider to 'Distance', the more Entities will choose a shorter trip.
For example, even though they might see that a longer route is quicker due to less con-
gestion, they will stick with the shorter route to preserve effort
The closer you move it to 'Time', the more Entities will choose what they perceive to be
the quicker route. For example, even though they might see that the quicker route is more
congested, they may stick with this choice rather than switch to a longer route which they
perceive as less congested.
5. To introduce a certain amount of random route selection, adjust the 'Random Noise' slider.
If you slide it to 0%, every Entity will obey the Distance vs Time setting. The maximum
304
Legion SpaceWorks R6.5.0 User Guide
setting, 20%, means that this amount of Entities will ignore the Distance vs Time setting,
leading to potentially more realistic decisions. Try different percentages to fine-tune your
results.
6. To set filter parameters, click on the 'Entity Filter' tab and follow the instructions in Spe-
cifying filter settings
7. Click OK to save your settings and close the dialog.
To group objects:
1. Draw the individual objects and set their parameters as required.
2. Select the objects in the Object Directory, right-click on one of them and select Create
Group.
or
Type Group into the Command Bar, select the objects in the workspace, and press Enter.
The ‘Edit Group Object’ dialog box is displayed, featuring your chosen objects in the ‘Selec-
ted’ pane and other available objects in the ‘Available pane’.
Objects that already belong to a group will not appear in the ‘Available’ pane.
3. Enter a meaningful name for the group in the ‘Name’ box.
4. If you wish to add or remove objects from this group, you can do so by moving them in or
out of the ‘Selected’ pane using the selection buttons >, >>, <, <<.
5. Click OK to close the dialog box.
The new object is created and added to the ‘Groups’ folder in the Object Directory. The
group can be expanded to reveal its constituent objects. The constituent objects will not be
listed individually as long as they are part of a group
You can also drag and drop objects belonging to the Object Directory into or out of an exist-
ing group.
Hiding and showing Group Objects
This function works slightly differently for groups and their objects. In the Object Directory,
click once on the eye icon next to a group's name to hide the constituent objects but leave the
group object border visible. To hide this border as well, click on the eye icon once more. Hide
and show the constituent objects by expanding the group tree and clicking the appropriate eye
icons in the usual fashion.
If you need to refresh your knowledge of linking methods, please see Linking methods.
306
Legion SpaceWorks R6.5.0 User Guide
2. Select the Entity Types you would like to be able to link to the Group Object using the selec-
tion buttons >, >>, <, <<.
3. Click OK.
4. If you added more than one object, the ‘Add Link’ dialog box for each of the objects will be
displayed in turn. Repeat steps 2 and 3 for each.
5. Your selected Entity Types and objects they are linked to are displayed in the ‘Edit
<name> dialog box.
308
Legion SpaceWorks R6.5.0 User Guide
For full details of the different linking methods available, see Linking methods.
310
Legion SpaceWorks R6.5.0 User Guide
312
Legion SpaceWorks R6.5.0 User Guide
Simulator components
This section describes the various elements that go to make up the Legion Simulator.
Toolbars
The Simulator has several toolbars, which are initially grouped together above the workspace.
The purpose of each icon is explained in this guide as specific tasks are described.
For information on repositioning or customising toolbars, see Repositioning toolbars and turn-
ing toolbars off and Creating a custom toolbar.
Object Directory
Like the Model Builder, the Simulator has an Object Directory but the Simulator’s directory is
simpler in that it only enables you to show or hide the objects in the inventory and to show or
hide Entity Colour Schemes.
Entity Colour Schemes will only be available if the LGM you are using contains them.
Objects are displayed in a ‘tree structure’ on the 'Objects' tab and are sorted alphabetically.
Click on the + and – icons to expand or close levels of the Object Directory. Each visual object
in the directory has an eye icon box to the left of its name. To hide an object in the workspace,
click on its adjacent eye icon to display a bar across it. To show an object again, click the eye
icon to remove the bar.
To show or hide an Entity Colour Scheme, switch to the 'Analysis' tab and click on the white
cross (on red background) icon to show the scheme or on the white tick (on green back-
ground) icon to hide it.
314
Legion SpaceWorks R6.5.0 User Guide
For further information about Entity Colour Schemes, see Creating Entity Colour Schemes.
Output Bar
The Output Bar is designed to provide feedback on the simulation. It has two tabs:
● Information
● QA
and functions in the same way as the Model Builder’s, described in Output Bar.
Information
This displays a certain amount of feedback about the simulation you are currently running,
such as the Entity Types and Profiles being used.
Right-click on this tab for menu options to Clear or Copy the contents of the ‘Information’
tab.
QA
This stands for Quality Assurance and displays any errors within your simulation.
Analysis
This tab of the Output Bar contains information about all and any Analyses within the sim-
ulation, including Analysis Objects, Accumulation Interval, Instantaneous results, Cumulative
results, Average results, and Average Advanced results.
Conditional Functionality
This tab of the Output Bar contains information about objects using Conditions in the sim-
ulation. For Direction Modifiers and objects with conditions or availability, the tab provides the
following information: Activity Object name, Availability Profile, Combining Method, Time
Before Action, Minimum Activity Period, Maximum Activity Period, Minimum time between
actions, Condition, Availability status, and whether the condition has been met at any point
within the playback.
The tab is useful for determining when conditions are met and whether objects are active at
any given time within a simulation.
.
Status Bar
The Status Bar at the bottom of the Simulator interface displays information regarding (mov-
ing from left to right):
● Status of the application and ‘ToolTips’.
● Current position of your cursor (by X and Y coordinates).
● Current Time within the simulation.
● Rate (0.000sec/sec) of the simulation, meaning how many seconds the Simulator is taking
to process one second of ‘real time’ within the model.
● Number of Entities (including Clones) within the simulation at any time.
Playback toolbar
The playback toolbar is linked to the Timeline (see below) and contains the controls you need
for playing, recording, pausing, accelerating and restarting a simulation. See Playing back a
simulation for full details.
Timeline
The Timeline enables you to schedule all the key activities that you need to take place during
the single playback of a simulation. Having done so, it also provides a visual snapshot of all
the activities you have set up and a scrolling ‘dial’ to inform you of what is happening and
when during the course of a playback. See 17: Simulator Timeline for more detailed inform-
ation.
Layer Views
Although you cannot add, duplicate or otherwise manipulate layers within the Simulator, you
can select Layer Views as in the Model Builder, by using the Layer View control. See Layer
Views for further information.
Arranging windows
For information on how to move and rearrange windows, please see Arranging windows.
316
Legion SpaceWorks R6.5.0 User Guide
Filled Fill the Entities with solid colour (easier to see but
Entities may slow down the simulation)
Playing a simulation
When you have opened a file for simulation and selected your display preferences, you are
ready to play the simulation. Use the following controls to play a simulation More complex
functions of the Timeline are covered in 17: Simulator Timeline. Some controls are only avail-
able if playback is paused or stopped.
318
Legion SpaceWorks R6.5.0 User Guide
320
Legion SpaceWorks R6.5.0 User Guide
Note that each time you select Restart, a new seed number is generated and displayed in
the Output Bar. You need only specify a particular seed when you want to repeat a seed
exactly; until you do so, each seed will be randomly generated.
3. If you want to specify a particular seed, select Playback > Simulation Seed.
The ‘Simulation seed point’ dialog box is displayed.
as the model in question. The logs apply to batch runs of more than one model too.
To set up logging:
1. Select Tools > Options > Logging
Tracking Entities
During a playback or a recording, you can select specific Entities to track within the sim-
ulation. This can be useful for checking that Entities are behaving as expected or intended. Dis-
playing Entity Trails makes them even more distinctive. You can set the length (and
information conveyed by) of Entity Trails in Tools > Options (see Setting the length of Entity
Trails). The number of tracked Entities at any point is displayed in the Output Bar.
2. When Entities that you want to track enter the simulation, click or select Playback >
Pause.
3. Select Entities by holding down the Ctrl key and dragging the cursor around them. You
may need to pan or zoom within the display to isolate certain Entities.
Each selected Entity is now marked by yellow cross-hairs (to de-select Entities, hold down
the Shift key and draw around them to remove their cross hairs). The number of tracked
Entities is also displayed in the Output Bar.
322
Legion SpaceWorks R6.5.0 User Guide
◊ If you also want to display the ‘trails’ of the Entities you are tracking, click or
select Display > Tracked Entity Trails. This displays a red trail behind each of the
Entities, which makes their pattern of progress easier to follow. If you want to change
the length of Entity trails, see Setting the length of Entity Trails.
4. Repeat step 3 for any other Entities you want to track.
5. To close the pop-up, move the cursor away from the Entity.
324
Legion SpaceWorks R6.5.0 User Guide
Using Help
Please see Using Help for full instructions.
Sending feedback
Please see Sending feedback for full instructions.
326
Legion SpaceWorks R6.5.0 User Guide
In the Simulator you can only have two tracks present at any time: a Record .AVI track
and a Record .RES track. Consequently, unless you delete one of the default tracks, you
cannot add new tracks manually.
When you open a new model and ‘ora’ file in the Simulator, two default tracks are created
automatically which allow you to record full-length ‘avi’ and ‘res’ files. The properties of these
tracks and events are already set up and require no further work on your part.
Timeline components
When you start up the Simulator and open project files, the Timeline appears underneath the
workspace area. The following illustration points out the main features of the Timeline. Note
that it already contains one of each of the possible types of track available in the Simulator.
Playback toolbar
This component was described earlier; please see Playing back a simulation for full details.
Time-track
This strip along the top of the Timeline reflects the time-range contained within the loaded
‘ora’ file. Wherever you move the cursor in the space beneath the Time-track, a red ToolTip
will display the exact time of that point along the track. This is useful when you want to place
an event on a Track at a particular time.
2. Select one of the available tick-length options (the smaller the time value, the closer the
zoom).
3. Click OK to save the new Zoom level.
328
Legion SpaceWorks R6.5.0 User Guide
Time-pointer
The vertical, green Time-pointer crosses all tracks and indicates where you are, temporally,
within the simulation. Before playback begins, it is positioned at the start of the simulation
time at the left-hand side of the Timeline. When you start a playback, it moves to the right,
one time-step at a time, until it reaches the centre of the display, where it remains while
events scroll past it to the left. As a playback approaches the end of its time, the Time-track
moves to the right of the display where it remains if the simulation is allowed to run to the
very end.
When you press Play the Timeline simply plays back the simulation.
When you press Record the Timeline plays back the simulation as above but also saves
any Record .AVI or Record .RES events.
The codec selected for the default ‘avi’ track will produce a very large, uncompressed file.
You may wish to change this setting within the track’s properties.
You can change the properties of the default tracks and events, delete them, disable them,
change the default event colours and so on. These subjects are covered in the rest of this part
of the guide.
In the Simulator you can only have two tracks present at any time: a Record .AVI track and a
Record .RES track.
Status icons
Just to the right of the Track names, there is space for one of three icons which indicate its
status:
Ok to play back.
Warning issued which may need attention, but will play back.
● To reposition a track, position the cursor over a track until it changes to this shape
then click and drag the track up or down within the list, and release.
● To change the height of a track, position the cursor over its lower boundary until it
changes to this shape and then click and drag downwards to change the height of the
track.
● To collapse the whole Timeline down to just the Time-track and Playback toolbar, click.
To restore it, click the icon again.
330
Legion SpaceWorks R6.5.0 User Guide
2. To add any of the customisable items in the ‘Avi components’ toolbar, click and hold the
relevant icon and drag into the Layout Designer. Position and resize the items according to
preference.
3. To change the properties of a label, clock or logo, click on the item to select it and change
the properties in the left-hand panel of the dialog box. Change properties in the ‘Value’
column by entering text directly, browsing for files or selecting values from drop- down
lists.
Caption
Clock–change time format; font; text colour, contour line values and background col-
ours.
Logo–browse to select an alternative logo image; change logo colour, contour line val-
ues, background colour and transparency.
4. To change the background colour of the ‘avi’, select a colour from the drop-down palette
labelled Background Colour.
332
Legion SpaceWorks R6.5.0 User Guide
5. You can also align the ‘avi’ components in relation to each other; see Aligning ‘avi’ com-
ponents for details.
6. If you want to delete a removable item, click to select it and press Delete.
7. Click OK to save your layout settings.
Align left Select at least two items and click to align their
left sides
Align right Select at least two items and click to align their
right sides
Align top Select at least two items and click to align their
top sides
Align bot- Select at least two items and click to align their
tom bottom sides
For these icons to work, you need to select at least two layout items using a single click and
Ctrl-click. When you have selected two items, notice that the first item has red vertices and
the second has green vertices, as with the logo and clock below.
The important thing to note is that the item which will be changed when an alignment icon is
clicked is the item with the red vertices; think of the green vertices as being ‘safe’, which
means that item will not be changed.
For instance, in the illustrated example, if you were to click on the Make same width icon, the
Legion logo item will be changed so that it is the same width as the clock. To swap red and
green vertices between items, Ctrl-click on one of the selected items.
When you have more than two selected items, Ctrl-clicking on one of them will change its ver-
tices to green and change all other items’ vertices red.
Deleting tracks
To delete a track:
1. Right-click on a track and select Delete.
2. Confirm the action when prompted.
The track is deleted from the Timeline.
334
Legion SpaceWorks R6.5.0 User Guide
Defining Events
The following procedures show you how to set up events for each track in your Timeline.
Rememter that tracks and events are automatically set up for you when you load an ‘ora’ file.
These procedures are only relevant if you have deleted events and want to add them again.
When placing any type of event, check the red ToolTip for the exact time as you place your
cursor along the Time-track.
◊ Discomfort
◊ Dissatisfaction
5. Click Apply or OK to save the event.
If the event overlaps other events, an error message is displayed. See Overlapping
events.
6. if required, change the start and end time of the event by following the next procedure.
5. To change the start time of the event, check Set the start of the event and select one
of these options:
◊ to the start of the timeline.
◊ to this time (and enter a time).
6. To change the end time of the event, check Set the end of the event and select one of
these options:
◊ to the end of the timeline.
◊ to this time (and enter a time).
7. Click OK to set the time.
336
Legion SpaceWorks R6.5.0 User Guide
If you want to regenerate and overwrite a ‘res’ file that has associated ‘rdf’ files, it is
recommended that you delete the initial ‘res’ file and ‘rdf’ files to ensure that the proper
number of ‘rdf’ files are regenerated.
If the event overlaps other events, an error message is displayed. See Overlapping
events.
Overlapping events
If you attempt to add an event to a track within a time period that already contains similar
events, the ‘Resolve Event Overlap’ dialog box is displayed.
It lists the events that overlap and provides two solutions for resolving the conflict.
338
Legion SpaceWorks R6.5.0 User Guide
Deleting events
To delete an event:
1. Right-click on the event you want to delete and select Delete.
2. Confirm the action when prompted.
The event is deleted from the track.
340
Legion SpaceWorks R6.5.0 User Guide
You can also apply alternative metrics within a map to Stairs, Escalators and areas
marked out by Analysis Zones. See Using Alternative Value Ranges for more information.
The colours displayed in a Legion map are linked to two types of range:
● Value ranges–essentially these are Levels of Service (such as those defined by J. Fruin or
the US Highway Capacity Manual) used to rate experience-metrics.
● Colour ranges–an ordered list of colours used to describe local conditions that typically
range from ‘excellent’ (blue) to ‘bad’ (red).
Colours within a map can represent the following:
● Occupancy–the number of Entities inside an area.
● Anything that can be used to measure Entity experience–examples include speed
achieved, density experienced and total distance covered by Entities inside an area.
● Time–the duration inside an area for which a preset condition on occupancy or on any
Entity experience metric has been met.
The Legion Analyser provides several default maps but you can also create your own using
default or custom value and colour ranges.
Standard maps
The following standard maps are available within the Analyser, on the Maps menu:
● Cumulative High Density
● Cumulative Max Density
● Cumulative Mean Density
● Cumulative Min Density
● Evacuation Time
● Space Utilisation
● Underground Cumulative High Density (15 mins)
● Underground Cumulative High Density (60 mins)
● Underground Cumulative Max Density (15 mins)
● Underground Cumulative Max Density (60 mins)
Descriptions of each map and their typical uses follow.
342
Legion SpaceWorks R6.5.0 User Guide
This map is best used for illustrating which areas of a site are used the most and the least. It
can support questions such as “if this area is not being used regularly, could it be used for a
small kiosk or retail unit?”
The 60-minute version of this map generates Entity data in 60-minute batches before being
reset by a 'Clear Map' event and recommencing for the second 60-minute period (if the
runtime is long enough) and so on. To go with this type of map, there is a default Analyser
Timeline track named 'Save 60-minute Underground maps'.
2. Check the box labelled 'Add underground-specialised timeline tracks to new Analyser pro-
jects'. This ensures that all projects have relevant Underground Map tracks on the Ana-
lyser Timeline.
3. For the option 'Timing for 15-minute interval events', select one of the two options:
◊ Absolute–this will set the intervals at 15, 30, 45 minutes past the hour.
◊ Relative to model start time–this will set intervals at periods relative to the
runtime of the model (so, for example, if a model begins at 13:05, the first 15-minute
interval will expire at 13:20).
4. Select a 'Default image size for map saves': it is probably best to keep the default values
of 1024 x 480 but you can enter your preferred dimensions in pixels.
If you change these dimensions but later wish to restore the original dimensions, click the
Restore default sizes button.
5. Select a 'Default image format for maps' from the drop-down list ( 'png', 'bmp' or 'jpg').
344
Legion SpaceWorks R6.5.0 User Guide
6. Click Apply to save your settings, or click OK to save your settings and close the dialog
box.
If you have used Alternative Value Ranges for Stairs, Escalators, or Zones, two or more
legends may be displayed within the Map legend window. You may need to resize the window
to display all the information.
346
Legion SpaceWorks R6.5.0 User Guide
Custom Maps
The Analyser enables you to create custom Maps for use with pre-existing or custom Value
and Colour Ranges. To be able to do so, you first need to understand all the possible map para-
meters along with Value and Colour Ranges and Alternative Value Ranges.
Map parameters
All map parameters are contained on the ‘Parameters’ tab of the ‘Edit Map’ dialog box. You
may find that, depending on your choice of map, certain parameters are not relevant or avail-
able.
1. Click or select Analysis > Maps to display the ‘Edit Map’ dialog box.
2. Click on the map whose parameters you want to view in the list of maps in the left-hand
pane.
The following sections describe the various settings on the ‘Parameters’ tab.
Metric
This drop-down menu contains the following settings (the final four settings only appear if you
included this data when you saved the ‘res’ file or if you are running an on-line analysis):
● Occupancy–the number of Entities occupying or being in close proximity to a unit of
space at any one time.
● Occupancy Time–the cumulative length of time that Entities have occupied or been very
close to a unit of space.
The following Entity experience metrics are averaged for all Entities close to or inside a unit of
space.
● Speed–the average speed achieved by Entities close to or inside a unit of space.
● Entity Density –the density approximately computed for each Entity by drawing a cir-
cular area of 0.6 metres around them, estimating the accessible space inside that area
and then estimating the number of Entities inside that area including themselves.
● Total Distance–the total distance travelled by an Entity since the playback began.
● Inconvenience–a measure of walking experience comparing actual length of journey to
an Entity’s preferences.
● Frustration–a measure of walking experience comparing actual speed and time to an
Entity’s preferences.
● Discomfort–a measure of walking experience comparing perceived congestion to an
Entity’s preferences.
● Dissatisfaction–a ‘holistic’ measure of each Entity’s walking experience compared to
their respective preferences; it encompasses inconvenience, frustration and discomfort.
Area
Select the area of the model you want to apply a map to. This drop-down menu lists ‘Whole
Model’ along with any Analysis Zones you may have placed in the simulation. It also has the
option 'Alternative Regions Only', which you can select if you decide to apply Value Ranges to
portions of the map defined by Stairs, Escalators or Analysis Zones. See Using Alternative
Value Ranges for more information.
Having selected an area you can then choose to ‘Use smoothing’ or not:
● Use smoothing–leave this box unchecked to prevent blending, thus keeping the range's
colours distinct (useful in Maps where the colours may represent a pass or fail against a
standard).
Check this box to display a gradation of the available colours (useful in Maps where spe-
cific ranges are not crucial).
The following illustrations show a Density Map with 'Use smoothing' unchecked (left-hand
map) and with it checked (right-hand map).
The orange represents Fruin's LoS 'E' which, in the left-hand example is quite expansive; with
'Use smoothing' switched on the map clearly illustrates that most of the area in fact
registered densities at the lower end of that Level of Service.
Zone of Influence
Legion maps are based on the concept of a ‘zone of influence’ which is effective around each
Entity. This is necessary to provide a precise definition of which Entities a unit of space should
consider when computing its occupancy and related metrics.
If, in any frame, a unit of space lies within the Zone of Influence of more than one Entity,
the reported value for that time-step is: an average over all Entities if the metric is an
experience metric; a total value if the metric is occupancy; and the most recent time when
the unit of space was occupied if the metric is occupancy time.
The two options for this parameter are Fixed Radius and Entity Trail:
● Fixed Radius–this setting means that the Entity will influence a circular area around it
defined by the radius you enter here. It is initially set at 0.6 metres but you can increase
or decrease this value.
This setting is appropriate for all Maps using Entity experience metrics: the colour of each
unit of space represents the experience an Entity would have if it were 'parachuted' into
that precise space.
● Entity Trail–this setting means that the Entity will influence the space it traverses. This
ensures that all areas an Entity passes over are represented in the map.
348
Legion SpaceWorks R6.5.0 User Guide
It is therefore appropriate for occupancy-based maps (i.e. Space Utilisation and Evacuation
Time maps).
Accumulation Method
This parameter refers to the method that each unit of space uses to accumulate data over
time, from the simulation start time (or restart time) to the current time-step. Some of the
methods require you to enter a value, such as a Cut-off value or a Decay coefficient. Accu-
mulation Method does not apply to Occupancy or Occupancy Time and is not available if either
of these are selected as the map's Metric.
The settings within this parameter are:
● Min–records the minimum value of any experience metric registered since playback
began.
● Max–records the maximum value of any experience metric registered within a unit of
space.
● Mean Value–records the mean value of an Entity experience metric registered within a
unit of space. This accumulation method disregards idle periods so it is good for identi-
fying spikes.
● Count Above the Cut-Off Value–records the number of time-steps from the start of the
simulation in which the value of an Entity experience metric exceeds your specified cut-off
value.
● Count Below the Cut-Off Value–records the number of time-steps from the start of the
simulation in which the value of an Entity experience metric falls short of your specified
cut-off value.
● None–values are not accumulated; they are overwritten when any new value is registered
within a unit of space.
● Exponential Decay–the values recorded by a unit of space decay over time according to
the Decay coefficient entered here (0.1 is a suitable coefficient for most situations).
● Mean value with zeros–means are calculated using zeros for each time-step–even
when no new data is recorded by a unit of space. This has a dampening effect because
peaks are counterbalanced by periods of inactivity. It is therefore useful for identifying
consistently high values.
● Weighted–The weighting factors defined in the associated weighted value range will be
used to scale the accumulated metric.
If you are creating a 'Weighted Map' and intend to select Weighted Value Ranges on the
'Value and Colour Ranges' and or 'Alternative Value Ranges' tabs, you must select
Weighted as the Accumulation Method.
Exponential Decay and Mean value with zeros may slow down the performance of an ana-
lysis and are best applied to a Zone rather than the Whole Model.
Reset Interval
If you would like to clear an active map at certain time intervals, check the Enable box and
enter a value in seconds in the Reset map every n seconds box.
Continue to Value and Colour Ranges.
It will also contain any custom Colour and Value Ranges that you have defined.
Continue to Using Alternative Value Ranges.
Colour Ranges
Colour Ranges are useful when you don’t have specific value limits for metrics such as Occu-
pancy, Frustration and so on. By applying a colour range (rather than a value range) to a map,
the map will create a range of values dynamically and sort them into the various colour ‘bins’.
There are two built-in Colour Ranges:
● Default spectral progression–progresses from blue (low values) to red (high values).
This can be used with most Entity experience metrics for which low values mean ‘excel-
lent’ and high values mean ‘poor’.
● Default reverse spectral progression–progresses from red (low values) to blue (high
values). This can be used with speed for which low values mean ‘poor’ and high values
mean ‘excellent’.
Also, any custom colour ranges you have defined will also be listed.
350
Legion SpaceWorks R6.5.0 User Guide
Colour-to-Value Assignment
Because the range of values most metrics take (excepting speed and density) are dependent
on particular simulations, there is no single set of values that will work for all models. For this
reason, the Analyser enables you to determine ranges dynamically.
Select one of the following options:
● Assign colours to value range dynamically–the minimum and maximum time in
seconds is shown after a simulation has run. These values (usually ‘times’) correspond to
the minimum and maximum values registered anywhere in the model.
● Assign colours to the fixed value range–you can specify the range of values in the
min and max boxes.
It is useful to first generate a map using Assign colours to value range dynamically and
then select Assign colours to the fixed value range, enter min and max values and click
OK. The map will automatically redraw with the revised colours. You can also use the same
fixed value range for another scheme, to enable a like-for-like comparison.
Map Exclusions
Sometimes it is not necessary to map every nook and cranny of a model. For those times
when you don't need to analyse and visualise certain parts of a simulation, there are para-
meters named 'Map Exclusions'. As you might expect, these are areas, selected or defined by
you, within which Legion map data will not be displayed, while, around it, the rest of the map
area is generated and displayed as usual.
All excluded data is still accumulated 'in the background', so you can remove these exclusions
if you like, to show the data recorded in these areas in a subsequent simulation. The areas
that can be excluded are Stairs (including their embedded Drift Zones); Escalators (and their
embedded Drift Zones); and other areas defined by Analysis Zones that you have placed in a
model. This latter exclusion zone can be any size, shape or orientation
Stair and escalator exclusion instructions apply to top and bottom sections of split objects and
to all landings and flights. Map Exclusions are available for all Legion maps: space- centric
maps and Environment maps. To exclude stairs and/or escalators from a map, there are
simple check-boxes within Edit Map dialog boxes. To exclude other areas (e.g. train carriages
or retail spaces or waiting areas), you can choose to exclude an area defined by a previously-
placed Analysis Zone. These zones will be available for selection from a drop-down list within
the Map dialog box.
You can use one, two or all three types of exclusion but if you wish to use a zone, you
need to have placed an Analysis Zone previously, in the appropriate area of your sim-
ulation.
For all 'Underground' maps, 'Exclude Escalators and 'escalator' Drift Zones' is auto-
matically selected because these maps are not intended to visualise the data from Escal-
ators.
352
Legion SpaceWorks R6.5.0 User Guide
6. Select one or more Analysis Zones by highlighting them and using the >, <, >> and <<
buttons to move them from left to right panels (and back again if required).
Your selection(s) will appear in the 'Map Exclusions' tab.
7. Click Apply to save your changes, or OK to save your changes and close the dialog box.
1. Click or select Analysis > Maps to display the ‘Edit Map’ dialog box.
2. Select Environment Map or Map from the drop-down list on the left-hand side of the dia-
log box. See Environment Maps for more information.
3. Click the New button in the top left-hand corner of the dialog box.
A new map is added to the left-hand pane.
4. Type a meaningful name for this new map in the highlighted name field and press Enter.
5. Set the 'Parameter', 'Value and Colour Ranges' and, if appropriate, the 'Alternative Value
Ranges' on each of the respective tabs.
6. Click Apply or OK to save the map.
If you are creating a 'Weighted Map' and intend to select Weighted Value Ranges on the
'Value and Colour Ranges' and or 'Alternative Value Ranges' tabs, you must select
Weighted as the Accumulation Method.
354
Legion SpaceWorks R6.5.0 User Guide
Environment Maps
Environment maps display the conditions registered inside a model and the Entities within it in
the case of fire. They use data from files generated by the FDS (Fire Dynamics Simulator)
fire-modelling software in order to display factors such as temperature, visibility and toxicity.
The Analyser can overlay data from FDS onto the model file as a map related to a specific
value and colour range. There are two types of data file available for use with an Environment
map:
● Slice file–this file contains data based on a 2-dimensional spatial model and recorded at
the specified height of a cross-section.
● Plot 3D–this file contains data based on a 3-dimensional model of a space.
These files must already have been generated using FDS, possibly in combination with the
Legion Model Builder (see Exporting a model for use with FDS). Each type of data file requires
you to set certain properties. These are dealt with respectively in the following two pro-
cedures.
1. Click or select Analysis > Maps to display the ‘Edit Map’ box.
2. Select Environment Map from the drop-down list of available map types and click the
New button.
3. Enter a meaningful name for the new map in the highlighted name box (or click the
Rename button).
4. On the ‘Parameters’ tab, select Slice file as the Map data file type.
5. Click the Add button, locate the relevant slice file (.sf) and click Open.
The box labelled 'Units' automatically displays the relevant unit of the Slice file (for
example, M for metres, C for centigrade).
If you edit these units while the map is displayed, you will need to hide it and then display
it again to see your changes.
6. Repeat step 5 for any further Slice files (additional files should use the same Units as the
first file you added).
7. Highlight a file and then in the ‘Selection map size’ portion of the dialog box, enter the
appropriate dimensions for Bottom, Top, Left.Right.
If you added more than one Slice file, highlight each file and enter their dimensions.
8. Click on the Value and Colour Ranges tab.
9. Select a Value or Colour Range for the map.
10. If required, check the box labelled 'Use smoothing' so that colour values blend smoothly
into one another when displayed.
11. Click Apply or OK to save your changes.
1. Click or select Analysis > Maps to display the ‘Edit Data’ dialog box.
2. Select Environment Map from the drop-down list of available map types and click the
New button.
3. Enter a meaningful name for the new map in the highlighted name box (or click the
Rename button).
4. On the ‘Properties’ tab, select Plot 3D as the Map data file type.
5. Click the browse button labelled 'Smoke-view file', locate the relevant Plot 3D file (.smv)
and click Open.
6. Enter values for these related boxes (floor and ceiling measurements are in metres):
◊ Floor
◊ Ceiling
◊ Metric (select from drop-down list)
7. To extract data from specified heights, you must add 'Plot3D heights'. Click the Add but-
ton.
The 'Height in Plot3D File' dialog is displayed.
8. Enter a height in the field.
9. Repeat steps 7 and 8 for any further heights whose data you want to examine.
10. Click on the Value and Colour Ranges tab.
11. Select a Value or Colour Range for the map.
12. If required, check the box labelled 'Use smoothing' so that colour values blend smoothly
into one another when displayed.
13. Click Apply or OK to save your changes.
When you have completed these procedures, you can display the Environment map during
playback in the same way you would any other kind of map.
356
Legion SpaceWorks R6.5.0 User Guide
Custom ranges
The following procedures describes how to create new, customised Colour Ranges and Value
Ranges for use with maps, analyses and Entity Colour Schemes.
1. Click or select Analysis > Ranges to display the ‘Edit Data’ dialog box.
2. Select Colour Range from the drop-down list on the left-hand side of the dialog box.
3. Click the New button in the top left-hand corner of the dialog box.
A new Colour Range is added to the left-hand pane and the Properties pane appears on the
right-hand side of the dialog box.
4. Type a meaningful name for this new value in the highlighted name box and press Enter.
5. Click the Add button on the right of the dialog box to add a new colour to the range.
Repeat for as many colours as you need.
6. To change the default name of a colour, double-click to select it, type a new name in its
place and press Enter (or simply click outside of that particular cell). Repeat this step for
as many colours as you want to rename.
7. To change the default colour, double-click on the colour to display a drop-down palette of
optional colours.
8. Select a colour from the palette and then click outside of the coloured box to apply the new
colour. Repeat this step for as many colours as you want to define.
9. If you want to add extra colours, remove colours or move them up or down in the list, high-
light the relevant colour or colours and click the Add, Remove, Up or Down buttons.
10. Click Apply or OK to save the new Colour Range.
1. Click or select Analysis > Ranges to display the ‘Edit Data’ dialog box.
2. Select Value Range from the drop-down list on the left-hand side of the dialog box.
3. Follow steps 3 to 8 of To create a custom Colour Range:.
4. For each bin inside the value range, double-click in its Upper Value column and enter a
value. The last bin will always be a ‘catch-all’, which is why a bin is created automatically
by the software as having an Upper Value of Infinity.
5. If you want to add, remove or move bins, highlight the relevant bin or bins and click the
Add, Remove, Up or Down buttons. Please note, however, that unlike colour ranges,
value ranges are always used in order of Upper Value, so any sorting you do will only
change the presentation unless you edit the Upper Values as well.
6. Click Apply or OK to save the new Value Range.
1. Click or select Analysis > Ranges to display the ‘Edit Data’ dialog box.
2. Select Weighted Value Range from the drop-down list on the left-hand side of the dialog
box.
3. Follow steps 3 to 8 of To create a custom Colour Range:.
4. For each bin inside the value range, double-click in its Upper Value column and enter a
value. The last bin will always be a ‘catch-all’, which is why a bin is created automatically
by the software as having an Upper Value of Infinity.
5. For each band of your range, set a 'Weight Factor' (double-click in this column and enter a
value: the higher the value the more important the band).
6. If you want to add, remove or move bins, highlight the relevant bin or bins and click the
Add, Remove, Up or Down buttons. Please note, however, that unlike colour ranges,
value ranges are always used in order of Upper Value, so any sorting you do will only
change the presentation unless you edit the Upper Values as well.
7. Click Apply or OK to save the new Value Range.
8. If you want to generate a 'Weighted Map', create a custom map but ensure that you
choose 'Weighted' as its 'Accumulation Method'. See also Creating a custom map.
358
Legion SpaceWorks R6.5.0 User Guide
4. If the file is successfully imported, the new range is displayed in the list of available
ranges.
360
Legion SpaceWorks R6.5.0 User Guide
This feature is not available if you select a Colour Range on the 'Value and Colour Ranges'
tab of a map's parameters.
There are many reasons why you might wish to do so. For example, you may wish to do this
when you have Stairs or Escalators in your model because pedestrian movement is different
on these objects to their movement on flat ground. Consequently, you may wish to apply one
range to most of your map but display Fruin's 'LOS Stairs' range for the area of the map occu-
pied by Stair objects.
The Analyser knows where Stairs and Escalators are, so you don't need to demarcate these
areas. However, for other areas of the model you will need to place an Analysis Zone so that
the Analyser knows which part of the space you wish to apply an Alternative Value Range to.
The following procedure assumes that your model contains Stairs, or Escalators, or has Ana-
lysis Zones in place.
When you generate your map, the general area will reflect the Value Range you selected
on the 'Value and Colour Ranges' tab but Stairs, Escalators and any selected Analysis
Zones will reflect your Alternate Value Ranges. The exception is if you selected 'Altern-
ative Regions Only' on the 'Parameters' tab, in which case only the areas specified in step
7 will display maps related to your selected ranges.
Overlapping Zones
There may be areas in your simulation where Analysis Zones overlap and where you may
have selected different Value Ranges for each of them on the 'Alternative Value Ranges' tab.
When the simulation is played back, and the maps displayed, you need to handle how the over-
lapping portion of the two zones is represented: should the Analyser display the Value Range
associated with Zone 1 or the one associated with Zone 2 in this region?
You can control this by ordering the rows in the 'Zones Value Range' portion of the dialog box.
The ranges are calculated and displayed in the order they appear in the list, from top to bot-
tom. So if Zone 1 is listed above Zone 2, the overlapping region will display Zone 1's Value
Range. If you would prefer the overlapping region to display Zone 2's Value Range instead,
highlight the Zone and then click the Up button until you have moved it above Zone 1 in the
list. To move a row down, highlight it and click Down.
362
Legion SpaceWorks R6.5.0 User Guide
1. Click or select Analysis > Project Settings to display the ‘Edit Project Settings’ dia-
log box.
2. Enter a value for the Number of subdivisions per metre–the finest resolution is 10cm
by 10cm and the coarsest is 1m by 1m.
3. Click OK to save these settings.
364
Legion SpaceWorks R6.5.0 User Guide
You can also use the Timeline to schedule Save Map events, see Maps track events.
3. Click the Location browse button and specify a location.
4. Select one of the available file formats:
◊ JPEG (jpg)–specify the adjacent 'Quality' setting (10 is the highest quality and involves
the least compression).
◊ Windows bitmap (bmp).
◊ PNG (png).
5. Select the Image Size:
◊ Current view size
◊ Standard–select an image size from the adjacent drop-down menu.
6. Select a View:
◊ Current View–saves maps for the current view in the workspace.
◊ Whole model–saves maps for the whole model view.
7. Click OK.
A progress bar is displayed as the maps are saved.
Printing a map
While you are working on simulations and maps, you may wish to print selected views of
them.
366
Legion SpaceWorks R6.5.0 User Guide
1. Click or select Analysis > Maps to display the ‘Edit Data’ dialog box.
2. Select either Map or Environment Map from the drop-down list on the left-hand side of
the dialog box.
3. Click on the map you want to delete, rename or copy.
4. Click one of the available buttons in the top left-hand corner:
◊ Delete–removes the map from the list.
◊ Rename–enter the new name into the ‘Edit Name’ dialog box and click OK.
◊ Copy–adds a copy of the map to the list; type a meaningful name for the copied map
in the highlighted name box and press Enter.
5. Click Apply or OK to save your changes.
368
Legion SpaceWorks R6.5.0 User Guide
On-line analyses can only be run on workstations with a valid Legion Simulator licence.
Both methods give you access to a wide range of metrics (density, speed, flow, journey time,
dissatisfaction etc.) and a rich array of display methods and outputs including maps, graphs
and tables.
The Legion Analyser creates an analysis (‘ana’) file as a template for storing the settings of all
maps, graphs and analyses you generate from an ‘ora’ file or the simulation’s ‘res’ file. In this
way, you can analyse many files using the same analysis template, which is a good way to
compare different scenarios.
The Analyser shares certain tools and features with the Model Builder and the Simulator. In
order to avoid repetition, you are referred to the appropriate sections of the guide as appro-
priate.
Until you draw, place and set up specific Analysis Objects, the Analyser assumes you want
to analyse the ‘Whole Model’ and offers suitable metrics to do so.
Analysis questions
This is far from being an exhaustive list but the following represent the kinds of questions that
you can ask as part of an analysis:
● Can the venue cope with projected demand?
● What is the gateline or security check configuration that attains the best flow?
● What are the density levels at bottleneck points such at the bottom of stairs?
● What is the average waiting time at facilities in the peak time?
● Which operational scheme optimises individual visitor/customer experience?
● What is an appropriate location for retail units?
● Are vertical circulation elements effective at clearing a platform before the next train
arrives?
● What is the interchange time distribution between lines A, B and C?
● Can the venue be evacuated safely in the case of an incident?
● Will queues in front of facilities impede regular circulation?
By combining the Analyser’s in-built metrics, Analysis Objects and ranges, you can inter-
rogate your simulated space to get answers to all these questions. The most important thing
in the whole of a Legion SpaceWorks project is knowing which questions you need answered.
370
Legion SpaceWorks R6.5.0 User Guide
372
Legion SpaceWorks R6.5.0 User Guide
Analyser components
This section describes the various elements that go to make up the Legion Analyser.
Object Directory
Like the Model Builder, the Analyser has an Object Directory but the Analyser’s directory is
simpler in that it only has two tabs: ‘Objects’ and ‘Analysis’. As with the Simulator, you can
only use the ‘Objects’ tab to show or hide the objects in the simulation (while you can see
objects you cannot select, modify or delete them); the ‘Analysis’ tab enables you to view and
edit analyses, colour ranges, graphs, maps, Timeline settings and value ranges.
The objects and data are displayed in a tree structure and sorted alphabetically. Click on the
+ and – icons to expand or close levels of the Object Directory.
Each object in the directory has an eye icon to the left of its name. To hide an object in the
workspace, click on its adjacent eye icon to display a bar across it. To show an object again,
click the eye icon to remove the bar.
Toolbars
The Analyser has several toolbars, which are initially grouped together above the workspace.
The purpose of each icon is explained as specific tasks are described.
For information on repositioning or customising toolbars, see Repositioning toolbars and turn-
ing toolbars off and Creating a custom toolbar.
Graph Windows
These windows display dynamic graphs linked to active analyses. You can close down or add
new Graph Windows.
Output Bar
The Output Bar is designed to provide feedback on your analyses. It has five tabs:
● Information
● QA
● Search Results
● OD matrices
● GJT Summary (if enabled; see Journey Time and Generalised Journey Time reports)
● Analysis
● Conditional Functionality
and functions in the same way as the Simulator’s, described in Output Bar.
Information
This displays a certain amount of feedback about the analysis you are currently running.
Right-click on this tab for menu options to Clear or Copy the contents of the ‘Information’
tab. It also has a Command bar where you can type certain commands to do with selecting,
placing and editing objects.
QA
This stands for Quality Assurance and displays any errors within your analysis.
Search Results
This tab displays any relevant results when you search for objects by using the Find tool. Res-
ults are listed by object and type.
Right-click on a listed object for the options to Edit Properties or Select Object(s).
OD Matrices
This tabbed window displays a dynamic table of origins and destinations related to the model’s
demand data. It shows demand totals for origin-destination pairs and grand totals for origins
and each of their destinations. When you playback or record a simulation, this table is dynam-
ically populated with the numbers of Entities reaching their various targets.
These numbers can be black or red: red numbers denote values that have been updated in the
current time-step; black numbers denote values that have not changed in the current time-
step. You can save this data as a comma separated value ('csv') file.
Journey Time
This tabbed window displays Summary information of Journey Time metrics. The content of
the grid is updated as a simulation is run or recorded. See Journey Time and Generalised Jour-
ney Time reports for further information.
Analysis
This tab of the Output Bar contains information about all and any Analyses within the sim-
ulation, including Analysis Objects, Accumulation Interval, Instantaneous results, Cumulative
results, Average results, and Average Advanced results.
Conditional Functionality
This tab of the Output Bar contains information about objects using Conditions in the sim-
ulation. For Direction Modifiers and objects with conditions or availability, the tab provides the
following information: Activity Object name, Availability Profile, Combining Method, Time
Before Action, Minimum Activity Period, Maximum Activity Period, Minimum time between
actions, Condition, Availability status, and whether the condition has been met at any point
within the playback.
The tab is useful for determining when conditions are met and whether objects are active at
any given time within a simulation.
374
Legion SpaceWorks R6.5.0 User Guide
Playback toolbar
The playback toolbar is linked to the Timeline (see below) and contains the controls you need
for playing, pausing, accelerating and restarting a simulation. See Playing a simulation.
Timeline
The Timeline enables you to schedule all the key activities that you need to take place during
the single playback of a simulation. Having done so, it also provides a visual snapshot of all
the activities you have set up and a scrolling ‘dial’ to inform you of what is happening and
when during the course of a playback. See About the Timeline for more detailed information.
Status Bar
The Status Bar at the bottom of the Analyser interface displays information regarding (from
left to right):
● The status of the application and ‘ToolTips’.
● The current position of your cursor (by X and Y coordinates).
● The length, angle and area of any analysis object you may be drawing or placing in the
viewing area.
● The state of Auto-save.
● The current time within the analysis.
● The Rate (0.000sec/sec) of the analysis, meaning how many seconds the Analyser is tak-
ing to process one second of ‘real time’ within the analysis.
● The number of Entities inside the model at the current time.
Arranging windows
For information on how to move and rearrange windows, please see Arranging windows .
When you have several graphs on display at once, you may find it necessary to reposition
them in order to see the simulation and the Object Directory.
When changing project files, always make sure to save your work first.
376
Legion SpaceWorks R6.5.0 User Guide
If you have selected any files that do not need to be upgraded, you will be informed and
these files will not be added to your list of files to upgrade. All valid files are added to the
main 'Files to be upgraded' list and their status will be 'Pending'.
9. If you decide to cancel any upgrades, click each file's adjacent Cancel button (if this but-
ton reads 'Complete' instead, the upgrade has already finished).
10. If you wish to cancel all upgrades, click Cancel all.
11. To exit the Results Upgrade Tool, click the top right-hand X icon or press Alt+F4. If any
upgrades are still pending, you will be notified and given the option to continue exiting or
to cancel and finish the upgrade.
You can switch between 'sequential' and 'concurrent' processing during upgrades but be
aware of the following:
◊ When switching from sequential to concurrent, the tool will try to start as many queued
files as it can at the time. Any excess files will remain queued until an existing upgrade
completes, when the next item will be started.
◊ When switching from concurrent to sequential, the change is not immediate. Any
upgrades already being processed will continue to run concurrently. Only new
upgrades that will run sequentially
378
Legion SpaceWorks R6.5.0 User Guide
On-line analysis
This form of analysis enables you to bypass the Legion Simulator by using your model’s ‘lgm’
and ‘ora’ files in the Analyser.
Every time you run an on-line analysis, the Analyser runs the simulation anew, with vary-
ing results.
When starting a session, there is a chance you will be asked to choose between your
model's global Generalised Journey Time (GJT) weightings and the Analyser's
GJT weightings. This occurs if the settings don't match because the 'lgm' settings have
been changed, or if the 'lgm' was created in software earlier than SpaceWorks R5. The fol-
lowing dialog box will be displayed, where you can decide on which weightings to use in
your analysis session. Click one of the two buttons at the foot of the dialog.
6. Click or select File > Save and choose a name and location for the file. Make sure you
save it as an ‘ana’ file.
You are now ready to start your analysis session.
380
Legion SpaceWorks R6.5.0 User Guide
Off-line analysis
This form of analysis uses your model’s ‘lgm’ file and the ‘res’ file recorded in the Simulator.
Off-line analyses use the fixed, unchanging simulation that was recorded in the ‘res’ file
within the Analyser or Simulator.
When starting a session, there is a chance you will be asked to choose between your
model's global Generalised Journey Time (GJT) weightings and the Analyser's
GJT weightings. This occurs if the settings don't match because the 'lgm' settings have
been changed, or if the 'lgm' was created in software earlier than SpaceWorks R5. The fol-
lowing dialog box will be displayed, where you can decide on which weightings to use in
your analysis session. Click one of the two buttons at the foot of the dialog.
Ensure you load an ‘lgm’ file that was used to generate the ’res’ or ‘ora’ file that you are
using in your analysis session.
2. Click the browse button to the right of the Model File box and select the appropriate ‘lgm’
file by navigating within the ‘Open’ dialog box.
3. Click the browse button to the right of the Data Source box and select the appropriate ‘res’
file by navigating within the ‘Open’ dialog box.
4. If your simulation includes vehicles, check the box labelled ‘Load Aimsun simulation result
file’, click the related browse button and select the appropriate XML file.
See Showing vehicles in the Analyser for more information.
5. When you have selected your project files, click OK on the ‘New Project Files’ dialog box.
The model is displayed in the Analyser workspace.
6. Click or select File > Save and choose a name and location for the file. Make sure you
save it as an ‘ana’ file.
7. You are now ready to start your analysis session.
382
Legion SpaceWorks R6.5.0 User Guide
Playing simulations
This section deals with topics concerning playing simulations within the Analyser.
Default display preferences can also be set in Tools > Options > Display Preferences
Use the following icons to set display preferences.
Filled Fill the Entities with solid colour (easier to see but
Entities may slow down the simulation)
Playing a simulation
Use the following controls to play back a simulation file. Some controls are only available if
playback is paused or stopped.
Next Time Skip to the next Time Mark (if available, see Using
Mark Time Marks in Off-line simulations)
384
Legion SpaceWorks R6.5.0 User Guide
To set up logging:
1. Select Tools > Options > Logging
3. Click Apply to save your settings or OK to save and close the dialog.
Simulation Seed
As in the Simulator, you can specify a simulation seed to use while playing back or recording
from an ‘ora’ file. See Specifying the Simulation Seed for detailed information.
Tracking Entities
During a playback or a recording, you can select specific Entities to track within the sim-
ulation. This can be useful for checking that Entities are behaving as expected or intended.
You can set the length (and information conveyed by) of Entity Trails in Tools > Options (see
Setting the length of Entity Trails). You can also set up filters to track certain Entities.
2. When Entities that you want to track enter the simulation, click or select Playback >
Pause.
3. Select Entities by holding down the Ctrl key and dragging the cursor around them. You
may need to pan or zoom within the display to isolate certain Entities.
386
Legion SpaceWorks R6.5.0 User Guide
Each selected Entity is now marked by yellow cross-hairs (to de-select Entities, hold down
the Shift key and draw around them to remove their cross hairs).
◊ If you also want to display the ‘trails’ of the Entities you are tracking, click or
select Display > Tracked Entity Trails. This displays a red trail behind each of the
Entities, which makes their pattern of progress easier to follow. If you want to change
the length of Entity trails, see Setting the length of Entity Trails.
4. Repeat step 3 for any other Entities you want to track.
388
Legion SpaceWorks R6.5.0 User Guide
5. From the Metrics drop-down list near the bottom of the dialog box, select a desirable met-
ric.
6. From the adjacent Value Ranges drop-down list, select one of the available ranges.
7. Click the Create button.
This creates a range of named colours, which are listed in the main panel of the ‘Colours’
tab.
8. If required, you can rename these colours by double-clicking on their current names and
typing new descriptions. You may also change the colours by double-clicking their current
colours and selecting from the drop-down palette.
9. If you wish to refine the filtering for each colour, click on the Filters tab and for each col-
our in your range, add new filter settings. For more information, see 22: Advanced Fil-
tering.
10. Click Apply or OK to save your changes.
These enable you to define a bespoke filtering criterion to apply to a highlighted colour.
3. Set up a filter by either typing the conditions directly into the space below the control
boxes or by selecting options from their drop-down menus. Reading left to right:
Please note that using colour schemes when playing back simulations can slow down per-
formance.
390
Legion SpaceWorks R6.5.0 User Guide
5. To close the pop-up, move the cursor away from the Entity.
392
Legion SpaceWorks R6.5.0 User Guide
When you exit the Analyser properly (regardless of whether you have saved your work or
not) any Auto-saved backup file for that session is deleted and will not be available for
recovery. The ’abk’ file will, however, still be available.
Remember that each saved ’abk’ overwrites the previous backup file.
This means you can restore previous versions of ‘ana’ files when needed: change the backup
file’s extension from ’abk’ to ‘ana’. and open within the Analyser in the usual fashion.
In the unlikely event that you want to turn this feature off, you can do so by following this pro-
cedure:
Make sure you save your work before changing project files.
Using Help
Please see Using Help for full instructions.
Sending feedback
Please see Sending feedback for full instructions.
394
Legion SpaceWorks R6.5.0 User Guide
About analyses
The Legion Analyser enables you to interrogate a simulation by accessing the positions of all
Entities for every time-step in the simulation.
You can place Analysis Objects to specify areas of the space you want to ‘interrogate’ and then
link them to analyses and metrics that you have defined. The results of your analyses are dis-
played in the form of graphs, which you can save and print.
To run an analysis:
1. Identify the metrics you want to apply.
2. Place the relevant Analysis Objects.
3. Set up your analysis (including setting all parameters for the Analysis Objects.
4. Select graphs to display the results of your analysis.
Analysis metrics
The following metrics are available within the Legion Analyser (availability depends on the
Analysis Objects you place and whether you selected the bespoke Legion metrics within the
Simulator):
● Count Inside–the number of Entities inside an area.
● Egress–the number of Entities exiting an area.
● Ingress–the number of Entities entering an area
● Space Density–the size of an area divided by the number of Entities within it.
● Distance–Analysis Zone (distance travelled within the zone); two lines (distance travelled
from one line to the next); one line (distance between an Entity’s entrance into the model
and the moment they reach the line).
● Entity Count/Flow Rate–the number of Entities crossing a line.
● Entity Density–the density perceived by Entities within an area (the eventual figure is an
average of the perceived density of all Entities within a zone).
● Journey Time–the time taken for one or more Entities to cross two lines, one after the
other, or to cross an area defined by an Analysis Zone.
● Normalised Flow–the number of Entities crossing a line averaged over time and divided
by the length of the line.
● Speed–the speed of Entities crossing a line.
396
Legion SpaceWorks R6.5.0 User Guide
Space Density is potentially misleading because it is sensitive to the area over which it is
computed but insensitive to distribution patterns within the space. The metric Entity Dens-
ity is more accurate as it captures individual Entity density at all times.
In the Analyser, you can switch on 'Automated Flow Rate for Stairs and Escalators' to save
time during analyses. See Automated flow-rate analyses for Stair and Escalator objects.
Crowd Metrics
Click the following metrics to reveal a drop-down list of the Analysis Objects they require and
the types of graph which can be generated from the metrics.
Count Inside
Object: Analysis Zone
Graphs Available: Instantaneous, Average
Egress
Object: Analysis Zone
Graphs Available: Instantaneous, Cumulative, Average
Ingress
Object: Analysis Zone
Graphs Available: Instantaneous, Cumulative, Average
Space Density
Object: Analysis Zone
Graphs Available: Instantaneous, Average
Generalised Journey Time (GJT)
Object: Analysis Zone
Entity Metrics
Click the following metrics to reveal a drop-down list of the Analysis Objects they require and
the types of graph which can be generated from the metrics.
Discomfort
Object: Analysis Zone
Graphs Available : Instantaneous, Average, Advanced Average, Distribution (histogram),
Distribution over time (%), Distribution over time (values)
Dissatisfaction
Object: Analysis Zone
Graphs Available : Instantaneous, Average, Advanced Average, Distribution (histogram),
Distribution over time (%), Distribution over time (values)
Distance
Objects: Analysis Zone, Analysis Line or Lines
Graphs Available : Instantaneous, Average, Advanced Average, Distribution (histogram),
Distribution over time (%), Distribution over time (values)
Entity Density
Object: Analysis Zone
Graphs Available : Instantaneous, Average, Advanced Average, Distribution (histogram),
Distribution over time (%), Distribution over time (values)
Frustration
Object: Analysis Zone
Graphs Available : Instantaneous, Average, Advanced Average, Distribution (histogram),
Distribution over time (%), Distribution over time (values)
Inconvenience
Object: Analysis Zone
Graphs Available : Instantaneous, Average, Advanced Average, Distribution (histogram),
Distribution over time (%), Distribution over time (values)
Journey Time
Objects: Analysis Zone, Analysis Line or Lines
Graphs Available : Instantaneous, Average, Advanced Average, Distribution (histogram),
Distribution over time (%), Distribution over time (values)
Speed
Objects: Analysis Zone, Analysis Line
Graphs Available : Instantaneous, Average, Advanced Average, Distribution (histogram),
Distribution over time (%), Distribution over time (values)
398
Legion SpaceWorks R6.5.0 User Guide
Count Remaining
If you are analysing a zone or the Entire model, the tab 'Count Remaining' is available. Here
you can instruct your analysis to generate a graph which displays the number of Entities
remaining in the zone or model over time. To do so, check the box labelled 'Enable the Count
Remaining statistic'.
If you are analysing the Entire model, all origin objects will be considered. If you are ana-
lysing a zone, you will be able to select a specific origin object. See Setting up analyses.
Notes
Journey Time replaces metrics previously known as Time Taken and Time Spent Inside..
Inconvenience, Frustration, Discomfort and Dissatisfaction are only available on-line or if
included as an option when the 'res' file was recorded.
Category definitions in histograms are dynamically adjusted when a Colour Range is used.
Histograms are now cumulative, not instantaneous as in earlier versions.
The first three objects in this list also appear in the Model Builder to enable you to set up
Conditions for use with Direction Modifiers.
Analysis Objects are coloured orange to distinguish them from CAD lines and other types of
object. The illustration below shows, from left to right, an Analysis Zone, an Analysis Line and
an Analysis Poly-line:
A unique feature of Analysis Zones is that they can be drawn and placed according to 'vis-
ibility'. This means that, from a chosen viewpoint (a single point or a defined segment),
the shape and extent of an Analysis Zone can be calculated and placed according to how
visible an area of your model is from the chosen viewpoint.
This is useful if you want to analyse the impact of signs, information boards, cameras, or
advertisements within a site, while taking obstacles and interruptions to sight lines into
consideration. An Analysis Zone can be placed that covers just the area within which Entit-
ies can view a certain element of the venue, thus honing in on its effectiveness as a source
of information and influencer of movement. For more information, see Visibility-based
Analysis Zones.
400
Legion SpaceWorks R6.5.0 User Guide
1. Click the rectangular drawing icon , the polygonal drawing icon , or the visibility
drawing icon (if you click this, go to Visibility-based Analysis Zones).
Notice the direction of the arrow. Unless you specify otherwise, the line will only analyse
Entities moving across it in that direction. If you want the arrow to point to the left, start
drawing it from the bottom vertex; if you want the arrow to point to the right, start draw-
ing it from the top vertex.
The ‘Edit <Analysis Line/Poly-line>’ dialog box is displayed.
4. Enter an appropriate name for the Analysis Line or Poly-line.
5. If you want the line to analyse the movement of Entities crossing it in both directions,
check the box labelled Take into account entities crossing in both directions.
6. Click OK.
When placing an Analysis Zone, you have the choice of calculating visibility from a single
point or a segment. A point is useful for small areas like a camera lens; a segment is bet-
ter for wider objects like information boards, or signs, or shop windows. The procedures
for both are slightly different.
1. Click the visibility drawing icon (any icons and features not connected with visibility
drawing are disabled).
You can only place your point inside the model's accessible space. A dotted line is tem-
porarily imposed on the model, delineating areas of accessible space.
You are prompted to 'Move mouse to change distance'.
5. To set the distance from where you wish to calculate the visibility of the point, move the
mouse to the required place and left-click to fix it. By dragging the visibility arrow, you
can affect distance and direction. You can also type the distance coordinates (two figures
are needed) directly into the Command bar if you prefer. This screenshot shows the point
in the middle of a street Exit. The arrow has been extended to the required visibility dis-
tance.
402
Legion SpaceWorks R6.5.0 User Guide
You can now set the low and high angles from which your point can be seen.
6. To set the low angle, move your mouse to the required position and left-click.
7. To set the opposite (high) angle, move your mouse to the required position and left-click.
8. You can now review your settings and, if you need to make any adjustments, you can
'grab' the various distance and angle markers by clicking on them and moving them. They
are highlighted in red, as in this screenshot.
When you're happy with the shape of the Analysis Zone, hit Return. The ‘Edit Analysis
Zone’ dialog box is displayed.
9. Enter an appropriate name for the Analysis Zone and click OK.
The new zone appears in the workspace and in the Object Directory, in the Analysis Layer.
10. Repeat from step 2 for any more Visibility-based Analysis Zones you would like to place.
To exit 'visibility mode', click the icon again.
Drawing from left to right will create a directional arrow pointing up; drawing from right to
left will create a directional arrow pointing down; drawing top to bottom will create a dir-
ectional arrow pointing to the right; drawing bottom to top will create a directional arrow
pointing to the left. Also, you can only draw your segment inside the model's accessible
space. A dotted line is temporarily imposed on the model, delineating areas of accessible
space.
You are prompted to 'Move mouse to change distance'.
5. To set the distance from where you wish to calculate the visibility of the segment, move
the mouse to the required place and left-click to fix it. By dragging the visibility arrow, you
can affect distance and direction. You can also type the distance coordinates (two figures
are needed) directly into the Command bar if you prefer. This screenshot shows the seg-
ment drawn along one side of a retail unit. The arrow has been extended to the required
visibility distance.
You can now set the low and high angles from which your segment can be seen.
6. To set the low angle, move your mouse to the required position and left-click.
404
Legion SpaceWorks R6.5.0 User Guide
7. To set the opposite (high) angle, move your mouse to the required position and left-click.
8. You can now review your settings and, if you need to make any adjustments, you can
'grab' the various distance and angle markers by clicking on them and moving them. They
are highlighted in red, as in this screenshot.
When you're happy with the shape of the Analysis Zone, hit Return. The ‘Edit Analysis
Zone’ dialog box is displayed.
9. Enter an appropriate name for the Analysis Zone and click OK.
The new zone appears in the workspace and in the Object Directory, in the Analysis Layer.
10. Repeat from step 2 for any more Visibility-based Analysis Zones you would like to place.
To exit 'visibility mode', click the icon again.
406
Legion SpaceWorks R6.5.0 User Guide
Setting up analyses
When you have identified the metrics you want to analyse and have placed your Analysis
Objects, you are ready to set up your analyses. You can set up many different analyses for
each simulation (or part of a simulation).
You set up analyses in the ‘Edit Analysis’ dialog box, which has three tabbed pages: ‘Scope’,
‘Entity Filter’ and ‘Metrics’. These pages correspond to the elements of an analysis mentioned
earlier in Fundamentals of Legion analyses.
To set up an analysis:
1. Click or select Analysis > Analyses to display the ‘Edit Analysis’ dialog box.
2. Click the New button in the top left-hand corner of the dialog box.
A new analysis is added to the left-hand pane.
3. Type a meaningful name for this new analysis in the highlighted name box and press
Enter.
4. On the ‘Scope’ panel, select one or more of the Space options:
◊ Entire Model–the analysis will apply to the whole of the simulated space.
◊ Zone–select the appropriate Analysis Zone from the drop-down menu.
◊ Line–select the appropriate Analysis Line from the drop-down menu.
◊ Two Lines–select the two Analysis Lines you want to include in this Analysis (one from
each of the two associated drop-down menus).
If you want to set up more complex filters, click the Advanced button. See 22: Advanced
Filtering for full details.
5. Click on the Entity Filter tab.
6. Filter for Entities in the manner explained in Specifying filter settings.
7. Click on the Metrics tab.
8. Enter a value (in seconds) for the Accumulation Interval . This value determines the
time period that values are averaged over when you display an ‘Average Values’ graph.
9. Tick as many Metrics options as you require from the available list.
Available metrics are dependent on the analysis options you selected on the ‘Scope’ tab
and whether you enabled Journey Time options. See also Analyses: metrics, objects, and
outputs.
The metrics in the top half of the 'Metrics' panel are those reported by the Analysis Object
or Objects (the space or environment demarcated by the objects), while those in the bot-
tom half are those reported by Entities within, or affected by, the Analysis Object(s).
These latter metrics may be associated with ranges. Link a metric to a range by double-
clicking on the Metric under the Value/Colour Range column heading and selecting one
from the drop-down menu.
10. If you would like to analyse the number of Entities remaining within your model, click the
'Count Remaining' tab (the tab is not available if you are using an Analysis Line or Lines).
If not, proceed to the final step.
11. Check the box labelled 'Enable the Count Remaining statistic'.
12. Check the 'Origin Type's you would like to include in the count. If you selected 'Entire
Model', this list will not be available because all origins will be included automatically.
You can now generate a 'Count Remaining' graph for this analysis.
13. Click Apply or OK to save the analysis.
To generate 'Count Remaining' graphs for individual origins, you must add an analysis for
each (or select just one origin in step 12).
1. Click or select Analysis > Analyses to display the ‘Edit Analysis’ dialog box.
2. Click on the analysis you want to delete, rename or copy.
3. Click one of the available buttons in the top left-hand corner:
◊ Delete–removes the analysis from the list.
◊ Rename–enter the new name into the ‘Edit Name’ dialog box and click OK.
◊ Copy–adds a copy of the analysis to the list; type a meaningful name for this analysis
in the highlighted name box and press Enter.
4. Click Apply or OK to save your changes.
2. Check one or both of the 'Analysis Line Placement' options (boarding and/or alighting),
depending on the focus of your analysis.
408
Legion SpaceWorks R6.5.0 User Guide
3. Set the 'Accumulation Interval'. This value determines the time period that values are
averaged over when you display an ‘Average Values’ graph.
4. Click OK.
2. To choose a location for your reports, click the 'Browse' button to the right of the field
labelled 'Path:'.
3. From the 'Open' dialog, navigate to the local or network drive where you would like to
save your reports and click OK.
4. Select the appropriate 'File type': csv or xls (note that Summary Reports are only saved
as xls files.
5. Select one or more of the available Report Types:
◊ Create a detailed Journey Time (JT) report during a run
◊ Create a detailed Generalised Journey Time (GJT) report during a run
◊ Create a summary GJT, JT and Social Cost report during a run
For more information about these reports, click the Describe Reports button.
410
Legion SpaceWorks R6.5.0 User Guide
6. You shouldn't need to change the 'Social Cost' values but if you wish to, enter new values
into the boxes:
◊ Multiplier (value of time) pence/minute
◊ Annualisation: Days in a year
7. Select a 'Time Format' for your reports:
◊ Second
◊ Day:Hour:Min:Sec
8. Click OK.
To view or change the Global GJT Activity Weightings, click on the tab labelled 'Global GJT
Weightings' and see GJT: Global Weightings.
In the case of two-line Analyses, wherever an Entity crosses the first line but leaves the
model before crossing the second line, its value will be reported as "n/a".
Entity Types in the summary are the final Entity Types to which Entities leaving the model
belong. Be aware that during the course of a journey, an Entity may have its Entity Type
changed by a Direction Modifier.
412
Legion SpaceWorks R6.5.0 User Guide
In the Analyser, this version of the 'Edit Project Settings' dialog box will be displayed.
414
Legion SpaceWorks R6.5.0 User Guide
Depending on the amount of analyses (columns) being run in a simulation and the number of
Entities (rows) involved, a Journey Time file may need to be split into two or more files.
Legion SpaceWorks handles this in the following ways.
The _x and _y indicators increase according to the number of extra files that are generated.
The content of the grid is updated as a simulation is run or recorded but Entity data only
registers when they leave the model.
416
Legion SpaceWorks R6.5.0 User Guide
2. Select either All activities (and proceed to step 3) or Selected activities (and proceed
to step 5).
3. If you want to apply your own defined weighting to every activity within the zone.select
All activities and enter a value in the box labelled 'Weighting='.
4. If you want to add a congestion factor for all activities, enter a value in the the box
labelled 'CF'. Proceed to step 11.
5. Click the Add activity button.
The Add a new GJT Activity dialog is displayed.
6. Select an activity from the drop-down list labelled 'Set the activity GJT weight for'.
7. Enter a value in the box labelled 'Weighting='.
8. If you want to add a congestion factor, enter a value in the box labelled 'CF'.
9. Click OK.
10. Repeat steps 5 to 9 for any additional activities you'd like to add.
11. Set the zone's filters in the standard manner described in Specifying filter settings.
12. Click OK.
418
Legion SpaceWorks R6.5.0 User Guide
About graphs
The Legion Analyser enables you to view the results of your analyses in the form of dynamic
graphs, which you can customise, save and print. All graphs are stored on the ‘Analysis’ tab,
arranged in folders according to the analyses (incorporating their metrics) you may have
defined.
By default, the ‘Whole Model Ingress–Egress’ 'Reporting' analysis and its associated graphs
are always included in the Object Directory. The illustration also shows the analyses and
graphs associated with analyses (both 'Conditional' and 'Reporting') that were set up in the
Model Builder.
If you would like to hide 'Conditional' analyses, you can do so by following the instructions in
Showing or hiding Conditional Analyses and Graphs.
To display a graph, click on its adjacent red cross; this will open up a new graph window.
The following types of graph are available within the Analyser:
● Line graph
Line graph
In this type of graph the X axis represents Time; the Y axis varies. The graph updates itself at
every time-step, adding a line segment that joins the previous and current value.
The X axis represents a discrete number of ‘buckets’ defined within ranges; the Y axis shows
the percentage contribution of each category to the total number of Entities included in the
analysis.
The graph refreshes at each time-step, obtaining values for all Entities, mapping them onto
the range’s colours and creating bars that are proportional to the percentage calculated for
each bucket. The values in this kind of graph must relate to an Entity experience metric
(speed, density, etc.). If a colour range is selected then the categories are updated dynam-
ically by the software.
420
Legion SpaceWorks R6.5.0 User Guide
This kind of graph can also show the total number of Entities in each value range’s category as
a function of time:
Viewing graphs
Once you have placed your Analysis Objects and defined your analyses, you are ready to view
the results of your analysis in graph form. Graphs are viewed in the Analyser’s Graph Win-
dows, two of which are available when you first start the Analyser.
To view a graph:
1. In the Object Directory, click on the ‘Analysis’ tab.
2. Expand the Graph directory tree to locate the particular graph you want to view.
3. Click the white cross icon to the left of the graph’s name to display the graph.
4. A graph window opens below the workspace, displaying the graph you selected. If you
haven’t played back the simulation yet, the graph will not contain any data.
5. Play back or record the simulation. The graph is dynamically populated.
To change a graph:
1. Right- click in the Graph Window of the graph you want to change. A menu containing
alternative types of graph is displayed, for example ‘Cumulative values’, ‘Average values
(over 30 seconds)’ or ‘Advanced Average values’ (3 line graph using Standard Deviation).
2. Select one of these alternatives.
The original graph is replaced by your chosen alternative, incorporating the existing data.
Clearing a graph
You can clear all data from a graph at any point while it is displayed.
To clear a graph:
● Right-click in the Graph Window of the graph you want to change and select Clear Graph
All data is removed from the graph. The Graph Window remains open and will display the
data of the next graph you activate.
Saving graphs
While you are working with graphs, you may wish to capture screenshots of them for use in
presentations or on web pages, etc. You also have the option to save them as data files.
Save graph events can also be set up on the Timeline; see Graphs track events.
422
Legion SpaceWorks R6.5.0 User Guide
Save graph events can also be set up on the Timeline; see Graphs track events.
csv files can be loaded into the Analyser as graphs; xls files cannot be.
5. If you wish to generate image files, check the Generate image files box.
6. Select one of the available file formats:
◊ JPEG (jpg)–specify the adjacent Quality setting (10 is the highest quality and involves
the least compression).
◊ Bitmap (bmp)
◊ PNG (png)
7. Select the image Size parameters:
◊ Dimensions–choose from the adjacent drop-down list (includes User-defined, Fit A4
sheet and Fit PowerPoint Slide).
◊ Width–if you selected User-defined for Dimensions, select cm or pixels and enter a
value.
◊ Height–if you selected User-defined for Dimensions, select cm or pixels and enter a
value.
8. To save image files in the same place as the data files, check Use same location as for
data files.
To save image files in another location, ensure this box is unchecked and browse to a suit-
able location.
9. Click OK.
A progress bar is displayed as the graphs are saved.
If duplicate files are found, you will be asked whether you want to overwrite them.
Customising graphs
You can change the appearance and level of detail on existing graphs, create new graphs and
also combine different statistics and data on one Y-axis or by using a secondary Y-axis. The
things you can change, or define, are the following:
● Title
◊ Title
◊ Subtitle
◊ X-Axis title
◊ Primary Y-Axis title
◊ Secondary Y-axis
◊ Logo
◊ Time window
● Fonts
◊ Font type, size and colour for Titles, Subtitle, X and Y axis titles
● Appearance
◊ Legend–showing, hiding and placement
◊ Gridlines
◊ Y-axis scale
◊ Background colour
● Data series
◊ Series list
◊ Series details
These features fall into four categories: Titles, Fonts, Appearance and Data Series.
424
Legion SpaceWorks R6.5.0 User Guide
3. If you want to change the logo displayed at the foot of the graph, click the Browse button,
navigate to the appropriate image file and click Open.
4. To change the period of time covered by the graph’s axes, select an option from the Time
Window drop-down list. These range from All simulation to 1 minute.
5. If you want to make further changes to the graph click Apply and then click on the 'Fonts',
'Appearance' or 'Data Series' tabs to continue.
Otherwise click OK to save your changes and close the ‘Edit Graph’ dialog box.
2. Click New. A new graph is created and added to the list of graphs.
3. Enter a suitable name for your new graph or leave the default name if preferred.
4. Define Titles, Fonts and Appearance as described in the previous three procedures.
5. To define Data Series, see Changing the Data Series of a graph.
6. Click Apply or OK to save your changes.
3. To add Data Series, click the Add button one or more times.
This adds one or more entries to the 'Series List' and makes certain associated fields avail-
able and active.
426
Legion SpaceWorks R6.5.0 User Guide
4. To set the parameters of a data series, first click on it in the Series List to highlight it.
5. If you would like the name of the data series to match the data on the axes, check the box
labelled 'Generate name from axes'. If you would like to name the series something else,
uncheck the box and type a different name into the 'Name' field.
6. Select a metric from the 'X-Axis' drop-down list ('Time' is usually the appropriate choice).
7. Select a metric from the 'Y-Axis' drop-down list.
8. If you want to plot data using the secondary y-axis, check the box labelled 'Use Secondary
Y-Axis'.
9. Select a 'Colour' for this data series to be plotted in.
10. Select a 'Series Type' for this data series (Step Line, Column, Bar).
11. If you wish to display 'Error Bars', check the associated box. Error bars are used on
graphs to indicate the full range of data from which each averaged plotted point is cal-
culated.
12. Select a colour for the error bars from the adjacent drop-down list.
13. For the graph's plot markers, select a style from the drop-down list labelled 'Markers'
(None, Square, Star).
14. Select a colour for the markers from the adjacent drop-down list.
15. If you would like to be able to hover your cursor over a line in the graph to see the value
at that point, check the 'Show Tooltips' box (this may slow down performance).
16. Click Apply to save your changes.
17. Repeat from step 4 for any further data series.
18. Click OK to close the dialog box.
428
Legion SpaceWorks R6.5.0 User Guide
430
Legion SpaceWorks R6.5.0 User Guide
When you press Play the Timeline simply plays back the simulation, reflecting any camera
events you may have set up and generating maps and graphs corresponding to your tracks
and events.
When you press Record the Timeline plays back the simulation as above but also saves
any Record .AVI or Record .RES events you may have set up along with saving images,
graphs, maps and data.
2. Select one of the available tick-length options (the smaller the time value, the closer the
zoom).
3. Click OK to save the new Zoom level.
432
Legion SpaceWorks R6.5.0 User Guide
The codec selected for the default Record .AVI event will produce a very large, uncom-
pressed file. You may wish to change this setting within the track’s properties.
You can change the properties of the default tracks and events, delete them, disable them,
change the default event colours and so on. These subjects are covered in the rest of this part
of the guide.
Analyser Tracks
Tracks are the components of the Timeline that carry the events you want to occur in the
course of a simulation. An event may be, for example, the recording of analysis data, the
recording of an ‘avi’ or the saving of graphs.
Before you can add and specify an event, you need to add an appropriate track. There are six
tracks available within the Analyser’s Timeline:
● Maps–save or clear generated Maps at defined points within a simulation.
● Graphs–save graphs at defined points within a simulation.
● Screen Camera–change cameras during playback and also save ‘snapshot’ images of the
simulation at defined points.
● Record .AVI–record animated files for the whole or part of a simulation; also customise
the appearance of your ‘avi’ presentations.
● Record .RES–record ‘res’ files for the whole or part of a simulation.
● Record Entity Positions–record Entity Positions, for all or parts of a simulation, in an XML
file.
434
Legion SpaceWorks R6.5.0 User Guide
Caption
Clock–change time format; font; text colour, contour line values and background col-
ours.
Logo–browse to select an alternative logo image; change logo colour, contour line val-
ues, background colour and transparency.
Legend–
◊ Legend–depending on which maps were selected for this event, and how many legends
they have, you can choose 'All' or specific legends from this drop-down list.
◊ Title–enter a 'Title'; choose 'Text Colour' and 'Font'
◊ Units–enter 'Units'; choose 'Text Colour' and 'Font'
◊ Labels– choose 'Text Colour' and 'Font'
◊ Contour–select 'yes' or 'no' to show or hide contour lines; choose 'Contour Line Colour'
◊ Background–choose a 'Background' colour and add a value for 'Background trans-
parency' (0 is opaque)
Graph–select the appropriate graph from the drop-down list labelled 'Value' in the
'Graph name' row.
3. To change the background colour of the workspace, select a colour from the drop-down
palette labelled Background Colour.
4. You can also align the various components in relation to each other; see Designing the Lay-
out for the Analyser .AVI track for details.
5. If you want to delete a removable item, click to select it and press Delete.
6. Click OK to save your layout settings.
436
Legion SpaceWorks R6.5.0 User Guide
4. To record a map as part of the ‘avi’, select one from the drop-down list labelled Record
this map (or leave as ‘Entity Position Only’ if you don’t wish to record a map).
5. Select a camera perspective: either Active camera or Whole model.
6. Click Apply or OK to save the event.
If the event overlaps other events, an error message is displayed. See Overlapping
events.
Status icons
Just to the right of the Track names, there is space for one of three icons which indicate its
status:
Ok to play back.
Warning issued which may need attention but will play back.
changes to this shape and then click and drag downwards to change the height of the
track.
● To collapse the whole Timeline down to just the Time-track and Playback toolbar, click .
To restore it, click the icon again
Duplicating tracks
You can duplicate one of the tracks you have set up and add it to the list of tracks in the
Timeline. In the following procedure, a Save Graph track is used as an example.
To duplicate a track:
1. Right-click on the relevant track’s name and select Duplicate this track.
The duplicated track is added to the bottom of the list of tracks in the Timeline.
438
Legion SpaceWorks R6.5.0 User Guide
2. If you want to change the name of the duplicated track, double-click on its current name to
highlight, type a new name over it and press Enter.
3. If you want to change the properties of this duplicated track, right- click on its track
‘header’ (in the area below the Playback toolbar) to display its properties dialog box.
Deleting Tracks
To delete a track:
1. Right-click on a track and select Delete.
2. Confirm the action when prompted.
The track is deleted from the Timeline.
Track Properties
Each track you place on the Timeline has certain properties which need to be defined correctly
in order for playback and recording to occur and for specified events to run successfully. You
can access a track’s properties by right-clicking on it and selecting Track properties.
For instance, if you are saving data files (maps, graphs, snapshots, ‘avi’ files or ‘res’ files),
you need to define where you want to save the files, what you want to call the files and
whether you are saving one file or multiple files.
If these properties are undefined, or defined incorrectly, the track status icon will issue a
warning or an error, which will also be visible in the ‘QA’ portion of the Output Bar.
The following procedures describe how to set properties for the various Analyser Timeline
tracks.
The ‘Example’ box at the bottom of the dialog box shows you how the files will be named.
7. If you wish to add your own filename prefix, enter it in the ‘Base filename’ box, taking
care not to overwrite the template elements which are listed there.
File iteration separators and numbering style are automatically defined.
8. Click OK to close the ‘Maps Track Properties’ dialog box.
2. To add map legends, click and drag into the Layout Designer; size and position as
required.
There are several legend attributes you can change:
◊ Legend–depending on which maps were selected for this event, and how many legends
they have, you can choose 'All' or specific legends from this drop-down list.
◊ Title–enter a 'Title'; choose 'Text Colour' and 'Font'
◊ Units–enter 'Units'; choose 'Text Colour' and 'Font'
◊ Labels– choose 'Text Colour' and 'Font'
◊ Contour–select 'yes' or 'no' to show or hide contour lines; choose 'Contour Line Colour'
◊ Background–choose a 'Background' colour and add a value for 'Background trans-
parency' (0 is opaque)
3. To add a Statistical Component (graph), click and drag into the Layout Designer; size
and position as required.
◊ From the 'Value' drop-down list, select a metric for the graph.
4. Make any other changes to the Layout Designer as required.
5. Click OK to save your changes.
440
Legion SpaceWorks R6.5.0 User Guide
1. Next to ‘Filename to save to’, click the browse button to display the ‘Save As’ dialog box.
2. Navigate to the location where you would like to save the Entity position file, enter a
name, and click Save.
3. If you want to record Entity positions in a specified area covered by an Analysis Zone,
check the box labelled ‘Use region’ and select an area from the drop-down list labelled
‘Analysis Zone’.
4. If you want to change the default ‘Save frequency’ of 0.6 seconds, enter a new value in the
box labelled ‘Save entity positions every n seconds’.
5. Click OK. A new track called (in this case) ‘Record Entity Positions’ is added to the
Timeline.
The ‘Example’ box at the bottom of the dialog box shows you how the files will be named.
10. If you wish to add your own filename prefix, enter it in the ‘Base filename’ box, taking
care not to overwrite the template elements which are listed there.
File iteration separators and numbering style are automatically defined.
11. Click the 'Track info' tab and check or uncheck the box labelled 'Enable this track' to
make the track active or inactive.
12. Click OK to save your changes.
Defining Events
The following procedures show you how to set up events for each track in your Timeline. Note
that some tracks can hold more than one event, for example the Maps track enables you to
save maps and clear maps along the same track.
All procedures assume that you have already added the relevant type of track to the Timeline
(see Adding Tracks to the Timeline) and set all the necessary properties.
Events can be ‘instantaneous’ (lasting one time-step) or ‘ranged’ (having a longer duration).
Instantaneous events are represented by icons on the Timeline; ranged events are rep-
resented by solid horizontal bars of colour.
When placing events, check the red ToolTip for the exact time as you place your cursor
along the Time-track
442
Legion SpaceWorks R6.5.0 User Guide
10. If you want to change the default layout of the saved map image, click the Layout button
and make any changes to the layout. See Designing the Layout for Map Events.
11. In the panel labelled 'Reuse map selection, camera, image dimensions and file format in
other Save Map events', select either:
◊ Apply to all maps – THIS track
◊ Apply to all maps – ALL tracks
Making a selection here means you can apply these Save Map instructions to either all
maps on this track alone or all maps on all tracks on the Timeline.
12. Click OK to save the event.
If the event overlaps other events, an error message is displayed. See Overlapping
events.
2. To add any of the customisable items in the ‘Avi components’ toolbar, click and hold the
relevant icon and drag into the Layout Designer. Position and resize the items according to
preference.
3. To change the properties of a label, clock or logo, click on the item to select it and change
the properties in the left-hand panel of the dialog box. Change properties in the ‘Value’
column by entering text directly, browsing for files or selecting values from drop- down
lists.
Caption
Clock–change time format; font; text colour, contour line values and background col-
ours.
Logo–browse to select an alternative logo image; change logo colour, contour line val-
ues, background colour and transparency.
Legend–
◊ Legend–depending on which maps were selected for this event, and how many legends
they have, you can choose 'All' or specific legends from this drop-down list.
◊ Title–enter a 'Title'; choose 'Text Colour' and 'Font'
◊ Units–enter 'Units'; choose 'Text Colour' and 'Font'
◊ Labels– choose 'Text Colour' and 'Font'
◊ Contour–select 'yes' or 'no' to show or hide contour lines; choose 'Contour Line Colour'
◊ Background–choose a 'Background' colour and add a value for 'Background trans-
parency' (0 is opaque)
4. To change the background colour of the workspace, select a colour from the drop-down
palette labelled Background Colour.
444
Legion SpaceWorks R6.5.0 User Guide
5. You can also align the various components in relation to each other; see Designing the Lay-
out for Map Events for details.
6. If you want to delete a removable item, click to select it and press Delete.
7. Click OK to save your layout settings.
● Set active Camera–select a pre-defined camera from which to view the simulation play-
back.
● Add a Snapshot event–save ‘snapshots’ of the simulation as image files at specified points
along the Timeline.
Before you can set a Layer View, you need to have defined at least one in the Model Builder;
please see Layer Views.
Before you can set active Cameras, you need to define and name them, so they are available
for use. The next section explains how to do so.
Creating a camera
You can pan and zoom into specific areas of your simulation and save the view as a fixed cam-
era position. You can then use these cameras to make playback and recordings more
dynamic, pertinent and persuasive.
For example, when recording an ‘avi’ of your simulation, you could start from a wide camera
that shows the whole of your model, eventually zooming in on crucial areas of design or
examples of Entity movement.
Active Cameras can also be set on the Record. avi track, see Setting an active camera.
To create a camera:
1. Using the pan and zoom tools, arrange the view you would like the camera to show.
2. Click or right-click in the workspace and select Create camera based on the cur-
rent view.
The ‘Edit Camera’ dialog box is displayed with a new camera listed in the left-hand pane.
3. If you want to rename the camera, highlight the default name, type a new name and press
Enter.
4. To specify how the Analyser will switch to this camera during the course of a playback or
recording, select one of these options from the drop-down list labelled Mode of switch-
ing to this camera:
◊ Instant–the view will cut instantly to this camera.
◊ Coarse–the view will change gradually from the previous camera to this one.
◊ Smooth–the view will glide smoothly from the previous camera to this one.
5. Click Apply or OK to save your changes.
The Camera is added to the ‘Analysis’ tab of the Object Directory.
6. Repeat from step 1 to add any further cameras.
Activating a camera
To switch to a particular camera’s point of view within the workspace, right-click anywhere in
the workspace and select Activate Camera > Camera <name> . The workspace view will
change accordingly.
446
Legion SpaceWorks R6.5.0 User Guide
448
Legion SpaceWorks R6.5.0 User Guide
Overlapping events
If you attempt to add an event to a track within a time period that already contains similar
events, the ‘Resolve Event Overlap’ dialog box is displayed.
It lists the events that overlap and provides two solutions for resolving the conflict.
◊ Fit the new/moved/resized event around the conflicting event(s)–this resolves the
overlap problem by fitting the latter events around the existing event(s).
If you click Cancel the event or events you are attempting to place are not placed.
2. Click OK.
Deleting events
To delete an event:
1. Right-click on the event you want to delete and select Delete.
2. Confirm the action when prompted.
The event is deleted from the track.
You can only set the time to one within the start and end times of the simulation.
4. Click OK.
450
Legion SpaceWorks R6.5.0 User Guide
1. Right-click on the Time-track at the point at which you want to place a Time Mark and
select Add time mark.
A small blue clock face symbol is added to the Time-track.
2. Repeat step 1 to add further Time Marks.
3. To skip forwards or backwards between Time Marks, first press Stop and then click or
respectively. These buttons are only available when there are Time Marks ahead of
and/or behind the current position of your Time-pointer.
452
Legion SpaceWorks R6.5.0 User Guide
The logic and techniques behind advanced filtering are similar to those discussed in Set-
ting up Conditions.
Examples of filters
Here are four possible filters.
◊ [Activity = "On Escalator"]
This will single out all Entities in the model using escalators at a particular moment.
◊ [Activity = "On Escalator"] And [Frustration > 10.0]
This will single out all Entities in the model using escalators and experiencing Frustration
greater than 10.0 at a particular moment.
◊ [Target = "Exit #002"]And Not ([Activity = "On Escalator"] Or [Activity =
"On Stairs"])
This will single out all Entities in the model at a particular moment which are targeted to
Exit #002, excluding those using escalators or stairs.
◊ [Target = "Exit #002"] And ([Activity = "On Escalator"] Or [Activity = "On
Stairs"])
This will filter for all Entities using escalators or stairs that are targeted to Exit #002.
If you were to omit the curved brackets from the fourth example, the filter would return all
Entities targeted to Exit #002 that are using stairs as well as ALL Entities that are using escal-
ators, regardless of their target.
All these tasks use dialog boxes which share the same tools, options and layout (this screen-
shot is taken from the ‘Edit Analysis’ dialog box).
There are two ways to enter an advanced filter: either use the four control boxes to build state-
ments, or type directly into the filter window.
454
Legion SpaceWorks R6.5.0 User Guide
On Escalator
On Escalator Down
On Escalator Up
On Stairs
On Stairs Down
On Stairs Up
Queuing
Waiting
Walking
Dissatisfaction <
<
>
Gender = Male
Female
ID = Input box
<
>
Any errors are indicated below the filter window in red, with a hint as to the nature of the
error. Please remedy all errors as your filter statements will not be saved if errors exist.
456
Legion SpaceWorks R6.5.0 User Guide
In the case of Gates, ensure that you enter the correct Gate Side as a Target ('Switch'
gates can have two sides: IN and OUT). A correctly formatted advanced filter for a Gate
with two sides would look like the following.
458
Legion SpaceWorks R6.5.0 User Guide
460
Legion SpaceWorks R6.5.0 User Guide
.
2. Click Yes to continue.
3. The Desire Line Diagram will be displayed in the workplace with all filtered Entity trails dis-
played. All data and screenshots will be saved to the locations and in the format you spe-
cify in the Screen Camera Track properties and any Snapshot events you may have added
to the track. This screenshot shows the purple Desire Lines of Entities from all Origins.
4. If you wish to pause, stop, or reset the Desire Line Diagram, use the relevant icons on the
Timeline to do so.
462
Legion SpaceWorks R6.5.0 User Guide
Creating a Catalogue
If you would like to have different catalogues for different projects or for certain types of
object, you can create your own in addition to the default catalogue. This procedure assumes
you have a project open within the Model Builder or Analyser.
To create a catalogue:
1. Select Tools > Options > Catalogue Management.
The ‘Options’ dialog box is displayed.
464
Legion SpaceWorks R6.5.0 User Guide
2. Click the New Catalogue File icon and navigate to the local or network drive on
which you want to save the catalogue.
3. Enter a name for the catalogue in the ‘File name’ box.
4. Click Save.
The catalogue will be saved as a Legion Data file (extension ‘lgd’).
5. Repeat steps 2 to 4 to add any more catalogues you require.
6. Click OK.
You must register catalogues in both the Model Builder and Analyser if you want them to
be available to each application.
466
Legion SpaceWorks R6.5.0 User Guide
If the catalogue you need does not appear in the list, you must ‘register’ it using Tools >
Options > Catalogue Management.
4. If you would like to give the saved object a different name to the one used in the model,
enter it in the ‘Name’ box.
5. If you would like to add a description of the saved object, do so in the ‘Description’ box.
6. Click OK to save the object to the catalogue.
If you selected several objects to save, you will need to repeat steps 4 to 7 for each of
them.
7. Click OK to close the ‘Save to catalogue’ dialog box.
A note on duplicate objects
If an object you are trying to save to a catalogue is already in the catalogue (all objects are
automatically added to the Default Catalogue by the way), the 'Name Clash' dialog box is dis-
played, where you can decide how to treat the object. Think of it as copying and pasting the
object into the catalogue.
2. If you want to use objects in the default catalogue, it is already selected and the objects
are displayed in a tree structure within the 'Content' panel. Until you select one or more
items in the catalogue, they are marked with a white cross on red.
3. To select from another catalogue, select another option from the 'Catalogue file' drop-
down list. That catalogue's contents are now displayed.
4. Select one or more objects by clicking on them in the tree. All selected objects are marked
with a white tick on green.
468
Legion SpaceWorks R6.5.0 User Guide
3. To remove objects from another catalogue, select another option from the 'Catalogue file'
drop-down list. That catalogue's contents are now displayed.
4. Select one or more objects by clicking on them in the tree. All selected objects are marked
with a white tick on green.
470
Legion SpaceWorks R6.5.0 User Guide
To import a catalogue:
1. Select Tools > Object Store.
2. If you want to import objects into the default catalogue, it is already selected (proceed to
step 5).
3. To choose another catalogue to import into, select another option from the 'Catalogue file'
drop-down list.
4. From the ‘Open’ dialog, navigate to the catalogue you want, highlight it and click Open.
5. Click Import.
6. Navigate to the catalogue you would like to import, highlight it and click Open.
SpaceWorks will import the selected catalogue and its objects into your first catalogue but
you may well encounter name clashes for certain items (like 'Default Entity Type') that
already exist. In these cases the 'Name Clash' dialog will be displayed for each clash.
5. Click Export.
The 'Export To' dialogue box is displayed.
6. Navigate to the catalogue to which you would like to export the objects.
◊ If you want to export them to a new catalogue, enter a name for the new catalogue in
the ‘File name’ box.
7. Click Save.
◊ If you added a new catalogue name, you will be prompted to ‘Create a new cata-
logue?’. Click Yes to do so.
The objects are exported to the selected or newly created catalogue.
472
Legion SpaceWorks R6.5.0 User Guide
3. Objects in this catalogue can be used and/or exported in the same way as objects
described in Using Stored Objects and To export objects to catalogues:.
474
Legion SpaceWorks R6.5.0 User Guide
To remove a batch, click once on its column header and then click the Remove button.
14. To run a batch (or batches), click Start.
The Batch Run progress indicator is displayed. It will close when all files are completed
and saved to your specified location.
476
Legion SpaceWorks R6.5.0 User Guide
2. Double-click in the Model cell, navigate to and select the appropriate ‘lgm’ file.
3. Double-click in the Source cell, navigate to and select the appropriate ‘ora’ or ‘res’ file.
4. Double-click in the No. of runs cell and enter the number of simulations you want to run
(at least 1).
5. Select one of the available Timeline Settings from the Timeline drop-down list.
7. To run a simulation using a particular seed, double click in the Simulation seed box and
enter the number of the seed. For more information on simulation seeds, see Specifying
the Simulation Seed.
8. To instruct runs how to proceed when they have recorded all relevant maps and graphs,
from the After recording all maps & graphs drop-down list, select either:
◊ Skip to the next batch item
◊ Continue simulation/analysis
Making a selection here can save you time if you don't need to record video or res files
after the data for maps and graphs have been recorded.
9. To select which global GJT weightings to use (the lgm file's or the ana file's), from the
Global GJT weights source drop-down list, select either:
◊ Model – LGM
◊ Analysis – ANA
Making a selection here ensures that the Batch Runs continue without being interrupted by
the Analyser requesting to know, each run, which weightings to use.
10. If you want to add more batches, do one of the following:
◊ Click the Add button to add 'Batch 2' to the dialog and return to step 2 of this pro-
cedure.
◊ If you want to use this batch as the basis for a further one, click Copy and return to
step 3 of this procedure to alter one or more of the settings.
To remove a batch, click once on its column header and then click the Remove button.
11. To run a batch (or batches), click Start.
The Batch Run progress indicator is displayed. It will close when all files are completed
and saved to your specified location.
478
Legion SpaceWorks R6.5.0 User Guide
Ensure that any files you save for Option B are renamed accordingly so that you don’t over-
write any files you saved for Option A.
10. Finally, In the ‘Batch Run’ dialog box, associate Timelines A and B with the correct model
and source files batches.
11. Run the batch.
Arc arc
Circle circle
Copy copy
Cut cut
Ellipse ellipse
Entrance entrance
Escalator escalator
Exit exit
480
Legion SpaceWorks R6.5.0 User Guide
Gate gate
Line line
Measure measure
Mirror mirror
Move move
Paste paste
Poly-line polyline
Queue queue
Rectangle rect
Scale scale
Stair stair
482
Legion SpaceWorks R6.5.0 User Guide
484
Legion SpaceWorks R6.5.0 User Guide
Analyser 393
B
Model Builder 84
Background colour
notes on 85
changing 74
Auto Hide 80
Backups
Automated flow-rate analyses for
Stairs and Escalators 408 ana files 393
concepts 23
486
Legion SpaceWorks R6.5.0 User Guide
exporting 35 Changing
and availability profiles 212 start and end times of a Save Map
event 443
FDS 208
the algorithm (FDZ errors) 298
Camera
the start and end times of an
activating 446 event 336
adding to a Record .AVI track 436- type of Graph 422
437
Changing a model file in a managed
creating 446 project 61
setting active 447 Checking
updating 446 for errors 90
Camera Close-up 77 for updates 19
488
Legion SpaceWorks R6.5.0 User Guide
490
Legion SpaceWorks R6.5.0 User Guide
Drawing and placing Spatial Edit Data Profile dialogue box 149
Objects 179
492
Legion SpaceWorks R6.5.0 User Guide
creating using a Slice file 355 adding a Record .RES event 335
494
Legion SpaceWorks R6.5.0 User Guide
described 231
496
Legion SpaceWorks R6.5.0 User Guide
Graphs
H
changing appearance of 425
HASP
changing Datasets 426
debugging error 10
changing font settings 425
licensing 10
changing type 422
Help
clearing 422
using 95
Column Graphs 420
Hiding and showing group objects 306
creating a new custom graph 425
Hiding Conditional analyses 94
described 419
Hiding Conditional analyses (Ana-
Histogram 420 lyser) 399
Line Graph 420 Histogram 420
loading from csv file 428 stacked 421
opening new Graph window 422
I
purging invalid 423
IFC (Industry file format) CAD 40
saving 422
colour support 44
saving all 423
importing 40
setting track properties 440
organising Legion layers 43
Stacked Column Graph 421
placing layers 46
Stacked Histogram 421
quickly selecting layers 45
viewing 421
selecting contents 41
zooming in and out 421
IFC CAD terminology 40
Grid
Imported file properties 154
changing settings 189
Importing
described 189
CAD 33
showing 189
Colour and Value Ranges 359
using 189
Completed Data Template 143
Group Objects
data for a single Data Profile 153
hiding and showing 306
IFC CAD 40
Layers Directory 79
J
loading older model files 216
Journey Time
locking and unlocking 210
metrics 397
making active 213
size of files 414
making snappable 210
JT and GJT
moving and copying using the Com-
Reports 410-411 mand Line 214
498
Legion SpaceWorks R6.5.0 User Guide
500
Legion SpaceWorks R6.5.0 User Guide
502
Legion SpaceWorks R6.5.0 User Guide
a window 79 O
an existing model 87
P
files from within project
manager 60 Panning and zooming 89
504
Legion SpaceWorks R6.5.0 User Guide
managing 56
R
Properties
Random Noise
ana files 394
applying 164
model files 82
Ranged events
Properties of Layers 209
specifying colour 450
Protecting
Ranges
ana files 394
copying 359
model files 82
deleting 359
Pulse
exporting Colour and Value
applying 159 Ranges 359
506
Legion SpaceWorks R6.5.0 User Guide
508
Legion SpaceWorks R6.5.0 User Guide
Gates 268
510
Legion SpaceWorks R6.5.0 User Guide
512
Legion SpaceWorks R6.5.0 User Guide
Analyser 373 U
creating a custom toolbar 75 Underground
Model Builder 74 Entity Colour Scheme 359
repositioning 74 options for Maps 344
simulator 314 Underground Cumulative High Density
(15-minute) Map 343
turning a toolbar off 74
Underground Cumulative High Density
Track
(60 mins) Map 343
control icons 330, 438
Underground Cumulative High Density
Entity Colour Scheme 359
514
Legion SpaceWorks R6.5.0 User Guide
W
Waiting
Waiting Zones
described 283
drawing 283
Wildcards 201
Windows
arranging 79
closing 80
moving 79
reopening a window 80
resizing 79
Workspace
Model Builder 74
Workstation licences 10
Z
Zone of Influence 348
Zoom level
Zooming 89