Create Territory Solution (Territory Design)

License Level:BasicStandardAdvanced

Summary

Tool creates a new Territory Solution with one empty territory level.

Usage

Syntax

CreateTerritorySolution_TD_td (in_alignment_layer, {in_display_field}, {in_level_name}, {in_territory_solution_location}, {in_territory_solution_name})
ParameterExplanationData Type
in_alignment_layer

Alignment Layer for new Territory Solution

Feature Layer
in_display_field
(Optional)

Display Field for Territory Solution

Field
in_level_name
(Optional)

Name of first territory level

String
in_territory_solution_location
(Optional)

Location of Territory Solution

String
in_territory_solution_name
(Optional)

Name of Territory Solution

String

Code Sample

CreateTerritorySolution example (Python window)

The following Python window script demonstrates how to use the tool in immediate mode.

import arcgisscripting
gp = arcgisscripting.create()
gp.CreateTerritorySolution_TD("esri_zip5", "NAME", "Territories", "C:/BA Output/Project/Default Project/Territories/", "new layer")
CreateTerritorySolution example2 (stand-alone script)

The following stand-alone script demonstrates how to use the tool.

# Import system modules
import arcgisscripting
gp = arcgisscripting.create()

# Set local variables
alignmentLayer = "esri_zip5"
displayField = "NAME"
levelName = "Territories"
solutionLocation = "C:/BA Output/Project/Default Project/Territories/"
solutionName = "new layer"

# Execute tool
gp.CreateTerritorySolution_TD(alignmentLayer, displayField, levelName, solutionLocation, solutionName)

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Requires Business Analyst
ArcGIS for Desktop Standard: Requires Business Analyst
ArcGIS for Desktop Advanced: Requires Business Analyst
10/12/2012