Output Condition properties

サマリー

The properties below are returned by the outputConditions object when using Describe on a utility network.

Learn more about controlling what is returned by a trace operation

プロパティ

プロパティ説明データ タイプ
combineUsingOr
(読み取り専用)

Whether the output condition is using an Or condition for the combine using parameter.

  • True—The combine using parameter is using an Or condition.
  • False—The combine using parameter is not using an Or condition. This means the combine using parameter could be using the And condition, or no value if there are not multiple output conditions.

Boolean
isSpecificValue
(読み取り専用)

Whether the output condition is using a specific value to terminate the trace.

  • True—The output condition is set to a specific value.
  • False—The output condition is not set to a specific value.

Boolean
name
(読み取り専用)

The name of the network attribute or category used for the output condition—for example, Device status.

String
operator
(読み取り専用)

The operator used for the output condition—for example, is equal to or is greater than or equal to.

String
type
(読み取り専用)

The type of output condition used—for example, using a specific value or a network attribute.

String
value
(読み取り専用)

The specific value of the network attribute or category used for the output condition.

Integer

コードのサンプル

Utility network output conditions 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

        # Output Condition Properties
        print(" - Output Condition Properties - ")
        for oc in ust.outputConditions:
            # Try to get these properties if the exist, else, print the empty list
            try:
                print(f"Name: {oc.name}")
                print(f"Type: {oc.type}")
                print(f"Operator: {oc.operator}")
                print(f"Value: {oc.value}")
                print(f"CombineUsingOr: {oc.combineUsingOr}")
                print(f"Is Specific Value: {oc.isSpecificValue} \n")
            except:
                print("Skipped output condition properties. \n")