ListIndexes method |
|
Release 9.1
Last modified August 19, 2005 |
Print all topics in : "Properties and Methods" |
List all the indexes in the specified table, feature class, or shapefile. Specifying search conditions (wildcard) will limit the results. This method and ListFields are the only two List methods that don't require the user to preset the workspace.
Part | Description |
object | The instantiated geoprocessing object |
pInputValue | The name, path, or both of the table, feature class, or shapefile whose indexes are to be listed |
wild card | Optional. Combination of * and characters that will help limit the results. The asterisk (*) is the same as saying ALL. If no wildcard is specified then all indexes in the workspace will be returned. |
from win32com.client import Dispatch gp = Dispatch("esriGeoprocessing.GpDispatch.1") fc = "c:\\county\\roads.shp" indexes = gp.listindexes(fc) index = indexes.next() while index: print "Name: " + index.Name print "IsAscending: " + index.IsAscending print "IsUnique: " + index.IsUnique index = indexes.next()