属性
属性 | 说明 | 数据类型 |
functionType (只读) | 用于过滤器函数障碍的函数类型 - 例如,最小值、最大值或计数。 | String |
networkAttributeName (只读) | 用于过滤器函数障碍条件的网络属性的名称。 | String |
networkAttributeOperator (只读) | 用于过滤器函数障碍的运算符类型 - 例如,等于或小于。 | String |
useLocalValues (只读) | 过滤器函数障碍是否使用局部值进行追踪。
| Boolean |
value (只读) | 用于过滤器函数障碍的网络属性或类别的特定值。 | Integer |
代码示例
以下独立 Python 脚本可打印某些公共设施网络属性的报告。
# 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 Function Barrier Properties
print(" - Filter Function Barrier Properties - ")
for ffb in ust.filterFunctionBarriers:
try:
print(f"Name: {ffb.networkAttributeName}")
print(f"Type: {ffb.functionType}")
print(f"Operator: {ffb.networkAttributeOperator}")
print(f"Value: {ffb.value}")
print(f"Use Local Values: {ffb.useLocalValues} \n")
except:
print("Skipped filter function properties. \n")