AnsweredAssumed Answered

GraphicElement Visibility

Question asked by EscondidoAnalyst on May 12, 2017
Latest reply on May 12, 2017 by Dan_Patterson
import arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
# The text element is a textbox
elm1 = arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT", "closeup1")[0]

if mxd.dataDrivenPages.currentPageID == 1:
elm1.visible == True
elif elm1 != 1:
elm.visible == False

if mxd.dataDrivenPages.currentPageID == 1:
print "yes"
elif mxd.dataDrivenPages.currentPageID <> 1:
print "no"

 Anyone familiar with Graphic Element Visibility property. It doesn't work for me.


I used the print statements to verify current page which is working fine.

I referenced

and there isn't a good example.