> Script Details
Split Layer By Attributes
report inappropriate content
Feb 16 2010
Status of work
ArcScripts is intended for the free exchange of scripts and tools related to ESRI software products. Please alert the moderator if this script is a demo, trial-version, or an advertisement for a retail product.
Updated Feb 16/2010
Should work with most installation of 9.2 and above but uses the 9.2 method of invoking the geoprocessor to permit use of enumerations (code will be re-written to provide backward compatability).
9.1 no longer supported
Splits a layer according to attributes within the selected field producing a separate shapefile for common attributes.
If the FID or some other unique ID field is used, you can effectively produce separate shapefiles for each feature. If you are using a decimal field with a scale of 0 or an integer field or a string field, you can have one or more features in the output shapefile. Date fields need to be converted to a string field and integer fields should contain positive numbers
The selected field is queried for unique conditions. If a prior selection exists, then only those records are queried. The unique values found in the field (or selection within) are used to partition the input layer into the output layers.
Includes a Toolbox, Python script.
For AV3.x users, see