Export Territories To Trade Areas (Territory Design)

License Level:BasicStandardAdvanced

Summary

Exports Territories to Business Analyst Trade Areas.

Exporting Territories allows Business Analyst to read the territory polygons within the Trade Area wizard.

Usage

Syntax

ExportTerritoriesToTradeAreas_td (in_territory_solution_layer, in_level, {in_export_territory}, {in_ta_name})
ParameterExplanationData Type
in_territory_solution_layer

The Territory Solution layer that is to be exported.

GP TD Layer
in_level

The Territory Level to export.

String
in_export_territory
(Optional)

The name of the territory to export (in specified format) or the keyword to export all territories from a specified level.

  • ALL_TERRITORIES_FROM_LEVEL export all territories from this level
String
in_ta_name
(Optional)

The name of the Trade Area.

String

Code Sample

The following Python window script demonstrates how to use Business Analyst geoprocessing tool in immediate mode.

import arcgisscripting
gp = arcgisscripting.create()
gp.ExportTerritoriesToTradeAreas_TD("new layer", "Territories[1]", "ALL_TERRITORIES_FROM_LEVEL", "New Trade Area")

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"
level = "Territories[1]"
territory = "ALL_TERRITORIES_FROM_LEVEL"
name = "New Trade Area"

# Execute tool
gp.ExportTerritoriesToTradeAreas_TD(solution, level, territory, name)

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