mxd = arcpy.mapping.MapDocument("current") df = arcpy.mapping.ListDataFrames(mxd)[0] lyr = arcpy.mapping.ListLayers(mxd, "Basemap")[0] #this is the bing group layer lyrFile = arcpy.mapping.Layer(r"C:\Temp\Basemap.lyr") arcpy.mapping.UpdateLayer(df, lyr, lyrFile, False) arcpy.RefreshActiveView()
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.