for i in range (0,1001): if divmod(i, 10)[1] == 0: #if the remainder is 0 when dividing by 10... print "Processing #" + str(i)
import arcpy from arcpy import env env.workspace = r"C:\temp\python\test.gdb" fc = "USNG_100Meter" arcpy.MakeFeatureLayer_management(fc, "USNG_lyr") x = 590 y = 1000 while x <= 740: # alter to the max value of the Easting arcpy.SelectLayerByAttribute_management("USNG_lyr", "NEW_SELECTION", '"Easting" = ' + str(x) + "AND" + '"Northing" = ' + str(y)) # do something to selection x += 10 y += 10
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.