Creating the ArcGIS Python add-in
With the user interface complete for Parcel Viewer, we need a way to display the dialog box for the user input. The easiest way to accomplish this in ArcGIS Desktop is to tie the interface to an ArcGIS Python Add-In Wizard. In this step, we'll create a Button add-in that will display the user interface when clicked on:
In Chapter 3, Automating the Production of Map Books with Data-Driven Pages and ArcPy, you learned how to use the ArcGIS Python Add-In Wizard to create add-ins. If you need to refresh your memory on this topic, refer to the Exporting the map series with ArcPy Mapping and Automating the Production of Map Books with Data-Driven Pages and the ArcPy section in the same chapter.
Create a folder in
C:\ArcGIS_Blueprint_Python\ch6
calledParcelViewer
. This will be the container folder for the Python add-in.Start the ArcGIS Python Add-In Wizard and add the settings shown under the Project Settings tab in the following screenshot:
Click on the Add-In Contents...