Title Convert Contingent Values Workbook
Converts a Contingent Values Workbook to CSV files to be used for importing.
The CSV files can be imported using Design View or the Import Contingent Values geoprocessing tool.
License
Basic
ContingentValueWorkbookToCSV (workbook, field_groups_file, contingent_values_file)
Parameter | Explanation | Data Type |
---|---|---|
workbook |
Dialog Reference
The Contingent Values Workbook. |
DEFile |
field_groups_file |
Dialog Reference
The output .csv file containing information about the field groups. |
DEFile |
contingent_values_file |
Dialog Reference
The output .csv file containing information about the contingent values. |
DEFile |
ContingentValueWorkbookToCSV example 1 (Python window)
Converts a Contingent Values Workbook to CSV files to be used for importing.
import arcpy
arcpy.udms.ContingentValueWorkbookToCSV(
r"D:/data/UNDevice_ContingentValues.xlsx",
r"D:/data/UNDevice_ContingentValues_FieldGroups.csv",
r"D:/data/UNDevice_ContingentValues_ContingentValues.csv",
)
ContingentValueWorkbookToCSV example 2 (stand-alone script)
Converts a Contingent Values Workbook to CSV files to be used for importing.
import arcpy
arcpy.udms.ContingentValueWorkbookToCSV(
workbook=r"D:/data/UNDevice_ContingentValues.xlsx",
field_groups_file=r"D:/data/UNDevice_ContingentValues_FieldGroups.csv",
contingent_values_file=r"D:/data/UNDevice_ContingentValues_ContingentValues.csv",
)