标签:code type ref mapping color highlight fresh name dal
import arcpy mxd = arcpy.mapping.MapDocument("current") lyr = arcpy.mapping.ListLayers(mxd)[0] if lyr.symbologyType == "UNIQUE_VALUES": lyr.symbology.valueField = "NAME" lyr.symbology.addAllValues() arcpy.RefreshActiveView() arcpy.RefreshTOC() del mxd
标签:code type ref mapping color highlight fresh name dal
原文地址:https://www.cnblogs.com/gisoracle/p/11354760.html