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.
Parameters
| 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. |
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") |
Notes:
<> - required parameter
{} - optional parameter
The argument separator for StartInfo.Arguments is space. If a string might contain a space, you need to double quote it.