<?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: dictionary of all ArcPy toolbox commands in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347145#M27224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The tool ListTools will give them to you too...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for newToolName in arcpy.ListTools():
&amp;nbsp;&amp;nbsp;&amp;nbsp; print newToolName&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 16:21:25 GMT</pubDate>
    <dc:creator>RDHarles</dc:creator>
    <dc:date>2021-12-11T16:21:25Z</dc:date>
    <item>
      <title>dictionary of all ArcPy toolbox commands</title>
      <link>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347141#M27220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I frequently do my coding in the excellent text-editor Vim. It has a feature to do text-completion from a dictionary, which I would like to use - is there a plain list of all the toolbox commands + Spatial Analyst functions that one could use?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I type in Vim I am often not sure about the capitalization etc of the commands.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 08:56:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347141#M27220</guid>
      <dc:creator>HugoAhlenius</dc:creator>
      <dc:date>2012-04-25T08:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: dictionary of all ArcPy toolbox commands</title>
      <link>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347142#M27221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you say "toolbox commands", are you talking about the exact name of the tool (with proper capitalization)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 12:03:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347142#M27221</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2012-04-25T12:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: dictionary of all ArcPy toolbox commands</title>
      <link>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347143#M27222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When you say "toolbox commands", are you talking about the exact name of the tool (with proper capitalization)?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I am primarily thinking of all the arcpy.something tools (not the arguments etc though). Maybe constants and classes would be useful as well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 12:05:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347143#M27222</guid>
      <dc:creator>HugoAhlenius</dc:creator>
      <dc:date>2012-04-25T12:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: dictionary of all ArcPy toolbox commands</title>
      <link>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347144#M27223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm, I think I got it - in my iPython console, I just type arcpy. and then pressed &amp;lt;tab&amp;gt; - and I got it all! Another way is to do a dir(arcpy) and dir(arcpy.sa).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 12:10:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347144#M27223</guid>
      <dc:creator>HugoAhlenius</dc:creator>
      <dc:date>2012-04-25T12:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: dictionary of all ArcPy toolbox commands</title>
      <link>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347145#M27224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The tool ListTools will give them to you too...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for newToolName in arcpy.ListTools():
&amp;nbsp;&amp;nbsp;&amp;nbsp; print newToolName&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:21:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347145#M27224</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2021-12-11T16:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: dictionary of all ArcPy toolbox commands</title>
      <link>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347146#M27225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Now, how would I get all constants... ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 12:42:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347146#M27225</guid>
      <dc:creator>HugoAhlenius</dc:creator>
      <dc:date>2012-04-25T12:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: dictionary of all ArcPy toolbox commands</title>
      <link>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347147#M27226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;...as well as functions and classes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess one can always copy/paste them from the help file, if nothing else...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 12:44:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347147#M27226</guid>
      <dc:creator>HugoAhlenius</dc:creator>
      <dc:date>2012-04-25T12:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: dictionary of all ArcPy toolbox commands</title>
      <link>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347148#M27227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When Arc 10 was first released, I attempted to write a script to convert everything in a 9.x script to a 10.x script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I never used it and I know there were some issues with it but you can use the ideas/lists/dictionaries from it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;#
# Updates Tools, Functions, Environments &amp;amp; a few Methods from 9.x to "case-sensitive" 10.x
#
# Note: Rewrites script(s) to hardcoded "ARC10" directory.
#
# Thoughts:
#&amp;nbsp;&amp;nbsp; Can I get a list of all Methods &amp;amp; Properties?
#
# R.D. Harles
# 11-21-10
#

import arcpy, os, sys, string

# Output directory for updated scripts
if not os.path.exists("ARC10"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; os.mkdir("ARC10")

# Create the master dictionary
masterDict={}

# Add tools to the masterDict (with and without the toolbox)
# Note: The "(" is required because some tools start with the same word as others (e.g. gp.select &amp;amp; gp.selectlayerbylocation)
for newToolName in arcpy.ListTools():
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Without toolbox (e.g. clip)
&amp;nbsp;&amp;nbsp;&amp;nbsp; masterDict["gp."+newToolName.split("_")[0].lower()+"("] = "arcpy."+newToolName+"("&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; # With toolbox (e.g. clip_management)
&amp;nbsp;&amp;nbsp;&amp;nbsp; masterDict["gp."+newToolName.lower()+"("] = "arcpy."+newToolName+"("&amp;nbsp;&amp;nbsp; 

# Add environments to the masterDict
for env in arcpy.ListEnvironments():&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; masterDict["gp."+env.lower()] = "arcpy.env."+env
# These don't get listed for some reason?
masterDict["gp.overwriteoutput"] = "arcpy.env.overwriteOutput"
masterDict["gp.GetParameterAsText"] = "arcpy.env.GetParameterAsText"
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
# Add functions to the masterDict
functions = ["AddError","AddFieldDelimiters","AddIDMessage","AddMessage","AddReturnMessage","AddToolbox","AddWarning",
"AsShape","CheckExtension","CheckInExtension","CheckOutExtension","CheckProduct","ClearEnvironment",
"Command","CopyParameter","CreateObject","CreateRandomValueGenerator","CreateScratchName","CreateUniqueName",
"Describe","Exists","GetArgumentCount","GetIDMessage","GetInstallIInfo","GetMaxSeverity","GetMessage",
"GetMessageCount","GetMessages","GetParameter","GetParameterAsText","GetParameterCount","GetParameterInfo",
"GetParameterValue","GetReturnCode","GetSeverity","GetSeverityLevel","GetSystemEnvironment","ImportToolbox",
"InsertCursor","IsSynchronous","ListDatasets","ListEnvironments","ListFeatureClasses","ListFields","ListFiles",
"ListIndexes","ListInstallations","ListPrinterNames","ListRasters","ListTables","ListToolboxes","ListTools",
"ListVersions","ListWorkspaces","LoadSettings","NumpyArrayToRaster","ParseFieldName","ParseTableName",
"ProductInfo","RasterToNumPyArray","RefreshActiveView","RefreshCatalog","RefreshTOC","RemoveToolbox",
"ResetEnvironments","ResetProgressor","SaveSettings","SearchCursor","SetParameter","SetParameterAsText",
"SetProduct","SetProgressor","SetProgressorLabel","SetProgressorPosition","SetSeverityLevel","TestSchemaLock",
"UpdateCursor","Usage","ValidateFieldName","ValidateTableName"]
for func in functions:
&amp;nbsp;&amp;nbsp;&amp;nbsp; masterDict["gp."+func.lower()] = "arcpy."+func&amp;nbsp;&amp;nbsp;&amp;nbsp; 

# Add cursor methods to masterDict
methods = ["next","reset","newRow","insertRow","updateRow","deleteRow","getValue","isNull","setNull","setValue","getPart","getObject","removeAll","partCount"]
for meth in methods:
&amp;nbsp;&amp;nbsp;&amp;nbsp; masterDict[meth.lower()] = meth

# This isn't going to work.&amp;nbsp; There could be up to 3 replaceable items on one line and only item item per line can be replace the way the script is written.
### Codes and return values
##codesReturnValues = ["ArcView","ArcEditor","ArcInfo","Engine","EngineGeoDB","ArcServer","AlreadyInitalized","Available","Unavailable","NotLicensed","Failed"]
##for crv in codesReturnValues:
##&amp;nbsp;&amp;nbsp;&amp;nbsp; masterDict[crv.lower()] = crv

# Add misc to masterDict
masterDict["gp = arcgisscripting.create()"] = ""
masterDict["gp = arcgisscripting.create(9.3)"] = ""
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
# Loop through python scripts
for script in os.listdir(''):
&amp;nbsp;&amp;nbsp;&amp;nbsp; if script.endswith('.py'):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "\nProcessing "+script+"..."

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Open new file (output to hardcoded "ARC10" directory)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wfile = open("ARC10/"+script, "w")

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count=0
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Read existing script (line by line)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for line in open(script).readlines():&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Make the line lower case to ensure match with lower case item
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lower = line.lower()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count=count+1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Loop through master dictionary
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for item in masterDict:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Get the key (2nd part of the pair)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; key = masterDict[item]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Check for a match in the line
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = lower.find(item)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Continue if there is a match
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if x != -1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Do the search &amp;amp; replace
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fix = lower.replace(item, key)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Write it (changed line)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wfile.write(fix)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print " "+script+": (line"+str(count)+") Replacing '"+item+"' with '"+key+"'"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if x == -1:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Write it (unchanged line)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wfile.write(line)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print " "+script+": (line"+str(count)+") Writing original line: "+line 

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Close file&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wfile.close()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ## Replace arcgisscripting with arcpy&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Open file in read mode
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file = open("ARC10/"+script, "r")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Read entire file
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text = file.read()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Closes the read session
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file.close()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file = open("ARC10/"+script, "w")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "\n ...Replacing arcgisscripting with arcpy"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file.write(text.replace("arcgisscripting", "arcpy"))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file.close()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 

print "\nDone.\n"&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:21:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347148#M27227</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2021-12-11T16:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: dictionary of all ArcPy toolbox commands</title>
      <link>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347149#M27228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok cool, thanks - I have to look at that more closely at some point to see if I understand what your script does. I snooped around in the folder C:\ProgramX86\gis\ArcGIS\Desktop10.0\arcpy\arcpy, and I saw that one can grab a lot of things from those files as well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 13:02:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347149#M27228</guid>
      <dc:creator>HugoAhlenius</dc:creator>
      <dc:date>2012-04-25T13:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: dictionary of all ArcPy toolbox commands</title>
      <link>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347150#M27229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Pyscripter is quite nice to use. It was mentioned in one of the geoprocessing blogs on here&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://code.google.com/p/pyscripter/"&gt;http://code.google.com/p/pyscripter/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 12:44:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/dictionary-of-all-arcpy-toolbox-commands/m-p/347150#M27229</guid>
      <dc:creator>BenHolmes</dc:creator>
      <dc:date>2012-04-26T12:44:50Z</dc:date>
    </item>
  </channel>
</rss>

