The proper answer is YES, at 10.0 there is a new set of tools called "Data Driven Pages" that have the equivalent utilities that were available in DS MapBook menu:
I have a mapbook with 1,440 pages that label neighboring tiles and I do not see a good reason to upgrade to 10 based on what I have tried and have read. Also what is a good way to export random pages, I do not use page numbers but a name instead.jim
from Tkinter import * import arcpy # SelectPopup.py sample Python script using Tkinter for a user interface # User selects feature from list, code selects and zooms to feature # Works with file geodatabases and sdc datasets # Use in ArcMap by attaching script to a button for best results # In ArcGIS 10, you can add scripts and models to buttons in the UI without using VBA. # See "Adding a custom tool to a menu or toolbar" in this help topic: # http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002400000005000000.htm # Replace the values for the 4 variables below to match your data # if you change the variable name, be sure to modify the code # below to match. # Layer on which the selection will be performed Layer = "states" # Table or feature class with field containing unique list of feature names to use for selections # Can be the data source for the layer above or a separate table. Use a separate table containing # only the valid names if there are large numbers of blank or non-unique names or a definition query # on the layer. # SelTable = "D:\Work\Demos\Done\Arkansas10\GeoStor.gdb\NRHP_YrBlt" SelTable = "D:\Work\ESRIData&Maps\mexico\data\states.sdc\states" # Name of field in SelTable and Layer that contains feature names SelField = "ST_NAME" # Title to Appear on Dialog Title = "Select A State" # End of section for entering your data parameters class Application(Frame): def __init__(self, master=None): Frame.__init__(self, master) self.grid() self.createWidgets(master) def createWidgets(self, master): self.yScroll = Scrollbar ( self, orient=VERTICAL ) self.yScroll.grid ( row=0, column=1, sticky=N+S ) self.stList = Listbox (self, yscrollcommand=self.yScroll.set) self.stList.grid( row=0, column=0 ) self.yScroll["command"] = self.stList.yview #populate list with choices, sorted ascending rows = arcpy.SearchCursor(SelTable, "", "", SelField, SelField + " A") for row in rows: self.stList.insert( END, row.getValue(SelField) ) #add selection and quit button self.selButton = Button (self, text='Select', command=self.selectFeat) self.selButton.grid( row=0, column=2 ) self.quitButton = Button ( self, text='Quit', command=master.destroy ) self.quitButton.grid( row=1, column=2 ) def selectFeat(self): sel = self.stList.curselection() myState = self.stList.get(sel[0]) arcpy.SelectLayerByAttribute_management(Layer, "NEW_SELECTION", "\"" + SelField + "\" = '" + myState + "'") mxd = arcpy.mapping.MapDocument("CURRENT") for df in arcpy.mapping.ListDataFrames(mxd): if df.name == mxd.activeView: df.zoomToSelectedFeatures() arcpy.RefreshActiveView() root = Tk() app = Application(master=root) app.master.title(Title) app.mainloop()
Note to ArcView users (myself included), you won't be able to use the solution found in the link, as this tool references two other toolbox tools (Point to Feature and Frequency) that are not available at the ArcView license level. How and why this functionality was essentially left out is maddening to me, ha. /end rant
I have come up with a simple solution to the dreaded Create Street Index. Just read the README to see how it works. I do hope this helps.
HiI�??m creating a map book using data driven pages, however I need to delete index features as they do not show anything of value within that grid. You�??ll see the image attached to the email, there is basically 2 distinct areas in the County that I need to make a one map book for. The grid index needs to follow the Bow River, but I do not need to include the portion of the river that runs through Calgary. Would you have any suggestions for me? I can go into editing mode and delete those grids I do not need, but I�??m afraid it will confuse my page numbering. I appreciate your thoughts and time on this,Thanks,Jenn[ATTACH=CONFIG]12233[/ATTACH]
>>> keys = ["2", "10", "14", "100", "23"] >>> keys.sort() >>> print keys ['10', '100', '14', '2', '23'] >>> keys.sort(key=lambda x: [int(y) for y in x.split('.')]) >>> print keys ['2', '10', '14', '23', '100']
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.