Condition Barrier properties
Summary
The properties below are returned by the conditionBarriers object when using Describe on a utility network.
Properties
| Property | Explanation | Data Type |
|---|---|---|
|
combineUsingOr (Read only) |
Whether the condition barrier is using an
|
Boolean |
|
isSpecificValue (Read only) |
Whether the condition barrier is using a specific value to terminate the trace.
|
Boolean |
|
name (Read only) |
The name of the network attribute or category used for the condition barrier—for example, |
String |
|
operator (Read only) |
The operator used for the condition barrier—for example, is equal to or is greater than or equal to. |
String |
|
type (Read only) |
The type of condition barrier used—for example, using a specific value or a network attribute. |
String |
|
value (Read only) |
The value of the network attribute or category used for the condition barrier. |
Integer |
Code sample
Utility network condition barriers properties example (stand-alone script)
This stand-alone Python script prints a report of some utility network properties.
# Import required modules
import arcpy
# Describe functions on a Utility Network
UN = "C:\\Projects\\MyProject\\unowner.sde\\Naperville.UNOWNER.Naperville\\Naperville.UNOWNER.Naperville"
d = arcpy.Describe(UN)
# Domain Network properties
domnets = d.domainNetworks
# For each domain network in the utility network
for dom in domnets:
print(f"Domain Network Name: {dom.domainNetworkName}")
# For each tier in the domain network
for tier in dom.tiers:
print(f"Tier Name: {tier.name}")
# Update Subnetwork Trace Configuration Properties
ust = tier.updateSubnetworkTraceConfiguration
# Condition Barrier Properties
print(" - Condition Barrier Properties - ")
for cb in ust.conditionBarriers:
try:
print(f"Name: {cb.name} ")
print(f"Type: {cb.type} ")
print(f"Operator: {cb.operator} ")
print(f"Value: {cb.value} ")
print(f"CombineUsingOr: {cb.combineUsingOr}")
print(f"Is Specific Value: {cb.isSpecificValue} \n")
except:
print("Skipped condition barrier properties. \n")