Creating a tool add-in

Tool add-ins are similar to buttons with the exception that tools require some type of interaction with the map. The zoom-in tool, for example, is a type of tool. Tools should be placed inside a toolbar or tool palette. The properties similar to those of a button. You'll also need to edit the Python script.

Getting ready

The Tool class has a number of properties, including cursor, enabled, and shape. The cursor property sets the cursor for the tool when it is clicked on, and is defined as an integer value corresponding to the cursor types, as follows:

Getting ready

By default, tools are enabled. This can be changed, though, by setting the ...

Get Programming ArcGIS with Python Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.