Summary
Converts a geometric network to a trace network.
Usage
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 Input Geometric Network 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, database, or geodatabase administrator accounts.
Syntax
arcpy.tn.ConvertGeometricNetworkToTraceNetwork(in_geometric_network, out_trace_network_name)
Parameter | Explanation | Data 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
Name | Explanation | Data Type |
out_trace_network | The output trace network. | Trace Network |
Code sample
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