Using Python as the script language
A distinguishing feature of Python is its clear and understandable syntax. With this you can conveniently set up a prompt which is tailored to your project.
Python and all of the additional libraries are open source programs without usage restrictions.
|
Tip: You can download a current PTV Vision Python setup from the PTV website: |
|
Notes:
|
Example of a *.pys script file
all_flows = Vissim.Net.VehicleInputs.GetAll()
for i in range(len(all_flows)):
all_flows[i].SetAttValue("Volume(1)", 0.5 * all_flows[i].AttValue("Volume(1)"))
Superordinate topic: