Setup Level Capacity Constraints (Territory Design)

License Level:BasicStandardAdvanced

Summary

Allows the setup of capacity constraints at a specified level.

Usage

Syntax

SetupCapacityConstraints_TD_td (in_territory_solution_layer, in_level, {in_capacity_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_capacity_variables
[in_capacity_variables,...]
(Optional)

The Capacity variables and preferences.

GP Value Table

Code Sample

SetupCapacityConstraints_TD example (Python window)

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

import arcgisscripting
gp = arcgisscripting.create()
gp.SetupLevelCapacityConstraints_TD("new layer", "Territories[1]", "AREA_SUM 10000 # # 45;TOTPOP_CY_SUM # 3000000 5000000 55")
SetupCapacityConstraints_TD example 2 (stand-alone script)

l

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]"
capacityVars = "AREA_SUM 10000 # # 45;TOTPOP_CY_SUM # 3000000 5000000 55"

# Execute tool
gp.SetupLevelCapacityConstraints_TD(solution, level, capacityVars)

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Requires Business Analyst
ArcGIS for Desktop Standard: Requires Business Analyst
ArcGIS for Desktop Advanced: Requires Business Analyst
3/25/2014