wtgeographer

Select Records

Discussion created by wtgeographer on Sep 7, 2012
Latest reply on Sep 9, 2012 by wtgeographer@gmail.com
I am attempting to prepare script which will be used for script tool.
First, I am only interested in selecting features then intend on appending zoom to selected routine to the end of code shown here. 
Having said that I may not even be using the correct tool (select_analysis) but am unsure of one that allows for selection only.

Regardless if I could nail down the syntax I am confident I could switch tools effectively.  Could someone suggest a better tool and

help with debugging.

Thanks in advance...


# This script runs the Select tool. The user supplies the input
import arcpy

# Get the input parameters for the Select tool
infeatures = arcpy.GetParameterAsText(0)
userinput = arcpy.GetParameterAsText(1)
    
# Run the Select tool
arcpy.Select_analysis(infeatures, "NEW_SELECTION", '\Job_Num\" = %s' % userinput)

Outcomes