Xhosa

Script Tool Working but not working correctly

Discussion created by Xhosa on Dec 12, 2011
Latest reply on Dec 12, 2011 by Xhosa
Hello

I am a little confused on why my script tool is not working. I run it and it finishes with no issues but nothing happens. I have even tried to simplify it down and the same thing happens (runs and finishes with no errors but doesn't complete its task)

The tool is a simple add field and then clip to an area. Please help I am trying to get this code to work for a class project as an add on component.

import arcpy
from arcpy import env

try:

#Functions
    inTest = arcpy.GetParameterAsText(0)    
    clipArea = arcpy.GetParameterAsText(1)
    outFeature = arcpy.GetParameterAsText(2)

    arcpy.env.workspace = "S:/TallPinesGIS/Data"

# Add Field to Polygon for ranking
    arcpy.Addmessage('Adding Fields')
    arcpy.AddField_management("inTest","TEST","SHORT","2","#","#","#","NON_NULLABLE","NON_REQUIRED","#")
# Clip Features to current Project Area
    arcpy.Addmessage('Clipping features outside of project area')
    arcpy.Clip_analysis("inTest","clipArea","outFeature","#")

except:
    print arcpy.GetMessages() 

Outcomes