Available with Business Analyst license.
Adds a new field at the specified level.
Fields that are added will be based on a numeric field from the level below the territory level and will be calculated based on the type of statistic specified by the user.
The variable is added to any level above the base or alignment level .
All numeric fields are supported.
AddLevelVariables(in_territory_solution, level, base_level, variables)
The input territory solution.
|Group Layer; Feature Dataset; String|
The level to which the calculated field will be added.
The level below the territory level from which the attribute value will be added.
[[statistic, statistic_field, field_name, field_alias_name],...]
The variables that will be added to the level.
The updated territory solution.
The following Python window script demonstrates how to use the AddLevelVariables tool.
import arcpy arcpy.td.AddLevelVariables("TD", "Territory", "BaseLevel", "populationtotals_totpop_cy SUM TotalPopulation 'Total Pop'")
- Basic: Requires Business Analyst
- Standard: Requires Business Analyst
- Advanced: Requires Business Analyst