AnsweredAssumed Answered

Update Fields by Matching Fields

Question asked by EscondidoAnalyst on Oct 10, 2017
Latest reply on Jan 30, 2019 by chad.bunn

I want to know what is the best way via arcpy  to update a feature field by referencing another features field.

I don't know if it is possible to use a updatecursor for 2 different features.

Would I just perform a temporary join and use arcpy like field calculator.


My Example of my cursor attempt.

searchcursor = arcpy.SearchCursor("BASE.ROADS_SG_ESC","","","","")
updatecursor = arcpy.UpdateCursor("escroads","","","","")

for row in searchcursor:
    RD20NAME = row.getValue("RD20NAME")

for row in updatecursor:
    if row.getValue("NAME")
        NAME = RD20NAME