rows = arcpy.SearchCursor(pathAndNameOfShapefile) for row in rows: valueOfField = row.getValue(fieldName) #do something here with value del rows #delete cursor object variable del row #delete row object variable
I just did something similar but used a search cursor. I iterated through every row of a single field, then used that to build a definition query with the layer object. Sounds like a cursor might work for you...Chris.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.