import arcpy arcpy.mapping.ListStyleItems("USER_STYLE", "Legend Items")
Solved! Go to Solution.
I'm trying to apply a legend style from a .style file to an existing legend in my map document.
When calling the ListStyleItems function to select the .style file (as per: http://resources.arcgis.com/en/help/main/10.2/index.html#//00s300000074000000) however, an error is produced:import arcpy arcpy.mapping.ListStyleItems("USER_STYLE", "Legend Items")
produces the error:
Runtime error <type 'exceptions.AttributeError'>: 'module' object has no attribute 'ListStyleItems'
also, when typing in the ArcMap python window, the ListStyleItems function does not show up in de function dropdown box:
[ATTACH=CONFIG]34404[/ATTACH]
So, where's the function gone? or is there a workaround to script legend styles? Specifically, I want to set the Show Layer name, Show Layer labels, etc. properties of the legend.
I'm using ArcMap 10.0 Desktop which runs on a server through a Citrix Client.
I'm trying to apply a legend style from a .style file to an existing legend in my map document.
When calling the ListStyleItems function to select the .style file (as per: http://resources.arcgis.com/en/help/main/10.2/index.html#//00s300000074000000) however, an error is produced:import arcpy arcpy.mapping.ListStyleItems("USER_STYLE", "Legend Items")
produces the error:
Runtime error <type 'exceptions.AttributeError'>: 'module' object has no attribute 'ListStyleItems'
also, when typing in the ArcMap python window, the ListStyleItems function does not show up in de function dropdown box:
[ATTACH=CONFIG]34404[/ATTACH]
So, where's the function gone? or is there a workaround to script legend styles? Specifically, I want to set the Show Layer name, Show Layer labels, etc. properties of the legend.
I'm using ArcMap 10.0 Desktop which runs on a server through a Citrix Client.