How to create an Excel background calculation model
Jump to navigation
Jump to search
Panels form a (custom) interface element for the end-user. When backed by an Excel, a Panel can perform calculations and affect the 3D World, even when the Panel is not actually accessible to an end-user.
The instructions below will create a Panel which changes the traffic on all roads in a Project based on the amount of houses added during a Session.
How to add a Panel:
- Create a new Excel file.
- Add a "SELECT_UNITS_WHERE_MAP_IS_CURRENT" cell to the Excel file.
- Add a "SELECT_UNITS_WHERE_MAP_IS_MAQUETTE" cell to the Excel file.
- Add an "UPDATE_BUILDING_TRAFFIC_FLOW_WHERE_CATEGORY_IS_ROAD" cell to the Excel file.
- Add an "EXPLANATION" cell to the Excel file.
- Set the formula of the "UPDATE" cell to "=MAX(0;SELECT_UNITS_WHERE_MAP_IS_MAQUETTE - SELECT_UNITS_WHERE_MAP_IS_CURRENT)".
- In the Editor, add a new Excel Panel.
- Upload the created Excel file for the added Panel.
- Now the amount of traffic on all roads in the Session starts as 0, but increases as the amount of housing in the 3D World is added during a Session.