テリトリー ソリューションの作成(Create Territory Solution) (テリトリー デザイン)

ライセンス レベル:BasicStandardAdvanced

サマリ

1 つの空のテリトリー レベルを含む新規テリトリー ソリューションを作成します。

使用法

構文

CreateTerritorySolution_TD_td (in_alignment_layer, {in_display_field}, {in_level_name}, {in_territory_solution_location}, {in_territory_solution_name})
パラメータ説明データ タイプ
in_alignment_layer

新しいテリトリー ソリューションの基本単位レイヤ。

Feature Layer
in_display_field
(オプション)

テリトリー ソリューションの表示フィールド。

Field
in_level_name
(オプション)

第 1 テリトリー レベルの名前。

String
in_territory_solution_location
(オプション)

テリトリー ソリューションの場所。

String
in_territory_solution_name
(オプション)

テリトリー ソリューションの名前。

String

コードのサンプル

CreateTerritorySolution(テリトリー ソリューションの作成)の例(Python ウィンドウ)

次の Python ウィンドウ スクリプトは、イミディエイト モードでこのツールを使用する方法を示しています。

import arcgisscripting
gp = arcgisscripting.create()
gp.CreateTerritorySolution_TD("esri_zip5", "NAME", "Territories", "C:/BA Output/Project/Default Project/Territories/", "new layer")
CreateTerritorySolution(テリトリー ソリューションの作成)の例 2(スタンドアロン スクリプト)

次のスタンドアロン スクリプトで、このツールの使用方法を示します。

# Import system modules
import arcgisscripting
gp = arcgisscripting.create()

# Set local variables
alignmentLayer = "esri_zip5"
displayField = "NAME"
levelName = "Territories"
solutionLocation = "C:/BA Output/Project/Default Project/Territories/"
solutionName = "new layer"

# Execute tool
gp.CreateTerritorySolution_TD(alignmentLayer, displayField, levelName, solutionLocation, solutionName)

環境

このツールはジオプロセシング環境を使用していません

関連トピック

ライセンス情報

ArcGIS for Desktop Basic: 次のものが必要 Business Analyst
ArcGIS for Desktop Standard: 次のものが必要 Business Analyst
ArcGIS for Desktop Advanced: 次のものが必要 Business Analyst
5/20/2014