Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

ListStyleItems function is missing from mapping

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

Code:

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:
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.
Attached Thumbnails
Click image for larger version

Name:	Untitled.png‎
Views:	N/A
Size:	16.6 KB
ID:	34404  

Viewing all articles
Browse latest Browse all 2485

Trending Articles