Import Territory Solution (Territory Design)

License Level:BasicStandardAdvanced

Summary

Creates a new Territory Solution based on an existing Solution and a new Alignment Layer.

The new Solution will contain territory hierarchy, variables, constraints, and other options from the base Territory Solution.

Usage

Syntax

ImportTerritorySolution_TD_td (in_territory_solution_layer, in_alignment_layer, {in_display_field}, {in_territory_solution_location}, {in_territory_solution_name})
ParameterExplanationData Type
in_territory_solution_layer

The Territory Solution layer from which to import.

GP TD Layer
in_alignment_layer

The Alignment Layer for the new Territory Solution.

Feature Layer
in_display_field
(Optional)

The Display Field for the Territory Solution.

Field
in_territory_solution_location
(Optional)

The Location of the Territory Solution.

String
in_territory_solution_name
(Optional)

The name of the Territory Solution.

String

Code Sample

ImportTerritorySolution_TD example (Python window)

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

import arcgisscripting
gp = arcgisscripting.create()
gp.ImportTerritorySolution_TD("new layer", "esri_zip5", "NAME", "C:/BA Output/Project/Default Project/Territories/", "new layer2")
ImportTerritorySolution_TD example 2 (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
solution = "new layer"
alignmentLayer = "esri_zip5"
displayField = "NAME"
solutionLocation = "C:/BA Output/Project/Default Project/Territories/"
solutionName = "new layer2"

# Execute tool
gp.ImportTerritorySolution_TD(solution, alignmentLayer, displayField, 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
3/25/2014