Summary
Enables a network topology for a trace network.
A network topology is necessary for analytic operations such as tracing. A network topology can also be enabled to discover error features.
Usage
All trace network feature classes must have a spatial index.
Syntax
EnableNetworkTopology(in_trace_network, {max_number_of_errors}, {only_generate_errors})
Parameter | Explanation | Data Type |
in_trace_network | The trace network for which the network topology will be enabled. | Trace Network; Trace Network Layer |
max_number_of_errors (Optional) | The maximum number of errors before the process of enabling the network topology will stop, and errors will be recorded in the errors table. The default value is 10000. Caution:Increasing the maximum number of errors value will increase the length of time to enable the topology. Setting a value higher than the default value of 10000 is not recommended. | Long |
only_generate_errors (Optional) | Specifies whether only network errors will be generated.
| Boolean |
Derived Output
Name | Explanation | Data Type |
out_trace_network | The updated trace network. | Trace Network |
Code sample
Enable the network topology for a trace network called MyNetwork and set the maximum number of errors to 500 using the EnableNetworkTopology function.
import arcpy
arcpy.EnableNetworkTopology_tn('MyNetwork', 500)
Only generate errors for a trace network called MyNetwork using the EnableNetworkTopology function.
import arcpy
arcpy.EnableNetworkTopology_tn('MyNetwork', '', 'ONLY_ERRORS')
Environments
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes