<?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 Your 5 most common ArcPy commands that you put into the Python Window? in Transportation Questions</title>
    <link>https://community.esri.com/t5/transportation-questions/your-5-most-common-arcpy-commands-that-you-put/m-p/420430#M1443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It seems that arcpy is becoming more and more popular for a quick geoprocessing environment to get work done. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I am just surveying the GIS community to see what are your top 5 commands that you put into the Python window to geoprocess or set overwrite commands etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; ....5,4,3,2,1 and what you try and accomplish in this command.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2012 01:13:52 GMT</pubDate>
    <dc:creator>Ryan_Galbraith</dc:creator>
    <dc:date>2012-09-26T01:13:52Z</dc:date>
    <item>
      <title>Your 5 most common ArcPy commands that you put into the Python Window?</title>
      <link>https://community.esri.com/t5/transportation-questions/your-5-most-common-arcpy-commands-that-you-put/m-p/420430#M1443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It seems that arcpy is becoming more and more popular for a quick geoprocessing environment to get work done. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I am just surveying the GIS community to see what are your top 5 commands that you put into the Python window to geoprocess or set overwrite commands etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; ....5,4,3,2,1 and what you try and accomplish in this command.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 01:13:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/your-5-most-common-arcpy-commands-that-you-put/m-p/420430#M1443</guid>
      <dc:creator>Ryan_Galbraith</dc:creator>
      <dc:date>2012-09-26T01:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Your 5 most common ArcPy commands that you put into the Python Window?</title>
      <link>https://community.esri.com/t5/transportation-questions/your-5-most-common-arcpy-commands-that-you-put/m-p/420431#M1444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: mzcoyle&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I mostly use the python window to test code before putting it in a tool or stand alone script. I find I never only do things once, making one off actions in the python window a waste of time. If you want to know the mostly common arcpy functions in any python code I write; I would have to say all the cursors, describe, FCtoFC and various mapping module calls (MapDocument, ListLayers etc). In my library, it is a rare script indeed that doesn't use one (or even most) of those functions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 13:56:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/your-5-most-common-arcpy-commands-that-you-put/m-p/420431#M1444</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-09-26T13:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Your 5 most common ArcPy commands that you put into the Python Window?</title>
      <link>https://community.esri.com/t5/transportation-questions/your-5-most-common-arcpy-commands-that-you-put/m-p/420432#M1445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was looking for more stuff like...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;arcpy.env.workspace = �??Current�?�&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;arcpy.env.overwirteoutput = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;arcpy.ListPrinterNames()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;import os&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or the famously&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;import this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any others that you commonly use?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 20:51:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/your-5-most-common-arcpy-commands-that-you-put/m-p/420432#M1445</guid>
      <dc:creator>Ryan_Galbraith</dc:creator>
      <dc:date>2012-09-28T20:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Your 5 most common ArcPy commands that you put into the Python Window?</title>
      <link>https://community.esri.com/t5/transportation-questions/your-5-most-common-arcpy-commands-that-you-put/m-p/420433#M1446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: ldanzinger&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I'm writing in the Python window (and not PythonWin), I'm typically doing something with the mapping module to do something to all the layers in a map, so some common ones I use are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd = arcpy.mapping.MapDocument("CURRENT")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;df = arcpy.mapping.ListDataFrames(mxd)[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layers = arcpy.mapping.ListLayers(mxd,"",df)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for layer in layers:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 21:56:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/your-5-most-common-arcpy-commands-that-you-put/m-p/420433#M1446</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-09-28T21:56:51Z</dc:date>
    </item>
  </channel>
</rss>

