Create Configurations Table (Utility Network Package)

Summary

Creates a table in the asset package used for grouping items into configurations which can be excluded when applying the asset package to the utility network.

Usage

  • Learn more about the properties that define the D_Configurations table.

  • If a D_Configurations table already exists, it will be recreated with the current geodatabase schema. User fields and values will be maintained.

Parameters

LabelExplanationData Type
Asset Package

The asset package where there configuration table will be created.

Workspace
Configuration Fields
(Optional)

To add additional fields to the configuration table, specify a name and alias.

Value Table

arcpy.pt.CreateConfigurationTable(asset_package, {fields})
NameExplanationData Type
asset_package

The asset package where there configuration table will be created.

Workspace
fields
(Optional)

To add additional fields to the configuration table, specify a name and alias.

Value Table

Code sample

CreateConfigurationTable example (Python window)

The following Python window script demonstrates how to use the CreateConfigurationTable tool in immediate mode.

arcpy.pt.CreateConfigurationTable("D:/data/ElectricNetwork.gdb", "dist Distribution;trans Transmission")
CreateConfigurationTable example (stand-alone script)

The following stand-alone script demonstrates how to use the CreateConfigurationTable tool.

# Name: CreateConfigurationTable.py
# Description: Creates a configuration table and adds the fields

# Import system modules
import arcpy

# Set local variables
asset_package = "D:/data/ElectricNetwork.gdb"
# Keys are the field names and values are the aliases
fields = dict(
    dist='Distribution',
    trans='Transmission',
    season='Seasonal Phasing'
)


arcpy.pt.CreateConfigurationTable(asset_package, list(fields.items()))

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes