Line thickness, color Frame Access with arcpy.mapping

09-01-2010 06:10 PM
Status: Open
Labels (1)
MVP Honored Contributor

 Border, Background and Drop Shadow, with Line thickness, color, gap, etc for setting elements inside of layouts.  Basically, the ability to change the frame properties for Elements in the layout via arcpy

This would give us further capability in controlling the layout via arcpy.  I would want more control of the properties but via arcpy.  Currently, this is limited.
 arcpy.mapping is easy to use, and I would love to see functionality increased to allow customization of everything - beyond line attributes even. Like legend elements!
 @andyroo  I totally agree.

@ted , @AndyRitchie Would Element.applyStyle(style_Item) to an existing element be sufficient? 

Exposing the entire symbology model to would be a very large undertaking and changing the color of a border line symbol can be done via Python CIM access.

At 3.2 we've added a number of Layout/Map element constructor methods. (e.g.,ArcGISProject.createGraphicElement(), or Layout.createMapFrame() ).  The methods include an optional { style_item} parameter that gets associated with the element when created.

To help with apply style items during creation, at 3.2 we added ArcGISProject.listStyleItems().

At 3.3 we plan to allow users to automate adding styles to a project.


Thanks, Jeff - Layout and teams