# get the shapefile name n = arcpy.Describe(shp).name # open an update cursor ucur = arcpy.UpdateCursor(shp) for urow in ucur: urow.FCNAME = n # assuming a field called FCNAME exists ucur.updateRow(urow)
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.