


Following this rule, version 5.4 becomes 540 and 6.0 becomes 600. The version number is obtained by multiplying the real Vissim version by 100. Regardless of which of the two options is picked, the call needs to specify the version of Vissim to start. To avoid such a problem, you can use the dynamic.Dispatch() method, which will first assign already opened Vissim instances before opening new ones. This can be problematic if you count on using more than one instance in parallel, since a single Vissim license can only handle 4 instances at a time. If a Vissim instance is already open, it will ignore it.

The former will prompt a new Vissim instance to open and assign it to the variable you specified. Two commands can be used to start Vissim: Dispatch() and dynamic.Dispatch() methods. As such, any version prior to Vissim 4.0 will not work, and the student and demo versions are striped of their COM interface.įor more information about what is a COM interface: (v=vs.85).aspx. The package to import is win32com.client.Īdditonnaly, it is important to note that in order to use Vissim through the COM interface, one needs to have a complete Vissim version installed. So far as using COM with python, one will need to run the win32com package, which is part of the PyWin32 Extension. The actual interaction between python and Vissim is taken care by each program's COM interface, and we thus only need to know the names of the objects that we want to access inside Vissim. Via COM, it is possible to access the data and the functions of Vissim. 1.4 The Evaluation, Simulation and Graphic objectsĪs found in the Vissim manual, an external program can communicate with Vissim via the COM interface, which is basically a Window's built-in interface designed to have programs interacting with each other by sharing their binary components.1.3 The Net object, and modifying parameters value.1 How to use Vissim via a python script.
