<?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: How to add item to exist legend using arcpy? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-add-item-to-exist-legend-using-arcpy/m-p/471993#M36869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a specific symbology defined for the polygon layer, you might want to save the layer as a layerfile (.lyr) before removing it (see &lt;EM&gt;saveACopy (file_name, {version})&lt;/EM&gt; method of &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-mapping/layer-class.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-mapping/layer-class.htm"&gt;Layer—Help | ArcGIS for Desktop&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this help topic (10.3) &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-mapping/legendelement-class.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-mapping/legendelement-class.htm"&gt;LegendElement—Help | ArcGIS for Desktop&lt;/A&gt; sample code is provided that shows the use of the &lt;EM&gt;autoAdd&lt;/EM&gt; property of the legend by python code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jul 2015 22:20:07 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2015-07-02T22:20:07Z</dc:date>
    <item>
      <title>How to add item to exist legend using arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-add-item-to-exist-legend-using-arcpy/m-p/471991#M36867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can i add an item (layer "polygon") in the TOC&amp;nbsp; to exist legend in arcmap using python?&lt;/P&gt;&lt;P&gt;I have a several mxd's with those layers:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/115244_1.jpg" style="height: auto;" /&gt;&lt;IMG alt="2.jpg" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/115245_2.jpg" style="height: auto;" /&gt; &lt;/P&gt;&lt;P&gt;I tried search in &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00s300000041000000" title="http://resources.arcgis.com/en/help/main/10.1/index.html#//00s300000041000000"&gt;ArcGIS Help 10.1&lt;/A&gt; but didn't find a way to do it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 13:24:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-add-item-to-exist-legend-using-arcpy/m-p/471991#M36867</guid>
      <dc:creator>Yaron_YosefCohen</dc:creator>
      <dc:date>2015-07-02T13:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to add item to exist legend using arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-add-item-to-exist-legend-using-arcpy/m-p/471992#M36868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi YYC,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arcpy Mapping does not allow for individual layers to be manually added to a legend.&amp;nbsp; However, you can set a legend to auto-add new layers added the map with add layer or addlayertoGroup to the legend.&amp;nbsp; If you set this property to true before you add the layer you want, it should add it to your legend.&amp;nbsp; If it already exists in the map, either moving it to a group layer or remove and adding it again should add it to the legend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00s300000041000000" title="http://resources.arcgis.com/en/help/main/10.1/index.html#//00s300000041000000"&gt;ArcGIS Help 10.1&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 13:35:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-add-item-to-exist-legend-using-arcpy/m-p/471992#M36868</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2015-07-02T13:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to add item to exist legend using arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-add-item-to-exist-legend-using-arcpy/m-p/471993#M36869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a specific symbology defined for the polygon layer, you might want to save the layer as a layerfile (.lyr) before removing it (see &lt;EM&gt;saveACopy (file_name, {version})&lt;/EM&gt; method of &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-mapping/layer-class.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-mapping/layer-class.htm"&gt;Layer—Help | ArcGIS for Desktop&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this help topic (10.3) &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-mapping/legendelement-class.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-mapping/legendelement-class.htm"&gt;LegendElement—Help | ArcGIS for Desktop&lt;/A&gt; sample code is provided that shows the use of the &lt;EM&gt;autoAdd&lt;/EM&gt; property of the legend by python code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 22:20:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-add-item-to-exist-legend-using-arcpy/m-p/471993#M36869</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-07-02T22:20:07Z</dc:date>
    </item>
  </channel>
</rss>

