I have a MXD with 5 data frames, the main data frame is running the Data Driven Pages for my Assessor Parcel Maps. The second data frame shows the Township and Range of the page, third data frame shows the section within the township and range, and the fourth data frame shows the different divisions within the section. I want to write a script that will prompt the user for those three pieces of information - TR, SECTION, and DIVISION - and have the page update automatically.
In my limited Python Scripting I am having trouble selecting layers in non active data frames.
The next step will be to map the selections according to users input......
import arcpy
mxd = arcpy.mapping.MapDocument ('CURRENT')
df = arcpy.mapping.ListDataFrames(mxd) [1]
mxd.activeView = df
layer = arcpy.GetParameterAsText (0)
grid = arcpy.GetParameterAsText (1)
arcpy.AddMessage (grid)
selstring = "TAG LIKE " + "'" + grid + "'"
arcpy.AddMessage("Selection string = " + selstring)
arcpy.SelectLayerByAttribute_management (layer, "NEW_SELECTION", selstring)