Documentation > nControl > API Reference
Tile Layout
The tile layout shows all the tiles to control the train / monorail layout.
Introduction
In the tile layout you can define an activation and deactivation script which can be used to initialize the tiles of the layout.
Event Scripts
Tile layout supports the following event scripts:
  • Activation event: is executed when the tile layout is switched to simulation or operational mode.
  • Deactivation event: is executed when the tile layout is switched to configuration or design mode.
API Functions
nTileLayout.getTile(label)
Returns the tile object specified by label. If there is no tile with the specified label, the function returns a None value.
nTileLayout.globalVars
Base property to which you can add global variables that retain their value after the event scripts finish. For example self.globalVars.myVar = 5 adds a new property myVar to self.globalVars and gives it the value 5. The globalVars property is global to nControl meaning that all tiles use the same globalVars property as the tile layout. As such globalVars can be used to exchange information between the tiles.