Convert Geometric Network To Trace Network (Trace Network)

Summary

Converts a geometric network to a trace network.

Usage

  • When working with a file geodatabase, the input geodatabase workspace must be an ArcGIS 10.0 or later release to support this functionality.

  • When working with an enterprise geodatabase, the following are requirements:

    • The geodatabase version must be 10.8.1.2.6 or later.

    • The Input Geometric Network parameter value must be from a database connection established as the data owner to run this tool.
    • The trace network cannot be owned by an operating system-authenticated user or a database or geodatabase administrator account.

    Learn more about how to convert a geometric network

Parameters

LabelExplanationData Type
Input Geometric Network

The geometric network that will be converted to a trace network.

Caution:

Converting a geometric network to a trace network will drop the geometric network and create a trace network in its place. This change cannot be undone. Make a backup of your data before proceeding.

Geometric Network
Output Trace Network Name

The name of the output trace network.

String

Derived Output

LabelExplanationData Type
Output Trace Network

The output trace network.

Trace Network

arcpy.tn.ConvertGeometricNetworkToTraceNetwork(in_geometric_network, out_trace_network_name)
NameExplanationData Type
in_geometric_network

The geometric network that will be converted to a trace network.

Caution:

Converting a geometric network to a trace network will drop the geometric network and create a trace network in its place. This change cannot be undone. Make a backup of your data before proceeding.

Geometric Network
out_trace_network_name

The name of the output trace network.

String

Derived Output

NameExplanationData Type
out_trace_network

The output trace network.

Trace Network

Code sample

ConvertGeometricNetworkToTraceNetwork example (Python window)

Convert a geometric network named HydroGN to a trace network named HydroTN.

import arcpy
arcpy.ConvertGeometricNetworkToTraceNetwork_tn("C:\\MyTNProject\\NHD.gdb\Hydro\HydroGN",
                                               "HydroTN")

Environments

This tool does not use any geoprocessing environments.

Licensing information

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

Related topics