You cant do what you asked.
You can however achieve the exact same results by:
Add 10 scale bars with unique names 'Off page', in different styles and stuff, and then use python to move them onto the
page as needed for different maps.
OR
Create 10 "MXD" templates with different page setups, and use the code to determine which template to use.
Think of something else ..be creative!
Hi Lucas,
Can you please let me know if we can change the existing style of a scale bar or North Arrow to another style in a layout programmatically using Python. I have searched all over the internet but could not find a methodology for this. Hope you can help me out.
scaleBar = arcpy.mapping.ListLayoutElements(mxd, "MAPSURROUND_ELEMENT") for item in scaleBar: print item.name
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.