<?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: export data driven pages and single mxd with only one python script in Transportation Questions</title>
    <link>https://community.esri.com/t5/transportation-questions/export-data-driven-pages-and-single-mxd-with-only/m-p/682425#M2272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: hua17&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello hebertazevedo6,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't had a chance to look at your script, but you can test if an MXD has Data Driven Pages like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;try:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mxd.dataDrivenPages
&amp;nbsp;&amp;nbsp;&amp;nbsp; #export with Data Driven Pages
except:
&amp;nbsp;&amp;nbsp;&amp;nbsp; #export single map&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if that is helpful. Good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 04:42:25 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-12-12T04:42:25Z</dc:date>
    <item>
      <title>export data driven pages and single mxd with only one python script</title>
      <link>https://community.esri.com/t5/transportation-questions/export-data-driven-pages-and-single-mxd-with-only/m-p/682424#M2271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the past months i had a working in a script for export a group of maps from various mxd in a single folder. In this sense, i developed two approachs: (a) one mxd with a single map to export and (b) one mxd with various maps to export, using the driven data pages, both attached in this message. however i want transfome two scripts in only one so that every maps in mxds contained in a folder can be export. Any suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 19:07:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/export-data-driven-pages-and-single-mxd-with-only/m-p/682424#M2271</guid>
      <dc:creator>HebertAzevedo</dc:creator>
      <dc:date>2014-03-27T19:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: export data driven pages and single mxd with only one python script</title>
      <link>https://community.esri.com/t5/transportation-questions/export-data-driven-pages-and-single-mxd-with-only/m-p/682425#M2272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: hua17&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello hebertazevedo6,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't had a chance to look at your script, but you can test if an MXD has Data Driven Pages like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;try:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mxd.dataDrivenPages
&amp;nbsp;&amp;nbsp;&amp;nbsp; #export with Data Driven Pages
except:
&amp;nbsp;&amp;nbsp;&amp;nbsp; #export single map&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if that is helpful. Good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:42:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/export-data-driven-pages-and-single-mxd-with-only/m-p/682425#M2272</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T04:42:25Z</dc:date>
    </item>
  </channel>
</rss>

