Trace2Config

Title  Trace to Trace Configurations

Description

Converts arcpy.un.Trace to arcpy.un.AddTraceConfiguration

Usage

To capture the python code, configure a Utility Network trace and copy the python command.
If the name of the trace configuration already exists, a number will be appended for uniqueness.
	

Syntax

Trace2Config (trace_configuration_name, trace_results, execute, {output_script})

Parameter Explanation Data Type
trace_configuration_name Dialog Reference

The names of the trace configurations to create. The number of names must match the number of trace calls.

GPString
trace_results Dialog Reference

The python code for Trace. Multiple traces can be entered

GPString
execute Dialog Reference

Option to immediately add the configurations

  • Checked - Add the trace configurations.
  • Unchecked - Do nothing. This is the default.

GPBoolean
output_script (Optional) Dialog Reference

Create a python script with the call to arcpy.un.AddTraceConfiguration.

DEFile

Code Samples

Tags

Credits

Use limitations