Summary
The properties below are returned by the filterBarriers object when using Describe on a utility network.
Properties
Property | Explanation | Data Type |
combineUsingOr (Read Only) | Whether the filter barrier is using an Or condition for the combine using parameter.
| Boolean |
isSpecificValue (Read Only) | Whether the filter 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 filter barrier—for example, Device status. | String |
operator (Read Only) | The operator used for the filter barrier—for example, is equal to or is greater than or equal to. | String |
type (Read Only) | The type of filter barrier used—for example, using a specific value or a network attribute. | String |
value (Read Only) | The specific value of the network attribute or category used for the filter barrier. | Integer |
Code sample
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
# Filter Barrier Properties
print(" - Filter Barrier Properties - ")
for filb in ust.filterBarriers:
try:
print(f"Name: {filb.name}")
print(f"Type: {filb.type}")
print(f"Operator: {filb.operator}")
print(f"Value: {filb.value}")
print(f"CombineUsingOr: {filb.combineUsingOr}")
print(f"Is Specific Value: {filb.isSpecificValue} \n")
except:
print("Skipped filter barrier properties. \n")