I am using ArcMap 10.2. I used the following code to turn all the layers on for the Main Map data Frame.
dFrame = arcpy.mapping.ListDataFrames(current_mxd,"Main Map")[0]
for lyr in arcpy.mapping.ListLayers(current_mxd, "", dFrame):
lyr.visible = True
Does anyone know how to use ArcPy to turn every layer on for all the data frames?
for
before dFrame, anin
where the equals is, empty quotes in theListDataFrames
, and to remove the array index.