Create Target Group (Business Analyst)

Доступно с лицензией Business Analyst.

Краткая информация

Creates a new target group. A target group is a container for targets that you create, name, and populate with segments from a locally installed Business Analyst dataset.

Использование

  • The output Target Group parameter contains one or more targets.

  • The input Targets parameter is a collection of segments.

  • Segment IDs are separated by semicolons when more than one is assigned to a target—for example, 1C; 3A; 9B.

  • A target's color is defined by a hexadecimal value. For example, the hex color code for the RGB value of rgb(66, 135, 245) is #4287f5. If a hex code is not entered, the default color scheme will be applied.

  • The output of this tool is a new target group (*.sgtargetgroup).

Параметры

ПодписьОписаниеТип данных
Output Target Group

The name for the output target group file.

File
Targets

Specifies a list of the targets to be added to the new target group.

  • Name—The name of the target.
  • Segments—The segments to be added to the target.
  • Color—The color associated with the segment.

Value Table

arcpy.ba.CreateTargetGroup(target_group, input_type)
ИмяОписаниеТип данных
target_group

The name for the output target group file.

File
input_type
[input_type,...]

Specifies a list of the targets to be added to the new target group.

  • name—The name of the target.
  • segments—The segments to be added to the target.
  • color—The color associated with the segment.
Value Table

Пример кода

CreateTargetGroup example (Python window)

The following Python window script demonstrates how to use the CreateTargetGroup function.

import arcpy
arcpy.ba.CreateTargetGroup_ba(r"C:\ArcGIS\Projects\MyProject\SanFranAnalysisTG.sgtargetgroup, "Core 1A FCC5FC")

Параметры среды

Особые случаи

Информация о лицензиях

  • Basic: Обязательно Business Analyst
  • Standard: Обязательно Business Analyst
  • Advanced: Обязательно Business Analyst

Связанные разделы