Create An Empty Customer Layer (Business Analyst)

Уровень лицензии:BasicStandardAdvanced

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

Creates a new empty point feature class (customer layer). You can define fields to be created in the new layer.

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

Синтаксис

CreateEmptyCustomerLayer_ba (OutputFeatureClass, {FldsCollection}, {NameField}, {LinkField})
ПараметрОбъяснениеТип данных
OutputFeatureClass

The feature class that will contain the customer features.

Feature Class
FldsCollection
(дополнительно)

Fields to add to the output feature class.

String
NameField
(дополнительно)

The field that will identify the customer name.

String
LinkField
(дополнительно)

Unique ID linking the customer file with the store file.

String

Пример кода

CreateEmptyCustomerLayer Example (Stand-alone Script)
# Name: CreateEmptyCustomerLayer.py
# Description: Creates a new empty customer layer.
# Author: Esri

# Import system modules
import arcview
import arcpy

arcpy.ImportToolbox("C:\Program Files (x86)\ArcGIS\Desktop10.2\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
 
try:
# Acquire extension license 
  arcpy.CheckOutExtension("Business")
 
# Defines the parameters for the Create an Empty Customer Layer tool
  OutPath = "C:/temp/New_Customers.shp"
  StoreId = "ID"
  Name= "Address"
  FldCol = "Name:ID|Alias:ID|Type:esriFieldTypeSmallInteger|Precision:1;Name:Address|Alias:Address|Type:esriFieldTypeString|Precision:40"
 
# Creates a new feature class (Customer Layer) with empty attribute fields
  arcpy.CreateEmptyCustomerLayer_ba(OutPath, FldCol, Name, StoreId)
 
# Release extension license 
  arcpy.CheckInExtension("Business") 
 
except:
  print arcpy.GetMessages(2)

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

Этот инструмент не использует параметры среды геообработки

Связанные темы

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

ArcGIS for Desktop Basic: Требует Business Analyst
ArcGIS for Desktop Standard: Требует Business Analyst
ArcGIS for Desktop Advanced: Требует Business Analyst
4/27/2014