<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ListStyleItems function is missing from mapping in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/liststyleitems-function-is-missing-from-mapping/m-p/201160#M15482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to apply a legend style from a .style file to an existing legend in my map document. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When calling the ListStyleItems function to select the .style file (as per: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00s300000074000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//00s300000074000000&lt;/A&gt;&lt;SPAN&gt;) however, an error is produced:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy arcpy.mapping.ListStyleItems("USER_STYLE", "Legend Items")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;produces the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;type 'exceptions.AttributeError'&amp;gt;: 'module' object has no attribute 'ListStyleItems'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;also, when typing in the ArcMap python window, the ListStyleItems function does not show up in de function dropdown box:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]34404[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using ArcMap 10.0 Desktop which runs on a server through a Citrix Client.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jun 2014 09:55:02 GMT</pubDate>
    <dc:creator>WillemMaetens1</dc:creator>
    <dc:date>2014-06-06T09:55:02Z</dc:date>
    <item>
      <title>ListStyleItems function is missing from mapping</title>
      <link>https://community.esri.com/t5/python-questions/liststyleitems-function-is-missing-from-mapping/m-p/201160#M15482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to apply a legend style from a .style file to an existing legend in my map document. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When calling the ListStyleItems function to select the .style file (as per: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00s300000074000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//00s300000074000000&lt;/A&gt;&lt;SPAN&gt;) however, an error is produced:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy arcpy.mapping.ListStyleItems("USER_STYLE", "Legend Items")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;produces the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;type 'exceptions.AttributeError'&amp;gt;: 'module' object has no attribute 'ListStyleItems'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;also, when typing in the ArcMap python window, the ListStyleItems function does not show up in de function dropdown box:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]34404[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using ArcMap 10.0 Desktop which runs on a server through a Citrix Client.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 09:55:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/liststyleitems-function-is-missing-from-mapping/m-p/201160#M15482</guid>
      <dc:creator>WillemMaetens1</dc:creator>
      <dc:date>2014-06-06T09:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: ListStyleItems function is missing from mapping</title>
      <link>https://community.esri.com/t5/python-questions/liststyleitems-function-is-missing-from-mapping/m-p/201161#M15483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm trying to apply a legend style from a .style file to an existing legend in my map document. &lt;BR /&gt;When calling the ListStyleItems function to select the .style file (as per: &lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00s300000074000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//00s300000074000000&lt;/A&gt;) however, an error is produced:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy arcpy.mapping.ListStyleItems("USER_STYLE", "Legend Items")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;produces the error:&lt;BR /&gt;&lt;BR /&gt;Runtime error &amp;lt;type 'exceptions.AttributeError'&amp;gt;: 'module' object has no attribute 'ListStyleItems'&lt;BR /&gt;&lt;BR /&gt;also, when typing in the ArcMap python window, the ListStyleItems function does not show up in de function dropdown box:&lt;BR /&gt;[ATTACH=CONFIG]34404[/ATTACH]&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;I'm using ArcMap 10.0 Desktop which runs on a server through a Citrix Client.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The help you referenced only applies to version 10.1 or higher per the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#//016w00000022000000" rel="nofollow" target="_blank"&gt;what's new at 10.1 documentation&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; As far as I know, there is no way to access it at 10.0 and upgrading is the only option.&amp;nbsp; You might be able to call it using an ArcObjects module somehow, but you would have to get someone else to help you with that.&amp;nbsp; Given that an upgrade will work much more robustly and you would be repeating the work the ESRI programmer's have done much better, I would push for the upgrade.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 10:10:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/liststyleitems-function-is-missing-from-mapping/m-p/201161#M15483</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2014-06-06T10:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: ListStyleItems function is missing from mapping</title>
      <link>https://community.esri.com/t5/python-questions/liststyleitems-function-is-missing-from-mapping/m-p/201162#M15484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah, should have noticed that. Thanks for the quick reply!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 10:22:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/liststyleitems-function-is-missing-from-mapping/m-p/201162#M15484</guid>
      <dc:creator>WillemMaetens1</dc:creator>
      <dc:date>2014-06-06T10:22:53Z</dc:date>
    </item>
  </channel>
</rss>

