<?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: Retrieving / Setting symbology based on feature layer in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/retrieving-setting-symbology-based-on-feature/m-p/151202#M3912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To add to this, as a beginner I have a very basic doubt regarding symbology. I see that when I add any of my layers through "Add Layer" button, the layer is shown with default symbology and I hence feel the need to set the symbology through feature renderer every time i want to view the layer. But when I display the feature layers in California.GDB (which is given as sample data, that comes with ArcGIS Engine installation) by selecting from "Add Data" button, the layers come up with exactly the correct symbology as expected without the need to set any renderer explicitly. I want to know how this is achieved for California.gdb, where is the symbology information stored. This is a very big doubt that has been haunting, kindly excuse for using your post to add my question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also have similar issue regarding how to persist the symbology while export and import of layers. Request help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pavan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Aug 2013 09:55:04 GMT</pubDate>
    <dc:creator>Santosh_Pavan_KumarNukala</dc:creator>
    <dc:date>2013-08-27T09:55:04Z</dc:date>
    <item>
      <title>Retrieving / Setting symbology based on feature layer</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/retrieving-setting-symbology-based-on-feature/m-p/151201#M3911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on a small add-in that will retrieve information about feature layers (symbology, definition queries, etc.), which will allow users to import / export these settings between map documents.&amp;nbsp; I am looking for some guidance in collecting the symbology properties per feature layer.&amp;nbsp; I have the following code that is hit for each feature layer in a map document:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var featureLayer = (IFeatureLayer)layer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var legendInfo = (ILegendInfo)featureLayer;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int li = 0; li &amp;lt; legendInfo.LegendGroupCount; li++)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var legendGroup = legendInfo.get_LegendGroup(li);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int lg = 0; lg &amp;lt; legendGroup.ClassCount; lg++)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var legendClass = legendGroup.get_Class(lg);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to collect symbology properties (i.e. in an .XML file), to reload into new feature layers in a new MXD?&amp;nbsp; I was looking at the IFeatureRenderer's as well - is this a better method of obtaining symbology properties?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any advice / direction is much appreciated!&amp;nbsp; Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 20:06:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/retrieving-setting-symbology-based-on-feature/m-p/151201#M3911</guid>
      <dc:creator>KevinYanuk</dc:creator>
      <dc:date>2013-08-26T20:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving / Setting symbology based on feature layer</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/retrieving-setting-symbology-based-on-feature/m-p/151202#M3912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To add to this, as a beginner I have a very basic doubt regarding symbology. I see that when I add any of my layers through "Add Layer" button, the layer is shown with default symbology and I hence feel the need to set the symbology through feature renderer every time i want to view the layer. But when I display the feature layers in California.GDB (which is given as sample data, that comes with ArcGIS Engine installation) by selecting from "Add Data" button, the layers come up with exactly the correct symbology as expected without the need to set any renderer explicitly. I want to know how this is achieved for California.gdb, where is the symbology information stored. This is a very big doubt that has been haunting, kindly excuse for using your post to add my question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also have similar issue regarding how to persist the symbology while export and import of layers. Request help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pavan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 09:55:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/retrieving-setting-symbology-based-on-feature/m-p/151202#M3912</guid>
      <dc:creator>Santosh_Pavan_KumarNukala</dc:creator>
      <dc:date>2013-08-27T09:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving / Setting symbology based on feature layer</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/retrieving-setting-symbology-based-on-feature/m-p/151203#M3913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;To add to this, as a beginner I have a very basic doubt regarding symbology. I see that when I add any of my layers through "Add Layer" button, the layer is shown with default symbology and I hence feel the need to set the symbology through feature renderer every time i want to view the layer. But when I display the feature layers in California.GDB (which is given as sample data, that comes with ArcGIS Engine installation) by selecting from "Add Data" button, the layers come up with exactly the correct symbology as expected without the need to set any renderer explicitly. I want to know how this is achieved for California.gdb, where is the symbology information stored. This is a very big doubt that has been haunting, kindly excuse for using your post to add my question.&lt;BR /&gt;&lt;BR /&gt;I also have similar issue regarding how to persist the symbology while export and import of layers. Request help.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Pavan&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No problem - persisting / obtaining symbology 'data' has always seemed pretty hacky to me - in the past, I had done it in Python with symbology layers using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000006n000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000006n000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and just saving layer symbology to apply this way ... I'd really like a nice example of how this works with ArcObjects, and whether I can just use the symbology properties rather than having to constantly re-save layers and store them somewhere.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 12:07:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/retrieving-setting-symbology-based-on-feature/m-p/151203#M3913</guid>
      <dc:creator>KevinYanuk</dc:creator>
      <dc:date>2013-08-27T12:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving / Setting symbology based on feature layer</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/retrieving-setting-symbology-based-on-feature/m-p/151204#M3914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;No problem - persisting / obtaining symbology 'data' has always seemed pretty hacky to me - in the past, I had done it in Python with symbology layers using:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000006n000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000006n000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and just saving layer symbology to apply this way ... I'd really like a nice example of how this works with ArcObjects, and whether I can just use the symbology properties rather than having to constantly re-save layers and store them somewhere.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for help, I have seen this link previously but did not know how create the "Symbology Layer". The Input Layer is the actual layer without symbology, I have a doubt on Symbology layer.. Is it a separate empty feature layer with same feature type as that of Input layer with just a field that matches one of the fields in the input layer used as criteria for symbology.. how is the difference between the colors assigned to various values in symbology layer .. renderer need to be created ?? . Once ApplySymbolgyFromLayer() is applied, the symbology is permanently applied like the case i mentioned for California.gdb when opened from Add Data button. Can you post a sample Symbology Layer and Input layer and apply it.. Request you to kindly reply with an example. plz &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pavan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 08:00:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/retrieving-setting-symbology-based-on-feature/m-p/151204#M3914</guid>
      <dc:creator>Santosh_Pavan_KumarNukala</dc:creator>
      <dc:date>2013-08-28T08:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving / Setting symbology based on feature layer</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/retrieving-setting-symbology-based-on-feature/m-p/151205#M3915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks for help, I have seen this link previously but did not know how create the "Symbology Layer". The Input Layer is the actual layer without symbology, I have a doubt on Symbology layer.. Is it a separate empty feature layer with same feature type as that of Input layer with just a field that matches one of the fields in the input layer used as criteria for symbology.. how is the difference between the colors assigned to various values in symbology layer .. renderer need to be created ?? . Once ApplySymbolgyFromLayer() is applied, the symbology is permanently applied like the case i mentioned for California.gdb when opened from Add Data button. Can you post a sample Symbology Layer and Input layer and apply it.. Request you to kindly reply with an example. plz &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Pavan&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone help on the above please.. How to create a Symbology Layer for an Input layer on which Symbology needs to be applied as mentioned in the link. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pavan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 21:20:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/retrieving-setting-symbology-based-on-feature/m-p/151205#M3915</guid>
      <dc:creator>Santosh_Pavan_KumarNukala</dc:creator>
      <dc:date>2013-08-30T21:20:24Z</dc:date>
    </item>
  </channel>
</rss>

