count = 0 def mini(): global count global value global rows if count == 0: rows = arcpy.SearchCursor("H:\GIS_Data\TEMP_GDB.gdb\points2sj","","","", "Join_Count A") for row in rows: if count == 0: value = row.Join_Count count = 1 return value
count = 0 def mini(): global count global value global rows if count == 0: rows = arcpy.SearchCursor("<path to feature class>","","","", "<fieldname> A") for each row in rows: if count == 0: value = row.<fieldname> count = 1 return value
mini()
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.