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.
- Ensure that the desired default Python environment is selected (Defining default Python environment for script files).
|
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: