Batch Reports (Business Analyst)

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

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

Allows you to batch reports and run them at a later time.

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

Синтаксис

BatchReports_ba (Boundaries, BDSFeatureClass, ReportTemplates, OutputFolder, {StitchReports}, {InsertMap}, {ReportStyle}, {ReportFormats})
ПараметрОбъяснениеТип данных
Boundaries
[[Layer, {ID field}, {Store ID field}, {Ring ID field}, {Use selected}],...]

The input feature class that defines the boundary layers for which the reports will be generated.

Value Table
BDSFeatureClass

The input feature class that contains the data from which the reports will be generated.

Feature Layer
ReportTemplates
[ReportTemplates,...]

Selects from a list of predefined or custom report templates in Business Analyst.

String
OutputFolder

The output directory that will contain the reports.

Folder
StitchReports
(дополнительно)

Takes the report templates selected in the Create Reports parameter and stitches them into a single report based on the order they are added.

  • TrueGenerates stitched reports.
  • FalseGenerates individual reports for each boundary layer.
Boolean
InsertMap
(дополнительно)

Determine if map image will be inserted if supported by selected report(s).

  • TrueInserts map image into report based on the current view in ArcMap.
  • FalseWill not insert map image into report based on the current view in ArcMap.
Boolean
ReportStyle
(дополнительно)

The report style for your reports.

  • ScreenThis report format will display a modern look and feel using a more visually pleasing format.
  • PaperThis report format will display a classic look and feel using a more generic style.
String
ReportFormats
(дополнительно)

The report output format.

  • Simple XML
  • PDF
  • HTML
  • CSV
  • ZIP
  • XLSV
  • Stripped XLSX
String

Пример кода

BatchReports Example (Stand-alone Script)
# Name: BatchReports.py
# Description: Places an Age report in the batch queue.
# 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")
    
# Define input and output parameters for the Batch Reports tool

  TAs = "C:\\temp\\TradeArea.shp' AREA_ID STORE_ID RING false"
  InputGeo = "C:/ArcGIS/Business Analyst/US_2013/Data/BDS/esri_bg.bds"
  Rpts = "Age"
  OutPath = "C:/temp"
 
# Create batch reports

  arcpy.BatchReports_ba(TAs, InputGeo, Rpts, OutPath, "REPORT_PER_BOUNDARY")

# 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