Redefine Fields

Running programmatically

Change field names and definitions.

Inputs:

Outputs:

How to use:

Notes:

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name RedefineFields
<input dataset> A String representing the input layer.
<output dataset> A String - the full name of the output layer.
<Field List>

A String representing a list of field names (separated by ";") together with their definition {OldName NewName NewType NewWidth NewPrecision}.

Valid field types - STRING, INTEGER, LONG, SHORT, REAL, FLOAT, DOUBLE, DATE

Example: "a b String 50;c d Integer 6;e f Double 8 3"

Running the function

ETGWPath used in the table below is the  full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")

Language Syntax
Python subprocess.call([ETGWPath, "RedefineFields", "input dataset", "output dataset", "Field List"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "RedefineFields" "input dataset" "output dataset" "Field List"
.NET using ETGWOutX.dll RedefineFields(input dataset, output dataset, Field List)
ArcPy arcpy.RedefineFields(input dataset, output dataset, "Field List")

Notes:

(Go to TOP)