I created data driven pages in Arc 10.1. For the DDP, using the new legend functionality of 10.1 for displaying only visible features in the different extents for different maps. Some of the maps have no features of the layers in the legend. How come the legend will automatically turn off for some maps where there is no visible features. Regards Ram
Thank you for the clarification. I understand your issue.
This can not be done using DDP alone. You could accomplish this using Python scripting. Via arcpy.mapping you can count the number of items in the legend. If the item count = 0, then move the legend off the page.
I'm not sure I understand your question. I sounds to me like the legend is doing what you need it to do.
Jeff
Hi Jeff,
I am giving more detail about my question. I have multiple maps created with DDP with multiple legends. All the legends showing different layers. Most of the map legends show classes that are visible in the current map indexes. Only few maps and some legends don't have any classes in the visible map extent. At that time only the blank legend frame is showing on the maps. Is there any way that we can't show the legend frame if there are any classes not visible in the current extent.
Thank you for the clarification. I understand your issue.
This can not be done using DDP alone. You could accomplish this using Python scripting. Via arcpy.mapping you can count the number of items in the legend. If the item count = 0, then move the legend off the page.