paulbrandt73

arcpy Data Driven Pages retrieve field list

Discussion created by paulbrandt73 on Nov 2, 2010
Latest reply on Nov 3, 2010 by paulbrandt73
I am trying to write a generic python script/GUI that gives a user the opportunity to choose an MXD (with Data Driven Pages already set up) then allow them to choose pairs of text element and field name that will be updated by the script (similar to dynamic text, but from other fields besides name). I can easily get the list of text elements, but is there a way to tell which layer the data driven pages are based on in order to populate a list of field names? I could let the user choose it, but that seems like a poor way to handle it when the script should be able to tell.

Outcomes