<?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: Zooming and Printing in Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/zooming-and-printing-in-python/m-p/78121#M6290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You do not need arcmap open to use arcpy. You can use any interactive python environment like IDLE or run a script that uses arcpy. To zoom and print you can either make a selection and zoom to selection before printing or you can directly edit the extent rectangle of the data frame object and print. Examples of both are in the arcpy.mapping help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Feb 2011 19:38:52 GMT</pubDate>
    <dc:creator>ChrisMathers</dc:creator>
    <dc:date>2011-02-21T19:38:52Z</dc:date>
    <item>
      <title>Zooming and Printing in Python</title>
      <link>https://community.esri.com/t5/python-questions/zooming-and-printing-in-python/m-p/78120#M6289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to zoom in on and area and print without actually opening ArcMap. Or do I have to have ArcMap open to a specific .mxd in order to run the arcpy.Mapping stuff.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 20:38:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/zooming-and-printing-in-python/m-p/78120#M6289</guid>
      <dc:creator>MikePowell</dc:creator>
      <dc:date>2011-02-18T20:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Zooming and Printing in Python</title>
      <link>https://community.esri.com/t5/python-questions/zooming-and-printing-in-python/m-p/78121#M6290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You do not need arcmap open to use arcpy. You can use any interactive python environment like IDLE or run a script that uses arcpy. To zoom and print you can either make a selection and zoom to selection before printing or you can directly edit the extent rectangle of the data frame object and print. Examples of both are in the arcpy.mapping help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 19:38:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/zooming-and-printing-in-python/m-p/78121#M6290</guid>
      <dc:creator>ChrisMathers</dc:creator>
      <dc:date>2011-02-21T19:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Zooming and Printing in Python</title>
      <link>https://community.esri.com/t5/python-questions/zooming-and-printing-in-python/m-p/78122#M6291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, that doesn't really answer my question. I know that I can run script outside of ArcMap ( I prefer to use PythonWin but I am wondering about when I am using the Arcpy.mapping and when I need to zoom in and print something. I am thinking that I need to have a .mxd open to perform those things.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 15:49:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/zooming-and-printing-in-python/m-p/78122#M6291</guid>
      <dc:creator>MikePowell</dc:creator>
      <dc:date>2011-02-22T15:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Zooming and Printing in Python</title>
      <link>https://community.esri.com/t5/python-questions/zooming-and-printing-in-python/m-p/78123#M6292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No. You can run any arcpy funciton outside of an arcmap session. This includes changes of extent and printing. Below will allow you to grab an mxd change the dataframe extent and export without ever opening arcmap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd=arcpy.mapping.MapDocument(some mxd path)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dataframe=arcpy.mapping.ListDataFrames(mxd,{wildcards})[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;newExtent = dataframe.extent&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;newExtent.XMin, newExtent.YMin = something, something&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;newExtent.XMax, newExtent.YMax = something, something&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dataframe.extent=newExtent&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.mapping.ExportToPDF (mxd,r'path and name to new pdf)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 16:21:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/zooming-and-printing-in-python/m-p/78123#M6292</guid>
      <dc:creator>ChrisMathers</dc:creator>
      <dc:date>2011-02-22T16:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Zooming and Printing in Python</title>
      <link>https://community.esri.com/t5/python-questions/zooming-and-printing-in-python/m-p/78124#M6293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, thank you. That was what I was looking for.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 18:52:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/zooming-and-printing-in-python/m-p/78124#M6293</guid>
      <dc:creator>MikePowell</dc:creator>
      <dc:date>2011-02-22T18:52:46Z</dc:date>
    </item>
  </channel>
</rss>

