AnsweredAssumed Answered

Using GetParameterAsText() with Cursor.

Question asked by tonalca6864 on Nov 11, 2014
Latest reply on Nov 12, 2014 by tonalca6864

Hi, I'm trying to use the GetParameterAsText() for user input.

 

When I use a value instead, it works fine but not with GetParameterAsText()

 

Any help will be greatly appreciate.

 

               NOT WORKING                                                                 WORKING

Capture.JPGCapture2.JPG

 

AreaFilter = arcpy.GetParameterAsText(0)

cur = arcpy.UpdateCursor(outFeatureAREA)

for row in cur:

    if row.F_AREA <= AreaFilter:
        cur.deleteRow(row)
        cur.updateRow(row)

del row
del cur

Outcomes