I created the following "trial.py":
import arcpy #Get Name Name = str(arcpy.GetParameterAsText(0))
Then I created a toolbox using ArcCatalog and then added a script, pointed the above script file. When I run from the ArcMap/Catalog by double clicking on the script name, it wont give a prompt/dialog to enter the user name. It just says "This tool has no parameters".
What does "0" in arcpy.GetParameterAsText(0) mean?
After getting the user input, I want to pass that parameter to a SQL query on a shapefile, and zoom the map to that location.
- Update 1:
Do I need to set parameter in the properties sheet?
- Update 2:
How do I focus the cursor on the text box so that I don't have to click on the text box using mouse?
Is there anything in Python like tab order in VB?