Order Fields

Running programmatically

Exports a feature layer to a new feature class. The user selects the fields to be exported and the order in which they will appear in the attribute table.



How to use:

Running Programmatically

(Go to TOP)


Expression Explanation
Function Name OrderFields
<input dataset> A String representing the input layer.
<output dataset> A String - the full name of the output layer.
<Field List> A String representing an ordered list of field names (separated by ";") to be copied in the output dataset.

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, "OrderFields", "input dataset", "output dataset", "Field List"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "OrderFields" "input dataset" "output dataset" "Field List"
.NET using ETGWOutX.dll OrderFields(input dataset, output dataset, Field List)
ArcPy arcpy.OrderFields(input dataset, output dataset, "Field List")


(Go to TOP)