Setup Solution Extent by Current Selection (Territory Design)
Summary
Tool allows setup Territory Extent to the Territory Solution by current selection on the active map.
Usage
-
Territory Extent hides part of Territory Hierarchy by limiting with extent geometry.
- Features having geometries not relevant to Territory Extent settings will not changed during operations changes territories on level (Create, Balance, Improve and so on).
- Out-of-Extent features can be changed only during operations changes whole Territory Hierarchy or Territory Solution (Remove Out-of-Extent Territories, Import Territories From Database, Remove Territory Level and so on).
Territory Extent will be removed if no selection on the active map.
Syntax
SetupExtentByCurrentSelection_TD_td (in_territory_solution_layer, in_extent_calc_method)
Parameter | Explanation | Data 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.
| 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