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/...00000074000000) however, an error is produced:
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:
Attachment 34404
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.
When calling the ListStyleItems function to select the .style file (as per: http://resources.arcgis.com/en/help/...00000074000000) however, an error is produced:
Code:
import arcpy
arcpy.mapping.ListStyleItems("USER_STYLE", "Legend Items")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:
Attachment 34404
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.