# 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)
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.