Select to view content in your preferred language

Object Looping

2023
1
07-15-2011 08:08 AM
JohnMoody
Emerging Contributor
I have a series of data driven pages, and I want to create 2 objects next to my map that display photos (jpg).  

The photos will change as the data driven pages changes via a loop. 

I have ArcView 10 license, some OOP, arcpy and python experience.

I figure ArcObjects would be where to start, so added the VBA display editor but it is greyed out, and now I'm a bit lost. 

Can anyone help get me started?
0 Kudos
1 Reply
JeffBarrette
Esri Regular Contributor
Arcpy.mapping would be a much easier solution.  Take a look at the DataDrivenPages and PictureElements class help topic for some sample code snippets.

Basically you will use the DDP object to advance your pages and at each page you will reference each PictureElement and change the sourceImage property.

Jeff
0 Kudos