AnsweredAssumed Answered

Reading Name and Text in arcpy 10.1

Question asked by BrokenLegMike on Jun 12, 2012
Latest reply on Jun 12, 2012 by BrokenLegMike
I am testing some of the functionality in arcpy 10.1. I added 5 text elemets to a blank map document. 2 of which I added in dataframe view,  the other 3 I added in layout view. I gave a name to each text element (i.e. Text1, Text2, Text3, etc)

When I run the following simple script:

import arcpy  mxd = arcpy.mapping.MapDocument(r"Z:\ESRI\TestFigs\101_Test.mxd")  for x in arcpy.mapping.ListLayoutElements(mxd):  print x.name


Returns:

Text4
Text3
Text2
Layers


It only returns the 3 elements added in layout view and does not return the 2 added in dataframe view. Is this a bug?

Thanks,
Mike

Outcomes