ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS 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
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Setup Level Balancing Variables

Available with Business Analyst license.

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Allows the setup of level balancing variables.

Usage

  • The Territory Level format is as follows: Level_Name[Level_Index]

  • Balancing Variables is an optional parameter. The pound sign, "#", may be specified to remove balancing variables from specified level.

    • Balancing variables can be specified in the following format: Variable Preference; ...
    • Variable – a name of any Summary-type field from an Alignment Layer for a specified Solution. Non-BDS layer’s variables have "_SUM" as a suffix (SUM calculator applied).
    • A preference must be specified for each variable. The range for each preference is from 0 to 100. The sum of all preferences must equal 100.

Syntax

arcpy.td.SetupLevelBalancingVariables_TD(in_territory_solution_layer, in_level, {in_balance_variables})
ParameterExplanationData Type
in_territory_solution_layer

The Territory Solution layer used to setup the parameters.

GP TD Layer
in_level

The Territory Level to modify.

String
in_balance_variables
[in_balance_variables,...]
(Optional)

The Balancing variable list and preferences.

GP Value Table

Code sample

SetupLevelBalancingVariables example (Python window)

The following Python window script demonstrates how to use the tool in immediate mode.

import arcgisscripting
gp = arcgisscripting.create()
gp.SetupLevelBalancingVariables_TD("new layer", "Territories[1]", "AREA_SUM 45;TOTPOP_CY_SUM 55")
SetupLevelBalancingVariables example 2 (stand-alone script)

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"
level = "Territories[1]"
balanceVars = "AREA_SUM 45;TOTPOP_CY_SUM 55"

# Execute tool
gp.SetupLevelBalancingVariables_TD(solution, level, balanceVars)

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: Requires Business Analyst
  • Standard: Requires Business Analyst
  • Advanced: Requires Business Analyst

Related topics

  • An Overview of the Setup Territory Solution Toolset
  • Create Territories
  • Setup Level Territory Shape Parameters
  • Setup Level Distance Constraints
  • Setup Solution Barriers
  • Setup Solution Restricted Areas

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal