Pretty easy (if you do the exercises) and useful lab this week. We took an existing script that will clip multiple input files and turned it into an ArcGIS tool. First we created a toolbox in ArcCatalog and added a new script tool to the toolbox. Then we associated the tool with our existing script. We needed to make a couple modifications to the script to connect the tool's input fields with inputs that the script needed. Finally we modified the script's print messages into arcpy.AddMessage() so the messages would appear in the dialog's own message space.
Overall, pretty quick but a good basis for how to make ArcGIS custom tools in the future.
No comments:
Post a Comment