import arcpy mxd = arcpy.mapping.MapDocument("current") lyr = arcpy.mapping.ListLayers(mxd)[0] lyr.showLabels = True lyr.labelClasses[0].expression ="[Name]" arcpy.RefreshActiveView() arcpy.RefreshTOC()
posted on 2019-08-14 21:28 gisai 阅读(1159) 评论(0) 编辑 收藏 举报