& Construction

Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
& Manufacturing

Professional CAD/CAM tools built on Inventor and AutoCAD
Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
Professional CAD/CAM tools built on Inventor and AutoCAD
Describing UPC scripts and how they are applied in WS Pro.
Type:
Tutorial
Length:
2 min.
Transcript
00:03
Generally, pumps and valves are controlled by a single rule through the Properties window in InfoWorks WS Pro.
00:11
However, in some cases, the status of a pump or valve may be controlled by a complex set of rules with multiple conditions.
00:18
For example, pump status may be controlled by the level in a reservoir,
00:23
with the levels at which the pump switches on and off varying throughout the day.
00:27
It can also be controlled by the pressure at various points in the network throughout different periods of the same day.
00:34
The modelling of complex controls must be carried out using user programmable control (UPC) scripts.
00:42
UPC allows you to change the state of control elements (regulators)
00:46
such as pumps and valves based on information from sensors or network objects elsewhere in the network.
00:52
For example, you can use the flow of a meter at a certain time
00:56
and the pressure at a customer point at another time to determine when a valve should be opened or closed.
01:02
UPC scripts are used to define logical controls for pump station and valve objects.
01:08
Scripts are stored in the Control Data object.
01:11
There are two types of scripts: local and global.
01:16
Local scripts are associated with a particular network object
01:20
and can be viewed and edited from the UPC Script page of the object property sheet.
01:25
Definitions in the local script are used only by the network object (local regulator) that the script is associated with.
01:32
Global scripts can be used to set up definitions and rules to be used by more than one network object.
01:38
All scripts for the network can be stored in a global script.
01:42
By default, a UPC script will override any other control data defined for an object.
Video transcript
00:03
Generally, pumps and valves are controlled by a single rule through the Properties window in InfoWorks WS Pro.
00:11
However, in some cases, the status of a pump or valve may be controlled by a complex set of rules with multiple conditions.
00:18
For example, pump status may be controlled by the level in a reservoir,
00:23
with the levels at which the pump switches on and off varying throughout the day.
00:27
It can also be controlled by the pressure at various points in the network throughout different periods of the same day.
00:34
The modelling of complex controls must be carried out using user programmable control (UPC) scripts.
00:42
UPC allows you to change the state of control elements (regulators)
00:46
such as pumps and valves based on information from sensors or network objects elsewhere in the network.
00:52
For example, you can use the flow of a meter at a certain time
00:56
and the pressure at a customer point at another time to determine when a valve should be opened or closed.
01:02
UPC scripts are used to define logical controls for pump station and valve objects.
01:08
Scripts are stored in the Control Data object.
01:11
There are two types of scripts: local and global.
01:16
Local scripts are associated with a particular network object
01:20
and can be viewed and edited from the UPC Script page of the object property sheet.
01:25
Definitions in the local script are used only by the network object (local regulator) that the script is associated with.
01:32
Global scripts can be used to set up definitions and rules to be used by more than one network object.
01:38
All scripts for the network can be stored in a global script.
01:42
By default, a UPC script will override any other control data defined for an object.
Generally, pumps and valves are controlled by a single rule through the Properties window in InfoWorks WS Pro. However, in some cases, the status of a pump or valve may be controlled by a complex set of rules with multiple conditions.
UPC allows you to change the state of control elements, or regulators, such as pumps and valves based on information from sensors or network objects elsewhere in the network.
UPC scripts are used to define logical controls for pump station and valve objects.
How to buy
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © 2025 Autodesk Inc. All rights reserved
Sign in for the best experience
Save your progress
Get access to courses
Receive personalized recommendations
May we collect and use your data?
Learn more about the Third Party Services we use and our Privacy Statement.May we collect and use your data to tailor your experience?
Explore the benefits of a customized experience by managing your privacy settings for this site or visit our Privacy Statement to learn more about your options.