I am working with a point shapefile, for which I have created a new field NEW_ID. This represents a unique code for each point. This is more convenient to me than using the OBJECTID.
I want to fill the new field with the values coming from the following list:
And I am trying to get this working, but the field is still
<Null> after the snippet has run:
myFeatureClass=r'C:\temp\testGDB\test_shp' cur = arcpy.UpdateCursor(myFeatureClass) for row in cur: row.setValue('NEW_ID', row.getValue(myvalues[row])) cur.updateRow(row)
I suspect I cannot use
row as an iterator. So, what should I use instead?
ArcGIS version: 10.3.1