Create Target Group (Business Analyst)

概要

Creates target groups of profile segments.

Learn more about how Create Target Group works

使用法

構文

CreateTargetGroupFromList_ba (InputTargetGroupStringRepresentation, InputTargetGroupFolder, {InputTargetGroupComments})
パラメータ説明データ タイプ
InputTargetGroupStringRepresentation

Lists segments in each target.

String
InputTargetGroupFolder

Name of the target group to be created.

String
InputTargetGroupComments
(オプション)

Optional comments for target group. These comments can include information such as author, source, date, and vintage.

String

コード サンプル

CreateTargetGroupFromList Example (Stand-alone Script)

# Name: CreateTargetGroupFromList.py
# Description: Creates a target group of selected segments from a list.
# Author: ESRI

# Import system modules
import arcview
import arcpy

arcpy.AddToolbox("C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
 
try:
# Acquire extension license 
arcpy.CheckOutExtension("Business") 
 
# Define input and output parameters for the Create Target Group tool
Segments = "Core=7,8,9;"
 
# Create Target Group 
arcpy.CreateTargetGroupFromList_ba(sSegments, "SampleTargetGroup")
 
# Release extension license 
arcpy.CheckInExtension("Business")
 
except:
  print arcpy.GetMessages(2)

環境

このツールは、ジオプロセシング環境では使用できません

関連項目

ライセンス情報

ArcView: 要 Business Analyst
ArcEditor: 要 Business Analyst
ArcInfo: 要 Business Analyst

10/4/2010