Split By Attributes

Running programmatically

Splits a layer into separate datasets based on an the attribute values in the selected field

Inputs:

Outputs:

Examples:

The naming of the output workspace is based on the Name field selected and the prefix.

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name SplitByAttributes
<input dataset> A String representing the input layer.
<output workspace> A String - the full name of the output folder (for shapefiles) or File GDB.
<Split Field> A String - the name of the field which values are to be used for splitting.
{Prefix} A String representing the prefix added to the names of the output datasets.

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

Notes:

(Go to TOP)