Python as additional script language

Scripting and COM allow adding new functions to Visum and automating recurrent tasks.

Python is supported alongside other scripting environments. Python excels in providing easy-to-use functions for matrix editing. It also helps the user to easily create charts and design user interfaces. Python can be used to create a user interface tailored to a specific project.

Python and all additional libraries are open-source programs without any confinements concerning their use.

Setup

The precondition is the prior installation of the Python interpreter and the PythonWin supplement providing Python with a COM functionality.

You can install Python version 3.9.5. There is no more support for versions 2.x.

The Visum setup optionally installs a package of the Python basic system and useful additional libraries.

Documentation and example data

The directory ...\User\Public\Public documents\PTV Vision\PTV Visum 2022\COM\Examples_ComDocu\Python in your Visum installation contains sample files in Python.

The Python reference contains the documentation of the Python library VisumPy. The reference is included in the VisumCOM_ENG.chm file. You can open the file from within Visum via the menu Help > COM Help.