I have a map series of 30+ data driven pages that I am altering the layout of, trying to do as much of it with ArcPy as possible to save time. I need to change the symbology of the Extent Indicator.
Can this be coded?
I have a map series of 30+ data driven pages that I am altering the layout of, trying to do as much of it with ArcPy as possible to save time. I need to change the symbology of the Extent Indicator.
Can this be coded?
Python is really handy for the casual user but its scope is limited, ArcObjects offers a much bigger scope for modification and can need external software. As we've seen in the comments there are some things that even ArcObjects can't do.
The limited scope of python is one of its strong points, not having to search through thousands of interfaces, classes, enumerators and properties keeps the arcpy environment less daunting; it also helps that python is fairly close to natural speaking and is considered to be in the cusp of a 4GL. The downside is that as users progress into more advanced concepts they very quickly hit a 'brick wall' with python being unable to do what they want.
There are ways to access ArcObjects from python but you will run into one of the least friendly help docs trying to get any kind of clarity; I say this because unless you know the name of the interface you're after in advance you wont find any help but starting with the example code provided with the ArcObjects API a user with a good knowledge of VB.net, C# or C++ can self-learn very quickly but if you don't already know one (or more) of these languages the samples don't help at all with python.
In this particular instance you're trying to alter a locator rectangle as ILocatorRectangle2 which has a property of Border as IBorder that implements ISymbolBorder with a property LineSymbol as ILineSymbol and does not implement IFillSymbol, which is where you would be able to modify the fill properties as well as the outline of the intended symbol... in short the only option for a locator rectangle is an outline except if you abandon the locator entirely and use a page definition query on a layer in the 2nd map to turn on/off certain polygons whose style is able to be set normally as J.R indicated in their comment.