Select and Export

Running programmatically

Exports the features of a dataset to a new layer based on an attribute query.

Inputs:

Outputs:

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name SelectAndExport
<input dataset> A String representing the input layer.
<output dataset> A String - the full name of the output layer.
<SQL Expression> A String representing the selection expression. Example: Shape_Area < 200 AND Name = 'a'

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

Notes:

(Go to TOP)