Export Territories Database (Territory Design)
Resumen
Exports a Territory database to an external table.
Exporting a Territory database creates a territory assignment table.
Uso
-
The Workspace must be one of the following types: database file (DBF), Personal Geodatabase (MDB), Geodatabase (GDB), Microsoft Excel workbook (XLSX)
Sintaxis
ExportTerritoriesDatabase_td (in_territory_solution_layer, in_al_id_field, in_dest_workspace, in_dest_table_name)
Parámetro | Explicación | Tipo de datos |
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 |
Ejemplo de código
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)
Entornos
Esta herramienta no utiliza ningún entorno de geoprocesamiento.
Temas relacionados
Información sobre licencias
ArcGIS for Desktop Basic: Requiere Business Analyst
ArcGIS for Desktop Standard: Requiere Business Analyst
ArcGIS for Desktop Advanced: Requiere Business Analyst
4/26/2014