Create Trace Network (Trace Network)


Creates a trace network.

A trace network dataset is created based on the input point and line feature classes that will participate in the trace network.


  • An existing feature dataset must be specified for the Input Feature Dataset parameter.

  • The input feature dataset must reside in a file geodatabase.

  • The feature classes must reside in the same feature dataset as the trace network.

  • At least an input junction or an input edge is required.

  • Only point and line feature classes are supported as input. The feature classes cannot participate in another trace network or other advanced geodatabase functionality such as a topology or network dataset.

    Learn more about how to create a trace network


CreateTraceNetwork(in_feature_dataset, in_trace_network_name, {input_junctions}, {input_edges})
ParameterExplanationData Type

The feature dataset that will contain the trace network.

Feature Dataset

The name of the trace network that will be created.


The names of the point feature classes in the feature dataset to include in the trace network.

[[Class Name, Connectivity Policy],...]

The line feature classes and associated connectivity policy to include in the trace network.

  • Class Name—The name of the line feature class in the feature dataset to include in the trace network.
  • Connectivity Policy—The associated connectivity policy of the specified feature class.
    • SIMPLE_EDGE—Allows resources to flow from one end of the edge and out the other end.
    • COMPLEX_EDGE—Allows resources to be siphoned off along the length of the edge.

Value Table

Derived Output

NameExplanationData Type

The output trace network.

Trace Network

Code sample

CreateTraceNetwork example (Python window)

Create a new trace network named HydroNetwork.

import arcpy
                            ["AdditionalJunctions", "HydroJunctions", "PourPoints"], 
                            [["BlackLines", "SIMPLE_EDGE"], ["HydroLines", "COMPLEX_EDGE"]])


This tool does not use any geoprocessing environments.

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes

Related topics