<?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 Re: Deleting symbology within a layer. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/deleting-symbology-within-a-layer/m-p/551739#M43085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think at 10.1 there is &lt;/SPAN&gt;&lt;STRONG&gt;finally&lt;/STRONG&gt;&lt;SPAN&gt; the capability to create dynamic legends where only the items that appear in a view will display in the legend.&amp;nbsp; Which means potentially that you could do what you want without programming.&amp;nbsp; Is that what you are getting at? See &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//0103000000n1000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//0103000000n1000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since the help for this suggests that dynamic legends are a type of dynamic table I think you may be able to control those with arcpy.mapping (&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00s300000040000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00s300000040000000&lt;/A&gt;&lt;SPAN&gt;) but I don't have 10.1 as of yet so can't say for sure if that is the case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Probably even more important to what you want to do is found here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/LegendElement/00s300000041000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/LegendElement/00s300000041000000/&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;read especially about the properties:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;use_visible_extent: A Boolean that controls if only the features in the data frame's visible extent will be displayed in the legend.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;use_ddp_extent A Boolean that controls if only the features within the Data Driven Pages index layer feature will be displayed in the legend. Data Driven Pages must be enabled. &lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;Of course, this is all about legends in a map, and not about layers stored as .lyr files on disk somewhere.&amp;nbsp; I think other discussions i've seen and participated in, that ESRI folks will tell you that you really need to be developing with arcObjects to have that sort of control over your layer symbols.&amp;nbsp; Ultimately it depends on your goals.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2012 18:28:19 GMT</pubDate>
    <dc:creator>ChristopherThompson</dc:creator>
    <dc:date>2012-08-29T18:28:19Z</dc:date>
    <item>
      <title>Deleting symbology within a layer.</title>
      <link>https://community.esri.com/t5/python-questions/deleting-symbology-within-a-layer/m-p/551738#M43084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am currently having an issue. I am trying to remove symbology from a shapefile layer. I have a folder of multiple layers, of which each layer has 30 symbols associated to it, but a number of layers only represent 3 or so symbols. However all 30 symbols are displayed in the table of content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been googling like mad today but my search has not produced any results, only finding scripts to change symbology.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering if it was even possible to do this. My understanding of python would be to find out the attribute value which relates to the symbol and if it equals 0 then it should be removed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 14:58:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/deleting-symbology-within-a-layer/m-p/551738#M43084</guid>
      <dc:creator>HarrietFoster</dc:creator>
      <dc:date>2012-08-29T14:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting symbology within a layer.</title>
      <link>https://community.esri.com/t5/python-questions/deleting-symbology-within-a-layer/m-p/551739#M43085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think at 10.1 there is &lt;/SPAN&gt;&lt;STRONG&gt;finally&lt;/STRONG&gt;&lt;SPAN&gt; the capability to create dynamic legends where only the items that appear in a view will display in the legend.&amp;nbsp; Which means potentially that you could do what you want without programming.&amp;nbsp; Is that what you are getting at? See &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//0103000000n1000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//0103000000n1000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since the help for this suggests that dynamic legends are a type of dynamic table I think you may be able to control those with arcpy.mapping (&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00s300000040000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00s300000040000000&lt;/A&gt;&lt;SPAN&gt;) but I don't have 10.1 as of yet so can't say for sure if that is the case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Probably even more important to what you want to do is found here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/LegendElement/00s300000041000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/LegendElement/00s300000041000000/&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;read especially about the properties:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;use_visible_extent: A Boolean that controls if only the features in the data frame's visible extent will be displayed in the legend.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;use_ddp_extent A Boolean that controls if only the features within the Data Driven Pages index layer feature will be displayed in the legend. Data Driven Pages must be enabled. &lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;Of course, this is all about legends in a map, and not about layers stored as .lyr files on disk somewhere.&amp;nbsp; I think other discussions i've seen and participated in, that ESRI folks will tell you that you really need to be developing with arcObjects to have that sort of control over your layer symbols.&amp;nbsp; Ultimately it depends on your goals.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 18:28:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/deleting-symbology-within-a-layer/m-p/551739#M43085</guid>
      <dc:creator>ChristopherThompson</dc:creator>
      <dc:date>2012-08-29T18:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting symbology within a layer.</title>
      <link>https://community.esri.com/t5/python-questions/deleting-symbology-within-a-layer/m-p/551740#M43086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you ! I shall definitely crack on with this. Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 06:59:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/deleting-symbology-within-a-layer/m-p/551740#M43086</guid>
      <dc:creator>HarrietFoster</dc:creator>
      <dc:date>2012-08-30T06:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting symbology within a layer.</title>
      <link>https://community.esri.com/t5/python-questions/deleting-symbology-within-a-layer/m-p/551741#M43087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Let me know if you have any success with this, without 10.1 at my fingertips I'm very curious to see how this might be approached.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 10:54:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/deleting-symbology-within-a-layer/m-p/551741#M43087</guid>
      <dc:creator>ChristopherThompson</dc:creator>
      <dc:date>2012-08-30T10:54:22Z</dc:date>
    </item>
  </channel>
</rss>

