AnsweredAssumed Answered

Apply symbology from layer does not take dataframes into consideration

Question asked by awa5114 on Nov 24, 2018
Latest reply on Nov 24, 2018 by Dan_Patterson

I am trying to use arcpy.ApplySymbologyFromLayer_management. i have 2 dataframes in my mxd and preauthored .lyr files which I am not loading into my session, but only referring to when I want to apply the symbology.


I shift to the dataframe of interest using mxd.activeView = df. However when I attempt to run arcpy.ApplySymbologyFromLayer it will not change the symbology of the layers in my secondary dataframe(s). It only changes the symbology in my primary dataframe.


Also I have noticed that there is no argument in arcpy.ApplySymbologyFromLayer which indicates what dataframe it is to operate on. Is this a bug in arcpy which would render arcpy.ApplySymbologyFromLayer obsolete for map documents with multiple dataframes or am I doing something wrong in my script?