<?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 Legend not updating between ExportToPDF() calls in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/legend-not-updating-between-exporttopdf-calls/m-p/406815#M4447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not many people around here I guess...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Support logged this as a bug for me:&amp;nbsp; #NIM056303&amp;nbsp; Map legend does not update based on layer visibility when exporting maps using arcpy.mapping.ExportToPDF()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully it will be fixed for final.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Apr 2010 18:40:22 GMT</pubDate>
    <dc:creator>DerekSwingley</dc:creator>
    <dc:date>2010-04-14T18:40:22Z</dc:date>
    <item>
      <title>Legend not updating between ExportToPDF() calls</title>
      <link>https://community.esri.com/t5/mapping-questions/legend-not-updating-between-exporttopdf-calls/m-p/406814#M4446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm exporting some maps and turning layers off and on between exports. I'm expecting the legend to update in my exported .pdfs but it's not. I've logged this with support but figured I'd start a thread here too. Here's a piece of my script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for lyr in lyrs:
 if lyr.name in layer_list:
&amp;nbsp; print 'Exporting', lyr.name
&amp;nbsp; lyr.visible = True
&amp;nbsp; df.extent = lyr.getExtent()
&amp;nbsp; export_path = pdf_base + lyr.name + '.pdf'
&amp;nbsp; arc.ExportToPDF(mxd, export_path)
&amp;nbsp; lyr.visible = False&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there some way to force the legend to update? I was thinking changing the layer's visibility should trigger a legend update. Anyone else seen this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:30:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/legend-not-updating-between-exporttopdf-calls/m-p/406814#M4446</guid>
      <dc:creator>DerekSwingley</dc:creator>
      <dc:date>2021-12-11T18:30:24Z</dc:date>
    </item>
    <item>
      <title>Legend not updating between ExportToPDF() calls</title>
      <link>https://community.esri.com/t5/mapping-questions/legend-not-updating-between-exporttopdf-calls/m-p/406815#M4447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not many people around here I guess...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Support logged this as a bug for me:&amp;nbsp; #NIM056303&amp;nbsp; Map legend does not update based on layer visibility when exporting maps using arcpy.mapping.ExportToPDF()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully it will be fixed for final.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 18:40:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/legend-not-updating-between-exporttopdf-calls/m-p/406815#M4447</guid>
      <dc:creator>DerekSwingley</dc:creator>
      <dc:date>2010-04-14T18:40:22Z</dc:date>
    </item>
    <item>
      <title>Legend not updating between ExportToPDF() calls</title>
      <link>https://community.esri.com/t5/mapping-questions/legend-not-updating-between-exporttopdf-calls/m-p/406816#M4448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your input. The plan is to have NIM056303 fixed for final.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 21:47:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/legend-not-updating-between-exporttopdf-calls/m-p/406816#M4448</guid>
      <dc:creator>JeffMoulds</dc:creator>
      <dc:date>2010-04-19T21:47:52Z</dc:date>
    </item>
  </channel>
</rss>

