& 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
Applying a UPC script to a pump station and visualize the results.
Type:
Tutorial
Length:
5 min.
Tutorial resources
These downloadable resources will be used to complete this tutorial:
UPC scripts allow you to represent the valves and pump stations within a water supply system that may be controlled by a more complex set of rules with multiple conditions. This example uses a UPC script to set two different types of pump controls, depending on the time of day.
It is best practice to test UPC scripts in a scenario first, before altering a base model. To create a new scenario:
In the Scenarios toolbar, the Pump UPC scenario now appears selected in the drop-down.
Next, create a UPC script that sets two rules for this pump—one to turn the pump on and off to maintain a pressure between 31 and 33 meters at the hospital between 06:00 and 22:00; and another to maintain a pressure of 27 m at the furthest node in the network (END) between 22:00 and 06:00.
To run both scenarios:
To create a graph to visualize the results:
A graph window opens, showing the state of the pump in the different scenarios.
The base simulation pump remains on for the whole simulation, since its state is continuously set to 1. In the Pump UPC scenario, the pump turns on (1) and off (0) as the pressure at the specified control points change. Also note that a pump turning on and off with this frequency in reality could damage the distribution infrastructure, so the scheduling in this UPC might need to be refined.
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.