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.

License

Standard

Syntax

Trace2Config (trace_configurations, execute, {output_script})

Parameter Explanation Data Type
trace_configurations Dialog Reference

The Trace Configurations to create.

  • Python - The python code for Trace.
  • Name - The name of the trace configuration that will be created.
  • Description - A short description of the trace. This is optional.
  • Tags - Keywords used during search. Enter multiple tags on newlines. This is optional.

GPValueTable
execute Dialog Reference

Option to immediately add the configurations

  • Checked - Add the trace configurations.
  • Unchecked - Generate the call to add the trace configuration in the script specified. This is the default.

GPBoolean
output_script (Optional) Dialog Reference

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

DEFile

Code Samples