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?
arcpy.RefreshActiveView()
Does it help? Nothing is refreshed automatically in ArcMap, this behaviour has changed in ArcGIS Pro