<?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 Refresh map export upon scale change in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/refresh-map-export-upon-scale-change/m-p/725674#M24027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to write a python script to work with an existing MXD and export the maps to a PDF.&amp;nbsp; A user will provide a new scale for the maps (data driven pages generates a map book).&amp;nbsp; But, so far I cannot get the sclae to update/refresh for the exported PDFs.&amp;nbsp; Can anyone help?&amp;nbsp; I do a RefreshActiveView.&amp;nbsp; Is an MXD save required?&amp;nbsp; Or do I need to do something with ListLayoutElements in addition?&amp;nbsp; If so, what?&amp;nbsp; Thanks for any help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;# the portion where help is needed.....
mxd_left = arcpy.mapping.MapDocument(mxdPathLeft)
df_left = arcpy.mapping.ListDataFrames(mxd_left, "Map View")[0]
print df_left.scale #returns 108769.210, whatever
df_left.scale = user_scale #36000 entered, for instance
print df_left.scale #returns 36000.0
arcpy.RefreshActiveView()&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Sep 2010 00:38:53 GMT</pubDate>
    <dc:creator>JenniferDuerr</dc:creator>
    <dc:date>2010-09-24T00:38:53Z</dc:date>
    <item>
      <title>Refresh map export upon scale change</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/refresh-map-export-upon-scale-change/m-p/725674#M24027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to write a python script to work with an existing MXD and export the maps to a PDF.&amp;nbsp; A user will provide a new scale for the maps (data driven pages generates a map book).&amp;nbsp; But, so far I cannot get the sclae to update/refresh for the exported PDFs.&amp;nbsp; Can anyone help?&amp;nbsp; I do a RefreshActiveView.&amp;nbsp; Is an MXD save required?&amp;nbsp; Or do I need to do something with ListLayoutElements in addition?&amp;nbsp; If so, what?&amp;nbsp; Thanks for any help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;# the portion where help is needed.....
mxd_left = arcpy.mapping.MapDocument(mxdPathLeft)
df_left = arcpy.mapping.ListDataFrames(mxd_left, "Map View")[0]
print df_left.scale #returns 108769.210, whatever
df_left.scale = user_scale #36000 entered, for instance
print df_left.scale #returns 36000.0
arcpy.RefreshActiveView()&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 00:38:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/refresh-map-export-upon-scale-change/m-p/725674#M24027</guid>
      <dc:creator>JenniferDuerr</dc:creator>
      <dc:date>2010-09-24T00:38:53Z</dc:date>
    </item>
  </channel>
</rss>

