ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Export Territories Database

  • Summary
  • Usage
  • Syntax
  • Code Sample
  • Environments
  • Licensing Information

Summary

Exports a Territory database to an external table.

Exporting a Territory database creates a territory assignment table.

Usage

  • The Workspace must be one of the following types: database file (DBF), Personal Geodatabase (MDB), Geodatabase (GDB), Microsoft Excel workbook (XLSX)

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

Licensing Information

  • ArcGIS for Desktop Basic: Requires Business Analyst
  • ArcGIS for Desktop Standard: Requires Business Analyst
  • ArcGIS for Desktop Advanced: Requires Business Analyst

Related Topics

  • An Overview of the Export Territories Toolset
  • Create Territories
  • Create Territory Solution
  • Export Boundaries And Variables
  • Export Data And Territories
  • Export Territories To Trade Areas
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal