<?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: Why DeleteField_management vs DeleteField? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/why-deletefield-management-vs-deletefield/m-p/441818#M14815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You don't need any of these AddToolBox calls:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# 10.0 Code
# Load required toolboxes...
ARCGISHOME="C:/Program Files/ArcGIS/Desktop10.0/"
arcpy.AddToolbox(ARCGISHOME+"ArcToolbox/Toolboxes/Data Management Tools.tbx")
arcpy.AddToolbox(ARCGISHOME+"ArcToolbox/Toolboxes/Analysis Tools.tbx")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;System tools are automatically found.&amp;nbsp; It's only custom toolboxes that need to be added.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Using_tools_in_Python/002z0000000n000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;Using tools in Python&lt;/A&gt;&lt;SPAN&gt; for more info on how you can avoid having to append the toolbox alias.&amp;nbsp; I'm not positive about this, but if the name of the tool is unique (not found in any other system toolbox), you may not have to append the _&amp;lt;alias&amp;gt;.&amp;nbsp; But the best practice is to always identify the toolbox, using _&amp;lt;alias&amp;gt; or other methods mentioned in&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Using_tools_in_Python/002z0000000n000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;Using tools in Python&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 19:46:12 GMT</pubDate>
    <dc:creator>DaleHoneycutt</dc:creator>
    <dc:date>2021-12-11T19:46:12Z</dc:date>
    <item>
      <title>Why DeleteField_management vs DeleteField?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/why-deletefield-management-vs-deletefield/m-p/441817#M14814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've been porting scripts from 9.2 to 10.0 and finding I have to add "_management" onto the end of many of the tools.&amp;nbsp; Why is that?&amp;nbsp; The scripts all worked in 9.2 and 9.3.&amp;nbsp; I'm sure the answer is going to be real simple.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# 10.0 Code &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Load required toolboxes...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ARCGISHOME="C:/Program Files/ArcGIS/Desktop10.0/"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.AddToolbox(ARCGISHOME+"ArcToolbox/Toolboxes/Data Management Tools.tbx")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.AddToolbox(ARCGISHOME+"ArcToolbox/Toolboxes/Analysis Tools.tbx")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.DeleteField_management&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;vs&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# 9.3 Code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Load required toolboxes...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Data Management Tools.tbx")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Analysis Tools.tbx")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.deletefield&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 22:27:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/why-deletefield-management-vs-deletefield/m-p/441817#M14814</guid>
      <dc:creator>RandyKreuziger</dc:creator>
      <dc:date>2011-08-15T22:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why DeleteField_management vs DeleteField?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/why-deletefield-management-vs-deletefield/m-p/441818#M14815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You don't need any of these AddToolBox calls:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# 10.0 Code
# Load required toolboxes...
ARCGISHOME="C:/Program Files/ArcGIS/Desktop10.0/"
arcpy.AddToolbox(ARCGISHOME+"ArcToolbox/Toolboxes/Data Management Tools.tbx")
arcpy.AddToolbox(ARCGISHOME+"ArcToolbox/Toolboxes/Analysis Tools.tbx")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;System tools are automatically found.&amp;nbsp; It's only custom toolboxes that need to be added.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Using_tools_in_Python/002z0000000n000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;Using tools in Python&lt;/A&gt;&lt;SPAN&gt; for more info on how you can avoid having to append the toolbox alias.&amp;nbsp; I'm not positive about this, but if the name of the tool is unique (not found in any other system toolbox), you may not have to append the _&amp;lt;alias&amp;gt;.&amp;nbsp; But the best practice is to always identify the toolbox, using _&amp;lt;alias&amp;gt; or other methods mentioned in&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Using_tools_in_Python/002z0000000n000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;Using tools in Python&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:46:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/why-deletefield-management-vs-deletefield/m-p/441818#M14815</guid>
      <dc:creator>DaleHoneycutt</dc:creator>
      <dc:date>2021-12-11T19:46:12Z</dc:date>
    </item>
  </channel>
</rss>

