mxd = arcpy.mapping.MapDocument(path) lyr = arcpy.mapping.ListLayers(mxd, "some layer name")[0] lyr.findAndReplaceWorkspacePath(path1, path2) lyr.name = "some new name" mxd.save()
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.