Title Create Terminal Contingent Values
Creates contingent values for Utility Network terminal fields.
This tool creates contingent values on these sources and fields:
Source Field Logic Line FromDeviceTerminal Network Rules Line ToDeviceTerminal Network Rules Device TerminalConfiguration Assigned Terminal JunctionObject TerminalConfiguration Assigned Terminal
The necessary coded value domains will be created and assigned for the contingent values to work.
License
Basic
CreateUNTerminalContingentValues (network, folder, {apply_changes}, {remove_schema}, {terminal_fields})
Parameter | Explanation | Data Type |
---|---|---|
network |
Dialog Reference
The utility network |
GPUtilityNetworkLayer |
folder |
Dialog Reference
The output folder where the csv files and python script will be saved. A uniquely named folder ContingentValues will be created here. |
DEFolder |
apply_changes (Optional) |
Dialog Reference
Specifies if schema modifications are applied.
|
GPBoolean |
remove_schema (Optional) |
Dialog Reference
Specifies if the schema is added or removed.
|
GPBoolean |
terminal_fields (Optional) |
Dialog Reference
Additional SHORT fields on the domain device and junction object classes to assign contingent values. The fields must not have any network attribute assignments or have an existing domain assigned at the field level. |
GPString |
CreateUNTerminalContingentValues example 1 (Python window)
Create Contingent Value CSVs for the valid terminal combinations.
import arcpy
arcpy.udms.CreateUNTerminalContingentValues("Naperville Network", "D:/data/cav")
CreateUNTerminalContingentValues example 2 (stand-alone script)
Create Contingent Value CSVs for the valid terminal combinations.
import pathlib
import arcpy
un = "D:/data/network.gdb/UtilityNetwork/Network"
folder = pathlib.Path(un).parents[2] / "CAV"
folder.mkdir(parents=True, exist_ok=True)
result = arcpy.udms.CreateUNTerminalContingentValues(
network=un,
folder=str(folder),
apply_changes=True,
remove_schema=False,
)