Add Territory Level (Territory Design)

Доступно с лицензией Business Analyst.


Creates a new empty feature class to represent a level.


  • Specify an existing territory solution.

  • A new level is created above the base level. Base features are aggregated to the new level.

  • The %Number% variable determines where the integer number is placed, either after or before the territory name—for example, Territory %Number% produces Territory 1, Territory 2, and so forth, whereas %Number% Territory produces 1 Territory, 2 Territory, and so forth.

  • The default primary feature class for a base level with polygon features is Base Boundaries.

  • The default primary feature class for a base level with point features is Base Centers.


AddTerritoryLevel(in_territory_solution, level_name, {default_territory_name}, {primary_feature_class})
ParameterОбъяснениеТип данных

The input territory solution.

Group Layer; Feature Dataset; String

The name of the new territory level.


The name to be used as a prefix for new territories that will be created.


Specifies the class level that will be used for storing level attributes.

  • TERRITORY_BOUNDARIESPolygon features that represent the territory boundaries.
  • TERRITORY_CENTERS Point features that represent the territory centers.
  • BASE_BOUNDARIESPolygon features that represent the base-level feature boundaries.
  • BASE_CENTERSPoint features that represent the base-level feature centers.

Производные выходные данные

NameОбъяснениеТип данных

The updated territory solution.

Group Layer

Пример кода

AddTerritoryLevel example (Python window)

The following Python window script demonstrates how to use the AddTerritoryLevel tool.

import arcpy"Territory Solution", "Level1", "Territory", "BASE_BOUNDARIES")

Информация о лицензиях

  • Basic: Требуется Business Analyst
  • Standard: Требуется Business Analyst
  • Advanced: Требуется Business Analyst

Связанные разделы