# 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)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.