I am fighting a bit with the cursor function since this morning. Thanks to the help of the people here and some tutorials I found I got this far
import arcpy arcpy.env.workspace = "C:\\Users\\Documents\\Scoring\\Ecodis_clip_split" #set workspace to folder with values value =  #create list for the returning value of searchCursor eco = arcpy.SearchCursor ("Anagance.shp", "", "", "area_ha", "") #search for the value in attributetable for row in eco: value.append(row) #write the value into the list arcpy.env.workspace = "C:\\Users\\Documents\\Scoring\\Wetland" #set workspace to folder with values diss = arcpy.UpdateCursor ("diss_1.shp", "", "", "area_eco", "") for row in diss: row.setValue(area_eco, row.getValue(value)) #identify all the rows and Update die field area_eco with the extracted value from the search cursor out of the list cursor.updateRow(row) del eco del diss
It bounces back with
area_eco is not defined
Which means - if I understood the concept of python correct - that this is not a variable. Ture, its my field which needs to updated. What am I doing wrong?