<?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 Symbology issue: import lyr file for multiple fc's and remove values where count = 0 in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/symbology-issue-import-lyr-file-for-multiple-fc-s/m-p/464990#M12610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I see my problem could have 2 (or more?) solutions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;approach1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so I have a feature class with a field containing unique values (say A thru Z). I created a nice polygon lyr file for it. Let's called it full_alphabet.lyr. I exported each value and created A.shp, B.shp etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I added all 26 shps to my view. I tested the following manually and it sort of works but there's always a 'but' with ESRI...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when I apply the full_alphabet.lyr to one of my shp's (other values are unchecked in the lyr)... the color matches of course but in the TOC I still see all 26 colors. I just want it to show color A for A.shp and B for B.shp. So I was thinking is there a way to remove values in the symbology tab where count ==0?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;approach2:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have my feature class with a field containing unique values (say A thru Z). I could copy/paste this layer 25 times and apply a definition query. import the full_alphabet.lyr 25 times and the colors will match but my TOC will contain all 26 values again. How to trim for unique values? so my fc will have def. que=a and only color a etc. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think approach 2 is the cleanest, because I don't have to import and create new SDE fc's.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps, there's another way? Id' like to automate this with a c# addin. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jun 2012 15:46:35 GMT</pubDate>
    <dc:creator>SimonWillis</dc:creator>
    <dc:date>2012-06-12T15:46:35Z</dc:date>
    <item>
      <title>Symbology issue: import lyr file for multiple fc's and remove values where count = 0</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/symbology-issue-import-lyr-file-for-multiple-fc-s/m-p/464990#M12610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I see my problem could have 2 (or more?) solutions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;approach1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so I have a feature class with a field containing unique values (say A thru Z). I created a nice polygon lyr file for it. Let's called it full_alphabet.lyr. I exported each value and created A.shp, B.shp etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I added all 26 shps to my view. I tested the following manually and it sort of works but there's always a 'but' with ESRI...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when I apply the full_alphabet.lyr to one of my shp's (other values are unchecked in the lyr)... the color matches of course but in the TOC I still see all 26 colors. I just want it to show color A for A.shp and B for B.shp. So I was thinking is there a way to remove values in the symbology tab where count ==0?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;approach2:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have my feature class with a field containing unique values (say A thru Z). I could copy/paste this layer 25 times and apply a definition query. import the full_alphabet.lyr 25 times and the colors will match but my TOC will contain all 26 values again. How to trim for unique values? so my fc will have def. que=a and only color a etc. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think approach 2 is the cleanest, because I don't have to import and create new SDE fc's.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps, there's another way? Id' like to automate this with a c# addin. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 15:46:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/symbology-issue-import-lyr-file-for-multiple-fc-s/m-p/464990#M12610</guid>
      <dc:creator>SimonWillis</dc:creator>
      <dc:date>2012-06-12T15:46:35Z</dc:date>
    </item>
  </channel>
</rss>

