Go to ET GeoWizards 12.x User Guide

Redefine Fields

Go to ToolBox Implementation

Change field names and definitions.

Inputs:

Outputs:

How to use:

Notes:

ToolBox implementation
(Go to TOP)

Command line syntax

ET_GPRedefineFields<input_dataset> <out_feature_class> <field_to_redefine>

Parameters

Expression Explanation
<input_dataset> A Polyline feature class or feature layer
<out_feature_class> A String - the full name of the output feature class (A feature class with the same full name should not exist)
<field_to_redefine> A String -  a list of field names and new field definitions
"OldName NewName Length/Precision Scale"

Scripting syntax

ET_GPRedefineFields(input_dataset, out_feature_class, field_to_redefine)

See the explanations above:
<> - required parameter
{} - optional parameter

Example Python script:

import arcpy
arcpy.ImportToolbox("C:/Program Files/ET SpatialTechniques/ET GeoWizards 11.0 for ArcGIS 10.1/ET GeoWizards.tbx")
arcpy.gp.toolbox = "C:/Program Files/ET SpatialTechniques/ET GeoWizards 11.0 for ArcGIS 10.1/ET GeoWizards.tbx"
input_dataset = "C:\\data\\suburbs.shp"
result = "C:\\data\\fgdb_test.gdb\\redefined"
arcpy.gp.ET_GPRedefineFields(input_dataset,  result,  "Population Pop 12 0; City CityNew 6 0; Meters Length 12 2")
Copyright © Ianko Tchoukanski