Edit the Calculate Default Grid Index Example script so that it runs without error.
Last Published: August 19, 2020No Product Found
Bug ID Number
NIM083648
Submitted
August 9, 2012
Last Modified
April 8, 2026
Applies to
No Product Found
Version found
10.0
Status
Will Not Be Addressed
The development team has considered the issue or request and concluded it will not be addressed. The issue's Additional Information section may contain further explanation.
Additional Information
We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.
Workaround
1) Remove the following lines from the script: # Get the grid sizes from the tool, this is a string with 3 semi-colon separated values (typically something like "1500; 0; 0") result = arcpy.CalculateDefaultGridIndex_management(inFeatures) indexGrids = [] for count in range(0, result.outputCount): indexGrids.append(result.getOutput(count))2) Change the parameters of the AddSpatialIndex_management command to exclude indexGrids as the second parameter. (The default grids sizes will be automatically compute optimal sizes.) E.g. arcpy.AddSpatialIndex_management(inFeatures)