CreateContingentValuesWorkbook

Title  Create Contingent Values Workbook

Description

Creates an Excel workbook to review and modify contingent values defined by data, schema or existing values.

Usage

          
The target table must have at least one field group.

License

Basic

Toolset

Contingent Values

Syntax

CreateContingentValuesWorkbook (input_table, workbook, mode)

Parameter Explanation Data Type
input_table Dialog Reference

The table with field groups.

GPTableView
workbook Dialog Reference

The output Excel file containing information about field groups and contingent values.

DEFile
mode Dialog Reference

Defines from where the contingent values will be generated:

  • Create empty - Do not create any contingent value entries. This is the default.
  • Use schema - Create contingent values from all combinations of domains.
  • Use data - Create contingent values from existing rows in the table.
  • Use contingent values - Creates the workbook with the existing contingent values.

GPString

Code Samples

CreateContingentValuesWorkbook example 1 (Python window)

Creates an Excel workbook to review and modify contingent values defined by data, schema or existing values.

import arcpy

arcpy.udms.CreateContingentValuesWorkbook(
    "D://data/UtilityNetwork.gdb//UtilityNetwork//UNDevice",
    "D://data",
    "DATA",
)

CreateContingentValuesWorkbook example 2 (stand-alone script)

Creates an Excel workbook to review and modify contingent values defined by data, schema or existing values.

import arcpy

arcpy.udms.CreateContingentValuesWorkbook(
    input_table="D://data/UtilityNetwork.gdb//UtilityNetwork//UNDevice",
    workbook="D://data",
    mode="DATA",
)