This past week was all about creating tools using PythonWin and ArcMap. We took script files that were previously created and created tools from them. In doing so, we created a new toolbox in ArcMap which then allowed us to add a script. In creating the script tool, we filled out all of the required information - such as the name, alias, description, etc. When we were finished with that, we opened up the Properties dialog box for the newly created script tool. There, we were able to complete the Parameters as instructed. In the first image shown below, it shows the result of setting the Input and Output file locations under the Parameters tab, within the the Properties dialog box. We then were ask to make some changes to the original script. One of those changes being to replace the print statements with the arcpy.AddMessage() function. This allowed the statements to be printed, and seen, in the Results box (as shown below).
I thought this assignment was fairly easy, compared to previous modules. I didn't have any real complications throughout this lab.
No comments:
Post a Comment