ArcPy module for resolving issues in a BaseMap Layer

Idea created by johnmdye on Jul 9, 2014
    New
    Score10
    • johnmdye

         ArcPy needs a module capable of working with BaseMap layers and correcting issues that are discovered after analyzing a basemap layer.

         For example, after analyzing a basemap layer, I might find and 15 layers ca,mme back with a Medium Severity warning of Code 10033 0 Layer uses symbol level drawing with layer transparency.

         BaseMaps often have many layers and so it would be nice to just be able to correct these kinds of things in-mass through Python...

    mxd = arcpy.mapping.MapDocument("Current")
    df = arcpy.mapping.ListDataFrames(mxd)[0]
    BaseMapLayer = arcpy.mapping.ListLayers(mxd, "BaseMap", df)
    
    for Layer in BaseMapLayer:
        if Layer.errorCode == 10333:
            layer.transparency = 0
    arcpy.ReanalyzeBaseMap(BaseMapLayer)