Python AddIns for ArcMap made easy using ArcPy
- Description
- Curriculum
- FAQ
- Reviews
When starting to use the ArcPy site-package of ArcGIS Desktop within Python scripting, it is important to understand the workflow for writing and configuring Python AddIns.
This course, which is suitable for English-speaking students from anywhere in the world, was recorded using ArcGIS 10.3.1 for Desktop but should be equally applicable to versions 10.1, 10.2, 10.4 and 10.5. It is not suitable for ArcGIS Desktop 10.0 and earlier versions because Python AddIns only became available at 10.1. ArcGIS for Desktop licensing is not included, but can be obtained for non-commercial purposes from Esri and its International Distributors under the ArcGIS for Personal Use Program.
All necessary data is downloaded from Natural Earth, and solutions to the exercises are available as attachments to download.
In this 89 minute course of 12 videos you will learn how to:
- Download the Python AddIn Wizard
- Run the Python AddIn Wizard to create a Toolbar with one Button
- Use IDLE and Notepad++ to edit Python and XML to configure seven types of Python AddIns
- Troubleshoot Python AddIns
- Create a Python AddIn that installs an Extension and a Tool
- and much more!
-
1Introduction
The first lecture gives an overview of the topics and exercises which will be covered during the remaining lectures of the course. It also gives an overview of the ArcGIS Desktop and Python versions that are used during the presentations, and some tips about using Notepad++ for XML editing. It then gives an overview about downloading the course data from Natural Earth.
-
2Checking your Software and Data Setup
This lecture will assist you to determine whether you are using suitable versions of ArcGIS Desktop (10.1-10.5) and Python (2.7.x) for the course. It also suggests that you use Notepad++ for XML editing. If you are already comfortable that you are using suitable software then this lecture can be considered optional.
-
3Downloading Natural Earth Data
This lecture will assist you to download the Natural Earth data required for this course (and which can also be used in other courses by the same instructor). If you are already familiar with Natural Earth data and want to take the shortcut of simply copying ne_10m_admin_0_countries.shp (and its accompanying files) into a folder named C:polygeo then this lecture can be considered optional.
-
4Authoring Map of World Countries
This course assumes that you know how to make a map in ArcMap, but in this lecture we will make a simple one, so that we have a common map on which to test the Python AddIns that we create.
-
5Creating Python AddIn with Toolbar and Button
In this lecture you will learn where to find and how to use the Python AddIn Wizard to create a Python AddIn project with a toolbar and initially one button which can be used to zoom the map to the extent of the country of Turkey.
-
6Editing XML and ArcPy code to clone Buttons
In this lecture you will learn how to clone the Zoom To Turkey button, via Python and XML editing, to create another button which zooms to a different country.
-
7Troubleshooting Python AddIns
We deliberately break our Python AddIn in a number of ways, so that you can learn what to look for when a Python AddIn does not work as expected.
-
8Creating Python AddIn with Extension and Tool
In this lecture you learn how to make a second Python AddIn that consists of:
- an extension to add the Natural Earth countries of the world in as a first layer every time a new map is created, and
- a tool on a tool bar that will let us click a point and drag out a circle to select the countries that are either totally or partially within it, and then popup a list of their names.
Social Network