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: 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:

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.