AnsweredAssumed Answered

ListStyleItems function is missing from mapping

Question asked by WillemM_84 on Jun 6, 2014
Latest reply on Jun 6, 2014 by WillemM_84
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.

Attachments

Outcomes