Export Territories Database (Territory Design)

License Level:BasicStandardAdvanced

Summary

Exports a Territory database to an external table.

Exporting a Territory database creates a territory assignment table.

Usage

Syntax

ExportTerritoriesDatabase_td (in_territory_solution_layer, in_al_id_field, in_dest_workspace, in_dest_table_name)
ParameterExplanationData Type
in_territory_solution_layer

The Territory Solution layer whose data is to be exported.

GP TD Layer
in_al_id_field

The ID Field of the Alignment Layer.

String
in_dest_workspace

The location of the destination workspace.

Workspace
in_dest_table_name

The name of the newly created table.

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.ExportTerritoriesDatabase_TD("new layer", "ID", "C:/Temp", "database.dbf")

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"
idfield = "ID"
workspace = "C:/Temp"
name = "database.dbf"

# Execute tool
gp.ExportTerritoriesDatabase_TD(solution, idfield, workspace, 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