Open Table of Contents

ET GeoWizards Scripting

Rename Fields

Exports a feature class  to a new feature class. The specifies the names of the fields to be renamed and the new name for each field to be renamed

Syntax    

Dim ET As  New ETGW_Core
Set variable = 
ET.RenameFields(pInFeatureClass, sOutFileName, _
                                                         fieldDictionary, sMessage)

The RenameFields method syntax has the following object qualifier and arguments:

Part Description
variable An IFeatureClass object
pInFeatureClass Required. An IFeatureClass object
sOutFileName Required. A String - the full name of the output feature class (A feature class with the same full name should not exist)
fieldDictionary Required. A Scripting Dictionary object that defines the fields to be renamed and for each field the new name. See the example for how to create the dictionary. 
sMessage Optional. In a case of failure -  description of the cause. If the functions completes with success an empty string will be returned. 

Example