Free Download Aimsun Scripting Manual Programs Like Microsoft

Free Download Aimsun Scripting Manual Programs Like Microsoft Average ratng: 5,6/10 4983 votes

This post has already been read 3278 times!

  1. Free Download Aimsun Scripting Manual Programs Like Microsoft Access
  2. Free Download Aimsun Scripting Manual Programs Like Microsoft Publisher

Aimsun is traffic simulation software developed by Transport Simulation System (TSS). It has a very powerful python-based scripting engine. Though other traffic simulation software, e.g., PTV Vissim or Caliper TransModeler provides scripting functionality as well – yet Aimsun’s scripting engine has some unique features that make the scripting work not only productive, but also quite fun 😆 .

Simcity 4 deluxe download full version free

One such feature is the so-calledlive-binding of a script to any selected object type.

In Aimsun framework, all elements of the simulation task – from network geometry, control devices, script, to menus, dialogs, projects, scenarios, algorithms …. everything … anything – is an “object”, derived from a base class GKBaseObject which is rooted from Qt’s QObject. The entire Aimsun software is built upon a Model-View-Controller (MVC) framework taking advantage of Qt framework. This framework is well exposed to end users via its SDKs, APIs, and the Scripting Engine. Apart from being a comprehensive traffic simulation tool, Aimsun presents itself as an excellent example of modern design patterns and software engineering. It has very small memory footprint as well.

Free Download Aimsun Scripting Manual Programs Running. The Cool Running training program enhances that endurance while sharpening the pace through speedwork. Prepare to race this classic distance with a 5K training program that carefully balances both mileage and speedwork.

Microsoft

The following example comes with default Aimsun installation, i.e., the sample script No. 30 “Copy Control Plan”.

Please note, the latest Aimsun 8.0.x versions have some internal changes breaking the scripts that once had worked with Aimsun version 7.x. TSS releases these scripts with the official Version 8.0.x without upgrading those scripts, and you’ll have to fix them yourself. (UPDATE: Aimsun 8.0.8 released on March 19, 2015 has fixed this.)

The following is the original script Copy Control Plan that comes with Aimsun official 8.0.x installation:

In the above, Line 3 – Line 7 should be replaced as follows:

So, the script after the fix should look like the following:

Free Download Aimsun Scripting Manual Programs Like Microsoft Access

Some notes:

Free Download Aimsun Scripting Manual Programs Like Microsoft Publisher

  • The object that the script binds to is represented by the name “target”. Therefore, if the script is bound to node-type objects (e.g., the script is added to the context menu of node objects), “target” would refer to the subject node object. To bind a script to another object, you simply right click the script, select “Properties”. Then from “Settings” tab –> “Add Script to a Menu”, select an object type in the drop-down list “To Context Menu for Object Type” . See the figure below.
  • getControlPlan is called twice, at Line 11, and at Line 14. At Line 11, it is called to get the source control plan object. At Line 14, it is called to get the destination control plan object.
  • GAnyObjectChooserEditor and GAnyObjectChooser are two interesting classes. GAnyObjectChooserEditor is a later-addition. Originally there was only GAnyObjectChooser class. The helper class GAnyObjectChooserEditor is added to separate the chooser class and the editor class – a better design/refactoring but breaking some of the existing scripts . Basically, as its name indicates, it provides a user interface to choose an object of the specified type in Aimsun framework. You can see it in action in the following figure:
  • chooser.setType is the one responsible for specifying what type of objects that the Editor dialog should present.

In summary – Aimsun python scripting engine are able to:

  1. Dynamically bind a script to any objects during run-time;
  2. Inside the script engine, Aimsun provides ready-made UI elements to facilitate the interactions between the end user and the Aimsun host. This allows productive and efficient workflow of simulation projects with the creative minds of a traffic modeler.
  3. Agree? Any thoughts, or Aimsun scripting experience to share?

This post has already been read 3278 times!

Comments are closed.