ET GeoWizards Scripting
Split By Attributes
(Go to the main page of the function)
Splits a layer into separate datasets based on an the attribute values in the selected field
Syntax
Dim ET As New ETGW_Core
Set variable = ET.SplitByAttributes(pInFeatureClass, sOutDir,
sPrefix, sNameField, _
bAddLayer, pMap)
The SplitByAttributes method syntax has the following object qualifier and arguments:
| Part | Description |
|---|---|
| variable | A Boolean indicating the success or failure of the method |
| pInFeatureClass | Required. An IFeatureClass object (Point, Polyline or Polygon feature class) |
| sOutDir | Required. A String - the name of the output folder (must exist) |
| sPrefix | Required. A String - used for generating the names of the output feature class |
| sNameField | Required. A String - the name of a field from the input layer used for splitting and for generating the names of the output names |
| bAddLayer | Required. A Boolean indicating whether the resulting feature classes will be added to the map |
| pMap | Required. An IMap object. Can be set to Nothing if you don't want to add the resulting datasets to the map. |