<?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 Hello. I am very green with Python. I'm trying to create a series of maps using the time slider. I found a script that works (produces the maps in PDF), but the extent is incorrect and the resolution is low. Help... understanding that I'm very new to Pyth in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/hello-i-am-very-green-with-python-i-m-trying-to/m-p/409140#M32280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is my script&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; &lt;SPAN style="color: #004da8;"&gt;import&lt;/SPAN&gt; arcpy&lt;/P&gt;&lt;P&gt;... &lt;SPAN style="color: #004da8;"&gt;import&lt;/SPAN&gt; os&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;... mxd = arcpy.mapping.MapDocument(r"G:\GIS\Maps\Projects.mxd")&lt;/P&gt;&lt;P&gt;... df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]&lt;/P&gt;&lt;P&gt;... df.time.currentTime = df.time.startTime&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;... &lt;SPAN style="color: #004da8;"&gt;while&lt;/SPAN&gt; df.time.currentTime &amp;lt;= df.time.endTime:&lt;/P&gt;&lt;P&gt;... &lt;SPAN style="color: #808080;"&gt;# An example str(newTime) would be: "2008-12-29 02:19:59"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;... &lt;SPAN style="color: #808080;"&gt;# The following line splits the string at the space and takes the first &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;... &lt;SPAN style="color: #808080;"&gt;# item in the resulting string. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;... fileName = str(df.time.currentTime).split(" ")[0] + ".pdf"&lt;/P&gt;&lt;P&gt;... arcpy.mapping.ExportToPDF(mxd, os.path.join(r"G:\GIS\GIS_Analysis\CS_Working_Group\Time Maps", fileName), df)&lt;/P&gt;&lt;P&gt;... df.time.currentTime = df.time.currentTime + df.time.timeStepInterval&lt;/P&gt;&lt;P&gt;... &lt;SPAN style="color: #004da8;"&gt;del&lt;/SPAN&gt; mxd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Mar 2017 17:18:11 GMT</pubDate>
    <dc:creator>DaveWatson1</dc:creator>
    <dc:date>2017-03-03T17:18:11Z</dc:date>
    <item>
      <title>Hello. I am very green with Python. I'm trying to create a series of maps using the time slider. I found a script that works (produces the maps in PDF), but the extent is incorrect and the resolution is low. Help... understanding that I'm very new to Pyth</title>
      <link>https://community.esri.com/t5/python-questions/hello-i-am-very-green-with-python-i-m-trying-to/m-p/409140#M32280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is my script&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; &lt;SPAN style="color: #004da8;"&gt;import&lt;/SPAN&gt; arcpy&lt;/P&gt;&lt;P&gt;... &lt;SPAN style="color: #004da8;"&gt;import&lt;/SPAN&gt; os&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;... mxd = arcpy.mapping.MapDocument(r"G:\GIS\Maps\Projects.mxd")&lt;/P&gt;&lt;P&gt;... df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]&lt;/P&gt;&lt;P&gt;... df.time.currentTime = df.time.startTime&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;... &lt;SPAN style="color: #004da8;"&gt;while&lt;/SPAN&gt; df.time.currentTime &amp;lt;= df.time.endTime:&lt;/P&gt;&lt;P&gt;... &lt;SPAN style="color: #808080;"&gt;# An example str(newTime) would be: "2008-12-29 02:19:59"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;... &lt;SPAN style="color: #808080;"&gt;# The following line splits the string at the space and takes the first &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;... &lt;SPAN style="color: #808080;"&gt;# item in the resulting string. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;... fileName = str(df.time.currentTime).split(" ")[0] + ".pdf"&lt;/P&gt;&lt;P&gt;... arcpy.mapping.ExportToPDF(mxd, os.path.join(r"G:\GIS\GIS_Analysis\CS_Working_Group\Time Maps", fileName), df)&lt;/P&gt;&lt;P&gt;... df.time.currentTime = df.time.currentTime + df.time.timeStepInterval&lt;/P&gt;&lt;P&gt;... &lt;SPAN style="color: #004da8;"&gt;del&lt;/SPAN&gt; mxd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 17:18:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/hello-i-am-very-green-with-python-i-m-trying-to/m-p/409140#M32280</guid>
      <dc:creator>DaveWatson1</dc:creator>
      <dc:date>2017-03-03T17:18:11Z</dc:date>
    </item>
  </channel>
</rss>

