Table of Contents

Load Aimsun

Overview

In this tutorial we will launch Aimsun and connect it to XTMF using the module TMG.Aimsun.LoadModellerController.

1. Add the Module to Execute Aimsun Tools

  • Step 1: Right-click on To Execute and select "Add Module" or Press "Ctrl"+"M"
  • Search for the term "aimsun"
  • Add "ExecuteToolsFromModellerResource" module to "To Execute"
  • Note that it should read TMG.Aimsun.ExecuteToolsFromModellerResource. An equivalent one for EMMME also exists
ExecuteToolsFromModellerResource Module
Figure 1: ExecuteToolsFromModellerResource Module
  • Step 2: Double click on Aimsun Modeller
  • Select "Tasha.Common.Resource" from the three available options. This is second in the box.
  • This will result in a new attribute to appear called Data Source
Select ResourceLookup Module
Figure 2: Select ResourceLookup Module
  • Step 3: The model system should now look like this:
  • You should now see a "Data Source" attribute now available
Data Source Output Module
Figure 3: Data Source Output Module
  • Step 4: Right-click on "Data Source" and select "Set Module" or Press "Ctrl"+"M"
  • Type LoadAimsunController to load the AimsunController
Enter Resource Name
Figure 4: Enter Resource Name
  • Step 5: Loading the AimsunController will result in three attributes to be displayed
    • AimsunPath: The directory where the Aimsun aconsole.exe is located. Typically on the C drive
    • ProjectFile: The directory where the network package .nwp file is located.
    • ToolboxDefault Directory: The directory where the Aimsun tools are located.
Input path to AimsunController
Figure 5: Input path to AimsunController
  • Step 6: Right-click on "Aimsun Path" and select "Set Module" or Press "Ctrl"+"M"
  • Click on "FilePathFromInputDirectory"
FilePathFromInputDirectory Module
Figure 6: FilePathFromInputDirectory Module
  • Step 7: Add the path to the Aimsun aconsole.exe file path
Aconsole path Module
Figure 7: Aconsole path Module
  • Step 8: Right-click on "Project File" and select "Set Module" or Press "Ctrl"+"M"
  • Click on "FilePathFromInputDirectory"
  • Copy and paste the path to the Project File folder as shown in the image
ProjectFile Module
Figure 8: ProjectFile Module
  • Step 9: Right-click on "Toolbox Default Directory" and select "Set Module" or Press "Ctrl"+"M"
  • Click on "FilePathFromInputDirectory"
  • Copy and paste the path to the Toolbox Directory folder as shown in the image
Toolbox Default Directory Module
Figure 9: Toolbox Default Directory Modules