Setup Solution Extent by Current Selection (Territory Design)

License Level:BasicStandardAdvanced

Summary

Tool allows setup Territory Extent to the Territory Solution by current selection on the active map.

Usage

Syntax

SetupExtentByCurrentSelection_TD_td (in_territory_solution_layer, in_extent_calc_method)
ParameterExplanationData Type
in_territory_solution_layer

Territory Solution layer to import variables to

GP TD Layer
in_extent_calc_method

The way of calculation Territory extent.

  • GEOMETRY_CENTROID_CONTAINED_WITHIN_EXTENT only features having their geometry's centroids inside extent will be taken into account
  • GEOMETRY_COMPLETELY_CONTAINED_WITHIN_EXTENTonly features having their geometry completely located inside extent will be taken into account
  • GEOMETRY_INTERSECTS_EXTENTonly features having their geometry intersects extent will be taken into account
String

Code Sample

SetupExtentByCurrentSelection example (Python window)

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

import arcgisscripting
gp = arcgisscripting.create()
gp.SetupExtentByCurrentSelection_TD("new layer", "GEOMETRY_CENTROID_CONTAINED_WITHIN_EXTENT")
SetupExtentByCurrentSelection 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"
method = "GEOMETRY_CENTROID_CONTAINED_WITHIN_EXTENT"

# Execute tool
gp.SetupExtentByCurrentSelection_TD(solution, method)

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
10/12/2012