cur = arcpy.UpdateCursor(FC) for row in cur: try: fieldVal = row.getValue(fieldOne) if fieldVal = xyz: value = row.setValue(newField, value)
cur = arcpy.UpdateCursor(FC) for row in cur: try: fieldVal = row.getValue(fieldOne) if fieldVal == xyz: value = row.setValue(newField, value) except Exception as err: Do something useful here or don't use try except at all
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.