<?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 Exporting multiple layouts to multiple jpegs in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/exporting-multiple-layouts-to-multiple-jpegs/m-p/98240#M1146</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;SPAN&gt;I have got a map with 40 layers that need to be printed to JPG. They should all be printed independently. The scope does not change, the background does not change, only the selected layer is different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I come by this problem. I started looking into arcpy but have seen that looping is more in modelbuilder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Dec 2011 13:36:27 GMT</pubDate>
    <dc:creator>ThomasVincent1</dc:creator>
    <dc:date>2011-12-05T13:36:27Z</dc:date>
    <item>
      <title>Exporting multiple layouts to multiple jpegs</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-multiple-layouts-to-multiple-jpegs/m-p/98240#M1146</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;SPAN&gt;I have got a map with 40 layers that need to be printed to JPG. They should all be printed independently. The scope does not change, the background does not change, only the selected layer is different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I come by this problem. I started looking into arcpy but have seen that looping is more in modelbuilder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 13:36:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-multiple-layouts-to-multiple-jpegs/m-p/98240#M1146</guid>
      <dc:creator>ThomasVincent1</dc:creator>
      <dc:date>2011-12-05T13:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple layouts to multiple jpegs</title>
      <link>https://community.esri.com/t5/mapping-questions/exporting-multiple-layouts-to-multiple-jpegs/m-p/98241#M1147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried looking into the arcpy.mapping module?&amp;nbsp; There is an export to JPG function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/ExportToJPEG/00s300000038000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/ExportToJPEG/00s300000038000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can very easily turn on and turn off layers, export, change dataframe extents, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following link is a great starting point:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/dev/blogs/arcgisdesktop/archive/2011/09/30/new-resources-available-for-getting-started-with-python-map-automation.aspx" rel="nofollow noopener noreferrer" target="_blank"&gt;http://blogs.esri.com/dev/blogs/arcgisdesktop/archive/2011/09/30/new-resources-available-for-getting-started-with-python-map-automation.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is some very basic code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
mxd = arcpy.mapping.MapDocument("current")
#turn off all layers
for lyr in arcpy.mapping.ListLayers(mxd):
&amp;nbsp; lyr.visible = False
#turn one layer on at a time and export
for lyr in arcpy.mapping.ListLayers(mxd):
&amp;nbsp; lyr.visible = True
&amp;nbsp; arcpy.mapping.ExportToJPG(mxd, "C:\\Temp\\"+ lyr.name + ".jpg")
&amp;nbsp; lyr.visible = False

del mxd
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:08:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/exporting-multiple-layouts-to-multiple-jpegs/m-p/98241#M1147</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2021-12-11T06:08:38Z</dc:date>
    </item>
  </channel>
</rss>

