ArcGISScripting 9.3 to ArcPy 10.0 Tricks

OLD to NEW Replacements:

  • import arcgisscripting – import arcpy
  • gp = arcgisscripting.create(9.3) – N/A
  • gp.toolbox = “Data Management” – from arcpy import management as mana
  • gp.toolbox = “Analysis” – from arcpy import analysis as ana
  • gp – arcpy
  • gp.addmessage – arcpy.AddMessage
  • gp.Append_management = NO CHANGE
  • gp.Copy – arcpy.Copy_management
  • gp.CreateFolder – arcpy.CreateFolder_management
  • gp.Delete – arcpy.Delete_management
  • gp.DeleteRows – arcpy.DeleteRows_management
  • gp.Exists(dataset) – NO CHANGE.
  • gp.GetCount_management = NO CHANGE, returns a Result object.
    • indata_count_result.GetOutput(0) – arcpyGetCount_Result.getOutput(0)
  • gp.MakeTableView – arcpy.MakeTableView_management
  • gp.Rename – arcpy.Rename_management
  • gp.TableSelect – arcpy.TableSelect_analysis
  • gp.TableToGeodatabase – arcpy.TableToGeodatabase_conversion
  • gp.workspace – arcpy.env.workspace

#

This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

Comments are closed.