O'Reilly logo

Programming ArcGIS 10.1 with Python Cookbook by Eric Pimpler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 are much the same as you'd find with 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, 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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required