Add Attribute Index
This function is not available via the GUI of ET GeoWizards.
Adds attribute index to a feature class. An index can improve the performance of queries that evaluate an attribute's values.
Note: Can be used only on feature classes!
Command line syntax
ET_GPAttributeIndex <input_dataset> <field_to_index> {unique} {ascending}
Parameters
Expression | Explanation |
---|---|
<input_dataset> | A feature class or feature layer (the source should be a feature class) |
<field_to_index> | A String - the name of the field that will be indexed |
{unique} | A Boolean - Indicates if the index is unique. |
{ascending} | A Boolean - Indicates if the index is based on ascending order |
Scripting syntax
ET_GPAttributeIndex (input_dataset, field_to_index, unique, ascending)
See the explanations above:
<> - required parameter
{} - optional parameter
Public Function AddAttributeIndex(ByVal pInFC As IFeatureClass, ByVal sFieldToIndex As String, Optional ByVal bUnique As Boolean = True,Optional ByVal bAscending As Boolean = True) As Boolean
Copyright © Ianko Tchoukanski |