Create Target Group (Business Analyst)

Nivel de licencia:BasicStandardAdvanced

Resumen

Creates target groups of profile segments.

Learn more about how Create Target Group works

Uso

Sintaxis

CreateTargetGroupFromList_ba (InputTargetGroupStringRepresentation, InputTargetGroupFolder, {InputTargetGroupComments})
ParámetroExplicaciónTipo de datos
InputTargetGroupStringRepresentation

Lists segments in each target.

String
InputTargetGroupFolder

Name of the target group to be created.

String
InputTargetGroupComments
(Opcional)

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

String

Ejemplo de código

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 (x86)\ArcGIS\Desktop10.2\Business Analyst\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)

Entornos

Esta herramienta no utiliza ningún entorno de geoprocesamiento.

Temas relacionados

Información sobre licencias

ArcGIS for Desktop Basic: Requiere Business Analyst
ArcGIS for Desktop Standard: Requiere Business Analyst
ArcGIS for Desktop Advanced: Requiere Business Analyst
4/26/2014