Add Trace Rule (Network Diagram Tools)
Summary
Adds a diagram rule to the rule sequence specified on a diagram template to automatically run a trace on a utility network or trace network during diagram building. The resulting traced network features and network objects are used to build the diagram content.
Learn more about using the Trace rule to build diagrams
Caution:
This tool is a configuration and administration tool.
Note:
This tool impacts the consistency of any existing diagrams based on the input diagram template. All of the existing diagrams become inconsistent and open with a consistency warning icon
until they are updated.
Usage
This tool is not supported when working with a utility network or trace network service. You must use either a utility network or trace network in a file or mobile geodatabase, or a database connection to a utility network or trace network in an enterprise geodatabase. When working with an enterprise geodatabase, the following are requirements:
The Input Network parameter value must be from a database connection established as the database utility network owner or database trace network owner.
The connected ArcGIS Enterprise portal account must be the portal utility network owner or portal trace network owner.
This tool must be connected to the default version, which is expected to be public and not protected.
The Trace rule is used to run a trace from network features or network objects currently represented in a diagram or from particular starting points specified either as input or using a Set Starting Point rule.
Depending on the specified trace type, starting points may or must be preset in the diagram to perform the Trace rule as follows:
For the Connected, Subnetwork, Upstream, Downstream, and Circuit trace types, all the utility network or trace network elements represented in the diagram when the trace rule starts are considered the starting points for the trace, unless the diagram creation starts from particular trace locations provided as input or a Set Starting Point rule is configured on the diagram template to clearly identify specific starting points beforehand.
The Path trace type must have one or more starting and stopping locations to properly work. The Path trace type has specific requirements when used as a diagram Trace rule compared to the other trace types because stopping points cannot be specified through diagram rules. To create diagrams based on a diagram template configured to apply a Path trace type rule, the Create Diagram tool must run with the Create diagram from trace locations parameter checked.
Tip:
Configuring the Shortest Path Network Attribute Name parameter allows to calculate the shortest path between the specified starting and stopping locations and display the detected shortest path as a diagram.
When you configure a template based on a Trace rule, the trace will systematically rerun on the utility network or trace network at each diagram update. This means that any diagram based on that template will always reflect the current network trace result when updated.
Starting at Utility Network version 7, you can configure Trace rules to run upstream or downstream trace operations that determine flow using the digitized direction of the lines and the
Flow directionattribute rather than the location of the subnetwork controllers.Starting at Utility Network version 7 and Trace Network version 4, you can also configure Trace rules using named trace configurations.
Starting at ArcGIS Pro 3.6, you can configure the Trace rule to filter the output asset types or the type of features based on network attributes or category to return.
Starting at Utility Network version 8, if your utility network exists with Telecom domains, you can configure a Trace rule to run circuit traces on a telecom domain.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Network |
The utility network or trace network containing the diagram template that will be modified. |
Utility Network; Trace Network |
|
Input Diagram Template |
The name of the diagram template that will be modified. |
String |
|
Active |
Specifies whether the rule will be enabled when generating and updating diagrams based on the specified template.
|
Boolean |
|
Trace Type |
Specifies the type of trace that will be run to build the diagram content.
|
String |
|
Domain Network (Optional) |
The name of the domain network where the trace will be run for a utility network. This parameter is required when running the subnetwork, upstream, downstream, and circuit trace types. |
String |
|
Tier (Optional) |
The name of the tier where the trace will start for a utility network. This parameter is optional when running the connected trace type; it is required when running the subnetwork, upstream, and downstream trace types. |
String |
|
Target Tier (Optional) |
The name of the target tier to which the input tier will flow for a utility network. If this parameter is missing for upstream and downstream traces, those traces will stop when they reach the boundary of the starting subnetwork. This parameter can be used to allow these traces to continue either farther up or farther down the hierarchy. |
String |
|
Include Structures (Optional) |
Specifies whether structure features and objects will be included in the trace results.
|
Boolean |
|
Include Barriers Features (Optional) |
Specifies whether the traversability barrier features will be included in the trace results. Traversability barriers are optional even if they have been preset in the subnetwork definition. This parameter does not apply to device features with terminals.
|
Boolean |
|
Condition Barriers (Optional) |
Sets a traversability barrier condition on features based on a comparison to a network attribute or check for a category string. A condition barrier uses a network attribute or network category, an operator and a type, and an attribute value. For example, stop a trace when a feature has the Value table columns:
|
Value Table |
|
Function Barriers (Optional) |
Sets a traversability barrier on features based on a function. Function barriers can be used to do such things as restrict how far the trace travels from the starting point, or set a maximum value to stop a trace. For example, the length of each line traveled is added to the total distance traveled so far. When the total length traveled reaches the value specified, the trace stops. Value table columns:
|
Value Table |
|
Apply Traversability To (Optional) |
Specifies the type of traversability that will be enforced. Traversability scope defines whether traversability will be enforced at junctions, edges, or both. For example, if a condition barrier is defined to stop the trace if Device Status is equal to Open and traversability scope is set to edges only, the trace will not stop—even if it encounters an open device—because Device Status is only applicable to junctions. In other words, this parameter indicates to the trace whether to ignore junctions, edges, or both.
|
String |
|
Filter Barriers (Optional) |
Specifies when the trace will stop for a specific category or network attribute. For example, stop a trace at features that have a life cycle status attribute that is equal to a certain value. This parameter is used to set a terminator based on a value of a network attribute that is defined in the system. Value table columns:
|
Value Table |
|
Filter Function Barriers (Optional) |
Filters the results of the trace for a specific category. Value table columns:
|
Value Table |
|
Apply Filter To (Optional) |
Specifies whether the filter for a specific category will be applied to junctions, edges, or both. For example, if a filter barrier is defined to stop the trace if Device Status is equal to Open and traversability scope is set to edges only, the trace will not stop—even if the trace encounters an open device—because Device Status is only applicable to junctions. In other words, this parameter indicates to the trace whether to ignore junctions, edges, or both.
|
String |
|
Filter by bitset network attribute (Optional) |
The name of the network attribute that will be used to filter by bitset. This parameter is only applicable to upstream, downstream, and loops trace types. This parameter can be used to add special logic during a trace so the trace more closely reflects real-world scenarios. For example, for a loops trace, the Phases current network attribute can determine if the loop is a true electrical loop (the same phase is energized all around the loop, that is, A) and return only real electrical loops for the trace results. An example for an upstream trace is when tracing an electric distribution network, specify a Phases current network attribute, and the trace results will only include valid paths that are specified in the network attribute, not all paths. |
String |
|
Filter by nearest (Optional) |
Specifies whether the k-nearest neighbors algorithm will be used to return a number of features of a certain type within a given distance. You can provide a count and a cost as well as a collection of categories, an asset type, or both.
|
Boolean |
|
Count (Optional) |
The number of features that will be returned when Filter by nearest is checked. |
Long |
|
Cost Network Attribute (Optional) |
The numeric network attribute that will be used to calculate nearness, cost, or distance when Filter by nearest is checked—for example, shape length. |
String |
|
Nearest Categories (Optional) |
The categories that will be returned when Filter by nearest is checked—for example, protective. |
String |
|
Nearest Asset Groups/Types (Optional) |
The asset groups and asset types that will be returned when Filter by nearest is checked—for example, ElectricDistributionDevice/Transformer/Step Down. |
String |
|
Propagators (Optional) |
This parameter is only available through Python. Value table columns:
|
Value Table |
|
Description (Optional) |
The description of the rule. |
String |
|
Allow Indeterminate Flow (Optional) |
Specifies whether trace network features that have indeterminate or uninitialized flow will be traced. This parameter is only honored when running an upstream or downstream trace type.
|
Boolean |
|
Path Direction (Optional) |
Specifies the direction of the shortest path for a trace network. The cost of traversing the path is determined by the Shortest Path Network Attribute Name parameter value. This parameter is only honored when applying a Shortest path trace type to a trace network.
|
String |
|
Shortest Path Network Attribute Name (Optional) |
The network attribute that will be used to calculate the shortest path using the path or shortest path trace type for a utility network or trace network. When running a shortest path trace type, the shortest path is calculated using a numeric network attribute such as shape length. Cost- and distance-based paths can both be achieved. This parameter is required when running a shortest path trace. |
String |
|
Use Trace Configuration (Optional) |
Specifies whether an existing named trace configuration will be used to define the properties of the trace. This parameter is only enabled for Utility Network version 7 and later.
|
Boolean |
|
Trace Configuration Name (Optional) |
The name of the existing named trace configuration that will be used to define the properties of the trace. This parameter is only active when the Use Trace Configuration parameter is checked. |
String |
|
Use Digitized Direction (Optional) |
Specifies whether upstream and downstream trace operations will determine flow using the digitized direction of the line and the flow direction attribute. This parameter is only enabled for Utility Network version 7 and later when the Trace Type parameter is set to the Upstream or Downstream option. Note:This parameter requires ArcGIS Enterprise 11.3 or later when using an enterprise geodatabase.
|
Boolean |
|
Output Asset Types (Optional) |
Filters the output asset types to be included in the results—for example, only return overhead transformers. |
String |
|
Output Conditions (Optional) |
The types of features that will be returned based on a network attribute or category. For example, in a trace configured to filter out everything but Tap features, any traced features that do not have the Tap category assigned to them are not included in the results. Any traced features that do are returned in the result selection set. Value table columns:
|
Value Table |
|
Num Paths (Optional) |
The maximum number of paths that will be returned in the path or circuit trace. The default is 1. This parameter is only active when the Trace Type parameter is set to Path or Circuit. |
Long |
|
Max Hops (Optional) |
The maximum number of hops between edges allowed in the path or circuit, excluding the starting point. All edges and junction-junction connectivity associations are evaluated as having a fixed unit length of 1 on traversal. Terminal devices are evaluated as having a fixed unit length of 2. The default is 100. This parameter is only active when the Trace Type parameter is set to Path or Circuit. |
Long |
|
Infer Connectivity (Optional) |
Specifies whether the path trace will use connectivity inference to traverse containment associations and identify a path between the specified starting and stopping location. This parameter is only supported with the path trace in telecom domain networks and enables paths to be discovered between sections when connectivity information is not explicitly available. For more information, see Infer Connectivity.
|
Boolean |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Output Network |
The updated utility network or trace network. |
Utility Network; Trace Network |
|
Output Diagram Template |
The name of the diagram template. |
String |
Environments
This tool does not use any geoprocessing environments.
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes