Create Asset Package Rename Table

Summary

Creates a table in the asset package that can be used for renaming items.

Usage

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

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

Syntax

arcpy.NOALIAS.CreateRenameTable(asset_package, {fields})
NameExplanationData Type
asset_package

The asset package where the rename table will be created.

Workspace
Asset Package

The asset package where the rename table will be created.

Workspace
fields
(Optional)

To add additional fields to the rename table to support rename options, specify a name and alias.

Value Table
Rename Fields

To add additional fields to the rename table to support rename options, specify a name and alias.

Value Table
CreateRenameTable example (Python window)

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

arcpy.pt.CreateRenameTable("D:/data/ElectricNetwork.gdb", "es Spanish;ru Russian")
CreateRenameTable example (stand-alone script)

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

# Name: CreateRenameTable.py
# Description: Creates a rename 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(
    ar='Arabic',
    de='German',
    es='Spanish',
    ja='Japanese',
    ru='Russian',
    zh_cn='Simplified Chinese'
)


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

Environments

This tool does not use any geoprocessing environments.

Licensing information

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