I am batch automating PDF maps with many overlapping layers and many different symbology colors. When the map is zoomed far out- two of the layers, lets call it line1 (the only blue layer) and line2 (the only light green layer) do not change to the color of the symbology layer file.

I am using a function that uses the ApplySymbologyFromLayer_management tool and then adds the newly updated layer to ArcMap. Here is the function.

def add_layer(flayer, symbology, position = "AUTO_ARRANGE"):
    df = arcpy.mapping.ListDataFrames(mxd)[0]
    layer = arcpy.mapping.Layer(flayer)
    gp.ApplySymbologyFromLayer_management(layer, symbology, position)
    arcpy.mapping.AddLayer(df, layer)

I have checked their symbology paths and they are totally fine. i have checked their geometry and it is good as well. I have added at the end of the function arcpy.refreshactiveview()but to no avail.

here is the correct coloring on a map where 1 inch = 7,843 feet the green and the blue lines are exactly as they should be(please disregard the red lines and the red point with 24)

enter image description here

this next map which has a scale range of 1 inch = 4 miles picture taken of the same area(disregard the red again and it is the same area, the orange is another feature native just to the second map)

enter image description here

as you can see the colors are not the what they are supposed to be

Is there a property setting that changes the symbology color at a different scale?

these two line layers are using the exact same layer files to change their symbology

  • Is it possible to include a sample screenshot of what you're seeing? – Midavalo May 18 '16 at 19:32
  • unfortunately I cannot it is sensitive data.. – ziggy May 18 '16 at 19:37
  • 2
    We do not need to see sensitive data - just create some test data that illustrates your problem and post a picture from that instead. – PolyGeo May 18 '16 at 20:17
  • Alternatively just run Check/Repair Geometry on each dataset to double-check that it is not just your data. – PolyGeo May 18 '16 at 20:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.