Domain Network properties

AllSource 1.4    |

サマリー

The following properties are returned by the domainNetworks object in a utility network.

Learn more about domain networks

注意:

Tier and subnetwork properties apply only to traditional domain networks.

プロパティ

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

The date and time that the domain network was created.

DateTime
domainNetworkAliasName
(読み取り専用)

If the domain network has an alias, this property will return the domain network alias name.

String
domainNetworkID
(読み取り専用)

The ID of the network domain.

Integer
domainNetworkName
(読み取り専用)

The name of the domain network.

String
edgeSources
(読み取り専用)

The domain network edgeSources object. This object can be used to retrieve information about the edge sources in the domain network.

Object
isStructureNetwork
(読み取り専用)

Specifies whether the domain network is a structure network.

  • True—The domain network is a structure network
  • False—The domain network is not a structure network.

Boolean
junctionSources
(読み取り専用)

The domain network junctionSources object. This object can be used to retrieve information about the junction sources in the domain network.

Object
releaseNumber
(読み取り専用)

The release number when the domain network was created.

Integer
subnetworkControllerType
(読み取り専用)

The subnetwork controller type for the traditional domain network—for example, source or sink.

String
subnetworkLabelFieldName
(読み取り専用)

The name of the field used for subnetwork labels in the traditional domain network.

String
subnetworkTableName
(読み取り専用)

The name of the subnetwork table for the traditional domain network.

String
tierDefinition
(読み取り専用)

The tier definition for the traditional domain network—for example, hierarchical or partitioned.

String
tierGroups
(読み取り専用)

The traditional domain network tierGroups object. This object can be used to retrieve information about the tier groups of the domain network. This property is only available for hierarchical tier definitions in a traditional domain network.

Object
tiers
(読み取り専用)

The domain network tiers object. This object can be used to retrieve information about the tiers in a traditional domain network.

Object

コードのサンプル

Utility network domain network properties example (stand-alone script)

This stand-alone Python script prints a report of traditional domain network properties in a utility network.

'''****************************************************************************
Name:        DescribeUtilityNetworkProperties.py
Description: This script reports the properties of a utility network
Created by:  Esri
****************************************************************************'''

# Import required modules
import arcpy

# Describe function on a Utility Network
UN = "C:\\MyProject\\databaseConn.sde\\mygdb.USER1.Naperville\\mygdb.USER1.ElectricNetwork"
d = arcpy.Describe(UN)

# Domain Network properties
domnets = d.domainNetworks
for dom in domnets:
    print("*** - Domain Network properties - ***")
    print(f"Creation Time: {dom.creationTime}")
    print(f"Release Number: {dom.releaseNumber}")
    print(f"Is Structure Network: {dom.isStructureNetwork}")
    print(f"Domain Network ID: {dom.domainNetworkId}")
    print(f"Domain Network Name: {dom.domainNetworkName}")
    print(f"Domain Network Alias Name: {dom.domainNetworkAliasName}")
    print(f"Subnetwork Table Name: {dom.subnetworkTableName}")
    print(f"Subnetwork Label Field Name: {dom.subnetworkLabelFieldName}")
    print(f"Tier Definition: {dom.tierDefinition}")
    print(f"Subnetwork Controller Type: {dom.subnetworkControllerType} \n")
    
    # Tier Group properties
    for tierGroup in dom.tierGroups:
        print(f"*** - Tier Group properties - ***")
        print(f"Tier Group Name: {tierGroup.name}")
        print(f"Tier Group Creation Time: {tierGroup.creationTime}")