Create Territory Solution (Territory Design)

Lizenzstufe:BasicStandardAdvanced

Zusammenfassung

Creates a new Territory Solution with one empty territory level.

Verwendung

Syntax

CreateTerritorySolution_TD_td (in_alignment_layer, {in_display_field}, {in_level_name}, {in_territory_solution_location}, {in_territory_solution_name})
ParameterErläuterungDatentyp
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_level_name
(optional)

The name of the first territory level.

String
in_territory_solution_location
(optional)

The location of the Territory Solution.

String
in_territory_solution_name
(optional)

The name of the Territory Solution.

String

Codebeispiel

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)

Umgebung

Dieses Werkzeug verwendet keine Geoverarbeitungsumgebungen.

Verwandte Themen

Lizenzierungsinformationen

ArcGIS for Desktop Basic: Erfordert Business Analyst
ArcGIS for Desktop Standard: Erfordert Business Analyst
ArcGIS for Desktop Advanced: Erfordert Business Analyst
4/26/2014