Skip to main content

添加追踪规则 (网络逻辑示意图工具)

汇总

可将逻辑示意图规则添加到逻辑示意图模板指定的规则序列中,以便在逻辑示意图构建过程中在公共设施网络或追踪网络上自动运行追踪。 由此产生的追踪网络要素和网络对象将用于构建逻辑示意图的内容。

了解有关使用“追踪”规则构建逻辑示意图的详细信息

注意:

该工具为配置和管理工具。

注:

该工具会影响基于输入逻辑示意图模板的任何现有逻辑示意图的一致性。 所有现有逻辑示意图都将变得不一致,并在打开时显示一致性警告图标 ,直到对其进行更新为止。

用法

  • 系统在使用公共设施网络或追踪网络服务时不支持此工具。 您必须使用文件或移动地理数据库中的公共设施网络或追踪网络,或者企业级地理数据库中公共设施网络或追踪网络的数据库连接。 当使用企业级地理数据库时,需要满足以下要求:

  • “追踪”规则可用于追踪逻辑示意图中当前表示的网络要素或网络对象,或者从作为输入或使用“设置起始点”规则指定的特定起始点运行追踪。

    根据指定的追踪类型,可以或必须在逻辑示意图中预设起点以执行追踪规则,如下所示:

    • 对于“已连接”、“子网”、“上游”、“下游”和“电路”追踪类型,除非逻辑示意图创建过程从作为输入提供的特定追踪位置开始,或者已在逻辑示意图模板上配置设置起点规则来预先明确标识特定起点,否则追踪规则启动时逻辑示意图中所表示的所有公共设施网络或追踪网络元素均视为追踪的起点。

    • 路径追踪类型必须具有一个或多个起始位置与终止位置,才能正常运行。 与其他追踪类型相比,路径追踪类型用作逻辑示意图追踪规则时具有特定要求,因为无法通过逻辑示意图规则指定终点。 要根据配置为应用路径追踪类型规则的逻辑示意图模板创建逻辑示意图,必须在运行创建逻辑示意图工具时选中根据追踪位置创建逻辑示意图参数。

      提示:

      配置最短路径网络属性名称参数后,可以计算指定起始位置和终止位置之间的最短路径,并以逻辑示意图形式显示检测到的最短路径。

  • 当基于追踪规则配置模板时,追踪将在每次更新逻辑示意图时在公共设施网络或追踪网络上系统地重新运行。 这表示任何基于该模板的逻辑示意图在更新时都将始终反应当前的网络追踪结果。

  • 从 Utility Network 版本 7 开始,您可以配置追踪规则来执行上游或下游追踪操作。这些操作使用线的数字化方向和 Flow direction 属性(而非子网控制器的位置)来确定流向。

  • 从 Utility Network 版本 7 和 Trace Network 版本 4 开始,您还可以使用指定追踪配置来配置追踪规则。

  • 从 ArcGIS Pro 3.6 开始,您可配置追踪规则,以根据网络属性或类别对输出资产类型或要素类型进行过滤。

  • 从 Utility Network 版本 8 开始,如果您的公共设施网络存在电信域,您则可以配置追踪规则,以在电信域上运行电路追踪。

参数

标注 说明 数据类型

输入网络

包含要修改的逻辑示意图模板的公共设施网络或追踪网络。

Utility Network; Trace Network

输入逻辑示意图模板

要修改的逻辑示意图模板名称。

String

活动

指定在基于指定模板生成并更新逻辑示意图时,规则是否将处于启用状态。

  • 选中—在基于输入模板生成并更新逻辑示意图的过程中,添加的规则将会变为启用状态。 这是默认设置。

  • 未选中—在基于输入模板生成或更新逻辑示意图的过程中,添加的规则将不会变为启用状态。

Boolean

追踪类型

请指定为了构建逻辑示意图内容将运行的追踪类型。

  • 已连接—当规则启动时,将从逻辑示意图中当前表示的公共设施网络或追踪网络元素开始运行已连接追踪,并沿连接元素向外扩展。 这是默认设置。

  • 子网—当规则启动时,将从逻辑示意图中当前表示的公共设施网络元素开始运行子网追踪,并沿连接元素向外扩展,以查找源或汇,然后从这些源或汇开始,沿相关子网向外扩展。

  • 上游—当规则启动时,将从逻辑示意图中当前表示的公共设施网络或追踪网络元素开始运行上游追踪,以发现上游元素。

  • 下游—当规则启动时,将从逻辑示意图中当前表示的公共设施网络或追踪网络元素开始运行下游追踪,以发现下游元素。

  • 最短路径—当规则启动时,将从逻辑示意图中当前指定为起点的公共设施网络或追踪网络要素开始运行最短路径追踪,以发现这些起点之间最短路径上的要素。 遍历路径的成本取决于为最短路径网络属性名称参数值设置的网络属性,与流向无关。

    旧版本:

    最短路径追踪类型在 ArcGIS Pro 3.7 和 ArcGIS Enterprise 12.1 中已弃用。 虽然该类型可继续使用并在下一个主要版本发布之前仍作为可用选项,但我们建议您使用路径追踪类型来返回最短路径。 路径追踪类型提供了返回最短路径结果的相同功能,同时还提供了在网络中查找路径的额外功能。

  • 电路—当规则启动时,将从逻辑示意图中当前表示的公共设施网络或追踪网络元素开始运行电路追踪。 该追踪将返回物理电路和虚拟电路的电路定义和路径信息。 仅电信域网络支持此选项。

  • 路径—将运行路径追踪,以识别逻辑示意图生成所用输入追踪位置的起点与终点之间的有效路径。

String

域网络

(可选)

针对公共设施网络运行追踪的域网络名称。 运行子网、上游、下游和电路追踪类型时,此参数为必填项。

String

层

(可选)

针对公共设施网络开始追踪的层名称。 运行已连接追踪类型时可以使用此参数;运行子网、上游和下游追踪类型时必须使用此参数。

String

目标层

(可选)

公共设施网络输入层流向的目标层名称。 如果上溯和下溯追踪的此参数丢失,当到达起始子网边界时,上述追踪将停止。 该参数可以使此类追踪在层级结构中继续向上或向下延伸。

String

包括结构

(可选)

指定追踪结果中是否包含结构要素和对象。

  • 选中—追踪结果中将包含结构要素和对象。

  • 未选中—追踪结果中将不包含结构要素和对象。 这是默认设置。

Boolean

包括障碍要素

(可选)

指定追踪结果中是否包含可遍历性障碍要素。 即使已在子网定义中进行了预设,可遍历性障碍仍可选。 此参数不适用于具备终端的设备要素。

  • 选中—追踪结果中将包含可遍历性障碍要素。 这是默认设置。

  • 未选中—追踪结果中将不包含可遍历性障碍要素。

Boolean

条件障碍

(可选)

基于与网络属性的比较或对类别字符串的检查,对要素设置可遍历性障碍条件。 条件障碍根据网络属性或类别、操作符、类型及属性值来定义。 例如,当要素的 Device Status 属性等于特定值 Open 时,将停止追踪。 当要素满足此条件时,追踪将停止。

值表列:

  • Name—Filter by any network attribute defined in the system.

  • Operator—Choose from a number of different operators.

    • Is equal to—The attribute is equal to the value.

    • Does not equal—The attribute is not equal to the value.

    • Is greater than—The attribute is greater than the value.

    • Is greater than or equal to—The attribute is greater than or equal to the value.

    • Is less than—The attribute is less than the value.

    • Is less than or equal to—The attribute is less than or equal to the value.

    • Includes the values (bitwise AND equals the value)—A bitwise AND operation in which all bits in the value are present in the attribute (bitwise AND == value).

    • Does not include the values (bitwise AND does not equal the value)—A bitwise AND operation in which not all of the bits in the value are present in the attribute (bitwise AND != value).

    • Includes any (bitwise AND equals True)—A bitwise AND operation in which at least one bit in the value is present in the attribute (bitwise AND == True).

    • Does not include any (bitwise AND equals False)—A bitwise AND operation in which none of the bits in the value are present in the attribute (bitwise AND == False).

  • Type—Choose a specific value or network attribute from the value that is specified with the name.

    • Specific value—Filter by a specific value.

    • Network attribute—Filter by a network attribute.

  • Value—Provide a specific value for the input attribute type that would cause termination based on the operator value.

  • Combine Using—Set this value if you have multiple attributes to add. You can combine them using an And or an Or condition.

    • And—Combine the condition barriers.

    • Or—Use if either condition barrier is met.

Value Table

函数障碍

(可选)

基于函数对要素设置可遍历性障碍。 函数障碍可用于执行以下操作:限制追踪距离起点的行程或设置停止追踪的最大值。 例如,所经过的每条线的长度和为目前经过的总距离。 当经过的总长度达到指定值时,追踪将停止。

值表列:

  • Function—Choose from a number of different calculation functions.

    • Minimum—The minimum of the input values will be used.

    • Maximum—The maximum of the input values will be used.

    • Average—The average of the input values will be used.

    • Count—The number of features will be used.

    • Add—The sum of the values will be used.

    • Subtract—The difference between the values will be used. Subnetwork controllers and loops trace types do not support the subtract function.

  • Attribute—Filter by any network attribute defined in the system.

  • Operator—Choose from a number of different operators.

    • Is equal to—The attribute is equal to the value.

    • Does not equal—The attribute is not equal to the value.

    • Is greater than—The attribute is greater than the value.

    • Is greater than or equal to—The attribute is greater than or equal to the value.

    • Is less than—The attribute is less than the value.

    • Is less than or equal to—The attribute is less than or equal to the value.

    • Includes the values (bitwise AND equals the value)—A bitwise AND operation in which all bits in the value are present in the attribute (bitwise AND == value).

    • Does not include the values (bitwise AND does not equal the value)—A bitwise AND operation in which not all of the bits in the value are present in the attribute (bitwise AND != value).

    • Includes any (bitwise AND equals True)—A bitwise AND operation in which at least one bit in the value is present in the attribute (bitwise AND == True).

    • Does not include any (bitwise AND equals False)—A bitwise AND operation in which none of the bits in the value are present in the attribute (bitwise AND == False).

  • Value—Provide a specific value for the input attribute type that, if discovered, will cause the termination.

  • Use Local Values—Calculate values in each direction as opposed to an overall global value. For example, a function barrier that is calculating the sum of Shape length in which the trace terminates if the value is greater than or equal to 4. In the global case, after you traverse two edges with a value of 2, you will have reached a shape length sum of 4, so the trace stops. If local values are used, the local values along each path change, and the trace continues.

Value Table

应用可遍历性至

(可选)

指定将强制使用的可遍历性的类型。 可遍历性范围用于定义是否在交汇点和/或边处强制使用可遍历性。 例如,如果定义了用于停止追踪的条件障碍,其中 Device Status 等于 Open 并将遍历范围仅设置为边,则即使追踪遇到开路设备,追踪也不会停止,因为 Device Status 仅适用于交汇点。 换言之,此参数会为追踪指明是否要忽略交汇点和/或边。

  • Both junctions and edges—可遍历性将同时应用于交汇点和边。

  • Junctions only—可遍历性将仅应用于交汇点。

  • Edges only—可遍历性将仅应用于边。

  • 交汇点和边—可遍历性将同时应用于交汇点和边。 这是默认设置。

  • 仅交汇点—可遍历性将仅应用于交汇点。

  • 仅边—可遍历性将仅应用于边。

String

过滤器障碍

(可选)

用于指定针对特定类别或网络属性的追踪停止时间。 例如,针对生命周期状态属性等于特定值的要素,追踪停止。 此参数用于根据系统中定义的网络属性值设置终止符。

值表列:

  • Name—Filter by category or any network attribute defined in the system.

  • Operator—Choose from a number of different operators.

    • Is equal to—The attribute is equal to the value.

    • Does not equal—The attribute is not equal to the value.

    • Is greater than—The attribute is greater than the value.

    • Is greater than or equal to—The attribute is greater than or equal to the value.

    • Is less than—The attribute is less than the value.

    • Is less than or equal to—The attribute is less than or equal to the value.

    • Includes the values (bitwise AND equals the value)—A bitwise AND operation in which all bits in the value are present in the attribute (bitwise AND == value).

    • Does not include the values (bitwise AND does not equal the value)—A bitwise AND operation in which not all of the bits in the value are present in the attribute (bitwise AND != value).

    • Includes any (bitwise AND equals True)—A bitwise AND operation in which at least one bit in the value is present in the attribute (bitwise AND == True).

    • Does not include any (bitwise AND equals False)—A bitwise AND operation in which none of the bits in the value are present in the attribute (bitwise AND == False).

  • Type—Choose a specific value or network attribute from the value that is specified with the name.

    • Specific value—Filter by a specific value.

    • Network attribute—Filter by a network attribute.

  • Value—Provide a specific value of the input attribute type that would cause termination based on the operator value.

  • Combine Using—Set this value if you have multiple attributes to add. You can combine them using an And or an Or condition.

    • And—Combine the condition barriers.

    • Or—Use if either condition barrier is met.

Value Table

过滤器函数障碍

(可选)

用于过滤特定类别的追踪结果。

值表列:

  • Function—Filter by a function.

    • Minimum—The minimum of the input values will be used.

    • Maximum—The maximum of the input values will be used.

    • Average—The average of the input values will be used.

    • Count—The number of features will be used.

    • Add—The sum of the values will be used.

    • Subtract—The difference between the values will be used. Subnetwork controllers and loops trace types do not support the subtract function.

  • Attribute—Filter by a network attribute.

  • Operator—Filter by an operator.

    • Is equal to—The attribute is equal to the value.

    • Does not equal—The attribute is not equal to the value.

    • Is greater than—The attribute is greater than the value.

    • Is greater than or equal to—The attribute is greater than or equal to the value.

    • Is less than—The attribute is less than the value.

    • Is less than or equal to—The attribute is less than or equal to the value.

    • Includes the values (bitwise AND equals the value)—A bitwise AND operation in which all bits in the value are present in the attribute (bitwise AND == value).

    • Does not include the values (bitwise AND does not equal the value)—A bitwise AND operation in which not all of the bits in the value are present in the attribute (bitwise AND != value).

    • Includes any (bitwise AND equals True)—A bitwise AND operation in which at least one bit in the value is present in the attribute (bitwise AND == True).

    • Does not include any (bitwise AND equals False)—A bitwise AND operation in which none of the bits in the value are present in the attribute (bitwise AND == False).

  • Value—Filter by a specific value.

  • Use Local Values—Boolean value to use local variables instead of a global variable.

Value Table

将过滤器应用于

(可选)

指定是否在交汇点、边或这两处应用特定类别的过滤器。 例如,如果定义了用于停止追踪的过滤器障碍,其中 Device Status 等于 Open 并将遍历范围设置为仅边,则即使追踪遇到开路设备,追踪也不会停止,因为 Device Status 仅适用于交汇点。 换言之,此参数会为追踪指明是否要忽略交汇点和/或边。

  • 交汇点和边—过滤器将同时应用于交汇点和边。 这是默认设置。

  • 仅交汇点—过滤器将仅应用于交汇点。

  • 仅边—过滤器将仅应用于边。

  • 交汇点和边—过滤器将同时应用于交汇点和边。 这是默认设置。

  • 仅交汇点—过滤器将仅应用于交汇点。

  • 仅边—过滤器将仅应用于边。

String

按 bitset 网络属性过滤

(可选)

将用于按 bitset 过滤的网络属性的名称。 此参数仅适用于上游、下游和循环追踪类型。 此参数可用于在追踪过程中添加特殊逻辑,以便追踪能够更好地反映真实世界的场景。 例如,对于循环追踪而言,Phases current 网络属性可以确定该循环是否为实际的电气循环(循环各处均由同一相供电,例如 A 相),并且追踪结果只返回实际的电气循环。 上游追踪的示例如下;如果追踪配电网络时指定 Phases current 网络属性,则追踪结果将只包含在网络属性中指定的有效路径,而不是所有路径。

String

按最近过滤

(可选)

指定是否使用 k-最近邻算法在给定距离内返回一些特定类型的要素。 可以提供计数、成本以及类别和/或资产类型的集合。

  • 选中—将使用 k 最近邻算法来返回计数、成本网络属性、最近类别或最近资产组/类型中指定的一定数量的要素。

  • 未选中—k 最近邻算法不会用于过滤结果。 这是默认设置。

Boolean

计数

(可选)

按最近过滤为选中状态时要返回的要素数量。

Long

成本网络属性

(可选)

当按最近过滤为选中状态时,将用于计算接近度、成本或距离的数值型网络属性(例如形状长度)。

String

最近类别

(可选)

当按最近过滤处于选中状态时,将返回的类别(例如保护类别)。

String

最近资产组/类型

(可选)

当按最近过滤处于选中状态时,将返回的资产组和资产类型,例如,ElectricDistributionDevice/Transformer/Step Down。

String

传播程序

(可选)

只能通过 Python 使用此参数。

值表列:

  • Attribute—Filter by any network attribute defined in the system.

  • Substitution Attribute—Use a substituted value instead of bitset network attribute values. Substitutions are encoded based on the number of bits in the network attribute being propagated. A substitution is a mapping of each bit in phase to another bit. For example, for Phase AC, one substitution could map bit A to B, and bit C to null. In this example, the substitution for 1010 (Phase AC) is 0000-0010-0000-0000 (512). The substitution captures the mapping so you know that Phase A was mapped to B and Phase C was mapped to null, and not the other way around (that is, Phase A was not mapped to null and Phase C was not mapped to B).

  • Function—Choose from a number of calculation functions.

    • Propagated bitwise AND—Compare the values from one feature to the next.

    • Propagated minimum—The minimum value will be used.

    • Propagated maximum—The maximum value will be used.

  • Operator—Choose from a number of operators.

    • Is equal to—The attribute is equal to the value.

    • Does not equal—The attribute is equal to the value.

    • Is greater than—The attribute is greater than the value.

    • Is greater than or equal to—The attribute is greater than or equal to the value.

    • Is less than—The attribute is less than the value.

    • Is less than or equal to—The attribute is less than or equal to the value.

    • Includes the values (bitwise AND equals the value)—A bitwise AND operation in which all bits in the value are present in the attribute (bitwise AND == value).

    • Does not include the values (bitwise AND does not equal the value)—A bitwise AND operation in which not all of the bits in the value are present in the attribute (bitwise AND != value).

    • Includes any (bitwise AND equals True)—A bitwise AND operation in which at least one bit in the value is present in the attribute (bitwise AND == True).

    • Does not include any (bitwise AND equals False)—A bitwise AND operation in which none of the bits in the value are present in the attribute (bitwise AND == False).

  • Value—Provide a specific value for the input attribute type that would cause termination based on the operator value.

Value Table

描述

(可选)

规则的描述。

String

允许不确定的流

(可选)

指定是否将追踪具有不确定或未初始化流向的追踪网络要素。 此参数仅在运行上游追踪或下游追踪类型时使用。

  • 选中—将包含追踪中具有不确定流向或未初始化流向的追踪网络要素。

  • 未选中—不包含具有不确定流向或未初始化流向的追踪网络要素。 这是默认设置。

Boolean

路径方向

(可选)

指定追踪网络中最短路径的方向。 遍历路径的成本取决于最短路径网络属性名称参数值。 仅在针对追踪网络应用最短路径追踪类型时,才会使用此参数。

  • 无方向—最短路径位于两个起点之间,无论流向如何。 这是默认设置。

  • 上游路径—最短路径方向将是两个起点之间的上游方向。

  • 下游路径—最短路径方向将是两个起点之间的下游方向。

String

最短路径网络属性名称

(可选)

在使用路径或最短路径追踪类型时,用于计算公共设施网络或追踪网络最短路径的网络属性。 运行最短路径追踪类型时,使用数字网络属性(例如形状长度)计算最短路径。 基于成本和距离的路径都可以进行计算。 运行最短路径追踪时,需要此参数。

String

使用追踪配置

(可选)

指定是否将使用现有指定追踪配置来定义追踪的属性。 此参数仅适用于 Utility Network 版本 7 及更高版本。

  • 选中—将使用现有指定追踪配置来定义追踪的属性。

  • 未选中—不使用现有指定追踪配置来定义追踪的属性。 这是默认设置。

Boolean

追踪配置名称

(可选)

将用于定义追踪属性的现有指定追踪配置的名称。 仅当选中使用追踪配置参数时,才启用此参数。

String

使用数字化方向

(可选)

指定上游和下游追踪操作是否将使用线的数字化方向和流向属性来确定流量。 当追踪类型参数设置为上游或下游选项时,此参数仅适用于 Utility Network 版本 7 及更高版本。

注:

使用企业级地理数据库时,此参数需要 ArcGIS Enterprise 11.3 或更高版本。

  • 选中—追踪操作将使用线的数字化方向和流向属性来确定流向。 选中此项后,域网络、层和目标层参数将被禁用。

  • 未选中—跟踪操作将根据子网控制器的位置确定流向。 这是默认设置。

Boolean

输出资产类型

(可选)

过滤要包含在结果中的输出资产类型 - 例如,仅返回架空变压器。

String

输出条件

(可选)

按网络属性或类别返回的要素类型。 例如,如果将追踪配置为“过滤掉除水龙头要素外的所有要素”,那么未分配水龙头类别的追踪要素均不会包含在结果中。 任何追踪的要素都会返回到结果选择集中。

值表列:

  • Name—Filter by network attribute name.

  • Operator—Filter by an operator.

    • Is equal to—The attribute is equal to the value.

    • Does not equal—The attribute is not equal to the value.

    • Is greater than—The attribute is greater than the value.

    • Is greater than or equal to—The attribute is greater than or equal to the value.

    • Is less than—The attribute is less than the value.

    • Is less than or equal to—The attribute is less than or equal to the value.

    • Includes the values (bitwise AND equals the value)—A bitwise AND operation in which all bits in the value are present in the attribute (bitwise AND == value).

    • Does not include the values (bitwise AND does not equal the value)—A bitwise AND operation in which not all of the bits in the value are present in the attribute (bitwise AND != value).

    • Includes any (bitwise AND equals True)—A bitwise AND operation in which at least one bit in the value is present in the attribute (bitwise AND == True).

    • Does not include any (bitwise AND equals False)—A bitwise AND operation in which none of the bits in the value are present in the attribute (bitwise AND == False).

  • Type—Filter by a specific type.

    • Specific value—Filter by a specific value.

    • Network attribute—Filter by a network attribute.

  • Value—Filter by a specific value.

  • Combine Using—Use this parameter to combine multiple conditions.

    • And—Combine the conditions.

    • Or—Use if either condition is met.

Value Table

路径数

(可选)

路径或电路追踪中将返回的最大路径数。 默认值为 1。 仅当追踪类型参数设置为路径或电路时,此参数才处于活动状态。

Long

最大跳数

(可选)

路径或电路中允许的边之间的最大跳数(不包括起点)。 所有边以及交汇点-交汇点连通性关联在遍历时均被评估为具有固定单位长度 1。 终端设备被评估为具有固定单位长度 2。 默认值为 100。 仅当追踪类型参数设置为路径或电路时,此参数才处于活动状态。

Long

推断连通性

(可选)

指定路径追踪是否将使用连通性推断来遍历包含关联并识别指定的起始位置与停止位置之间的路径。 仅电信域网络中的路径追踪支持此参数,可实现在未明确提供连通性信息时发现分段间的路径。 有关详细信息,请参阅推断连通性。

  • 选中—当连通性不完整阻碍遍历时,路径追踪将使用连通性推断来遍历包含关联并识别指定的起始位置与停止位置之间的路径。

  • 未选中—将不会使用连通性推断来识别指定的起始位置与停止位置之间的路径。 这是默认设置。

Boolean

派生输出

标注 说明 数据类型

输出网络

已更新的公共设施网络或追踪网络。

Utility Network; Trace Network

输出逻辑示意图模板

逻辑示意图模板的名称。

String

环境

此工具不使用任何地理处理环境。

许可信息

  • 基本: 否
  • 标准: 是
  • 高级: 是