24.08.2013 Views

VISSIM 5.30-05 User Manual

VISSIM 5.30-05 User Manual

VISSIM 5.30-05 User Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3 Program Handling<br />

3.5.2 Python as Script Language<br />

Example<br />

*.PYS<br />

<strong>VISSIM</strong> additionally supports Python besides VBA/VBS. Python is<br />

characterized by its very comfortable functions, e.g. for chart creation as well<br />

as for the development of functions of user surfaces. Python provides for the<br />

setup of a user guidance tailored to a particular project.<br />

Python and all additional libraries are open source programs without any<br />

confinements concerning their use.<br />

As a precondition, the Python interpreter and the PythonWin supplement<br />

providing Python with a COM functionality have to be installed first.<br />

PTV provides a library of scripts for a great variety of tasks. They can<br />

easily be used by the user and modified according to their own requirements.<br />

In the future, these scripts will be provided on the PTV website.<br />

As an example of the possibilities of the script language, the following<br />

example file serves for dynamic changes to the state of static 3D objects:<br />

58 <strong>VISSIM</strong> <strong>5.30</strong>-<strong>05</strong> © PTV AG 2011

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!