Wednesday, July 26, 2017

GIS Programming (GIS5103): Module 10


In this week's module, we learned aspects of creating a script tool for ArcGIS and how to modify the script to fit the need of the project's tool. We created a toolbox to house the newly created script tool. The parameters were set using the Parameter Tab in the Properties window so that the imported script will function in ArcMap. After setting the parameters in ArcMap, the script had to be modified in PythonWin. The parameters' variables had to be changed to from specifically located files to open input. The arcpy.GetParameter() function was applied to parameters' variables. Along with the changing the variables, the print statements had to be replaced with arcpy.AddMessage() statements so that ArcMap can print the messages in the Results tab.

No comments:

Post a Comment