<?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: data driven pages - check if true - arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/data-driven-pages-check-if-true-arcpy/m-p/343658#M26898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Peter,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm glad that worked out for you. Could you click on the green check mark? See also the note below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Did you post and someone replied with a good answer? Help the community&amp;nbsp; to find these great posts with answers by clicking the green check mark&amp;nbsp; to indicate that it has been answered for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Xander&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Sep 2013 05:12:22 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2013-09-03T05:12:22Z</dc:date>
    <item>
      <title>data driven pages - check if true - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/data-driven-pages-check-if-true-arcpy/m-p/343655#M26895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;is there any code to check if an mxd has data driven pages activated? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if datadrivenpages = true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; then xx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; yy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 06:40:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/data-driven-pages-check-if-true-arcpy/m-p/343655#M26895</guid>
      <dc:creator>PeterMacKenzie1</dc:creator>
      <dc:date>2013-09-02T06:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: data driven pages - check if true - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/data-driven-pages-check-if-true-arcpy/m-p/343656#M26896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Peter,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact there is (at least in 10.1 and 10.2, I didn't check older versions). The &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;arcpy.mapping.MapDocument&lt;/SPAN&gt;&lt;SPAN&gt; has a property "&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;isDDPEnabled&lt;/SPAN&gt;&lt;SPAN&gt;":&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy &amp;nbsp;&amp;nbsp;&amp;nbsp; myMXD = r'C:\Project\_LearnPython\DDPwelaan.mxd' &amp;nbsp;&amp;nbsp;&amp;nbsp; mxd = arcpy.mapping.MapDocument(myMXD) &amp;nbsp;&amp;nbsp;&amp;nbsp; if mxd.isDDPEnabled: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # do something with Data Driven Pages &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass &amp;nbsp;&amp;nbsp;&amp;nbsp; else: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # do something else here &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Links:&lt;BR /&gt;&lt;/STRONG&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00s30000000n000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00s30000000n000000&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00s30000000n000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//00s30000000n000000&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#/DataDrivenPages/00s300000030000000/" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/DataDrivenPages/00s300000030000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 12:19:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/data-driven-pages-check-if-true-arcpy/m-p/343656#M26896</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2013-09-02T12:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: data driven pages - check if true - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/data-driven-pages-check-if-true-arcpy/m-p/343657#M26897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great, that worked. Thankyou!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 21:50:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/data-driven-pages-check-if-true-arcpy/m-p/343657#M26897</guid>
      <dc:creator>PeterMacKenzie1</dc:creator>
      <dc:date>2013-09-02T21:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: data driven pages - check if true - arcpy</title>
      <link>https://community.esri.com/t5/python-questions/data-driven-pages-check-if-true-arcpy/m-p/343658#M26898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Peter,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm glad that worked out for you. Could you click on the green check mark? See also the note below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Did you post and someone replied with a good answer? Help the community&amp;nbsp; to find these great posts with answers by clicking the green check mark&amp;nbsp; to indicate that it has been answered for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Xander&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 05:12:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/data-driven-pages-check-if-true-arcpy/m-p/343658#M26898</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2013-09-03T05:12:22Z</dc:date>
    </item>
  </channel>
</rss>

