KG22

Converting scripts to arcpy for use in ags 10

Discussion created by KG22 on Dec 14, 2010
Latest reply on May 23, 2011 by curtvprice
Is anyone else out there undergoing a conversion project to get python scripts written for 9.3 to work in 10?
I'm wondering if there is a guide to the common things that need to be changed? If it is absolutely necessary to upgrade to arcpy and what kinds of experiences people have had doing this?
I am trying to convert about 30 scripts and it's a big job. Besides the find and replace with gp to arcpy I'm finding alot of case sensitive issues like SearchCursors next() method which cannot be Next() like it used to.
Right now I'm stuck on

result1 = arcpy.GetCount_management("TempSelection")
    affectedFeatures = int(result1.GetOutput(0))


the GetOutput call produces an error and I'm trying to work around it.
Any suggestions?

Outcomes