Article directory
0 Preface
ArcGIS plug-in (Add-ins) can make it easier for users to customize and extend ArcGIS Desktop applications. It creates a series of custom tools to provide an open basic framework, packaged and compressed into a single file. Add-ins can be easily shared among users because they require neither an installer nor Component Model (COM) registration. This article records the process of implementing plug-in development.
1. Development tool preparation
Correspondence between ArcGis and Visual Studio version:
It is recommended to install Visual Studio first, and then install ArcGis and its development kit, so that the later installed ArcGis development kit components can be included in Visual Studio. In this article, because the author mainly uses ArcGis10.2 when learning gis software, in order to facilitate development, install Visual Studio2012, and then install the relevant development kit of ArcGis10.2.
(1) Install Visual Studio
Search for the "Visual Studio2012" installation package in browsers such as Baidu, and then install it.
(2) Install ArcGis and its development package
Search for "ArcGis10.2" installation package in Baidu and other browsers, and then install it.
Install the following two files:
2. VS (C#) to create plug-ins
(1) Create a plug-in project
(2) Add form
MessageBox.Show("Hello,ArcGis Add-in!");
(3) Realize the plug-in button function
Form1 form1 = new Form1();
form1.Show();
(4) Modify the configuration file
(5) Generate plug-ins
3. ArcGis uses plug-ins
(1) ArcMap add plug-in
(2) Use the plug-in function
Reference materials:
[1] lqqgis. ArcGIS and Visual Studio version support ; 2020-04-08 [accessed 2023-05-28].
[2] QQ359677345. ArcGIS Engine and Visual Studio version comparison table ; 2021-04-09 [accessed 2023-05-28].
[3] null632269. ArcGIS notes (4): Add-ins for getting started with desktop plug-ins ; 2020-06-15 [accessed 2023-05-28].
[4] HelianthusAugust. Arc GIS engine10.2 and VS2012 installation and matching steps ; 2015-07-01 [accessed 2023-05-28].
[5] Xingluo. ArcMap custom command can not find the directory Add-in Controls solution ; 2018-12-06 [accessed 2023-05-28].
[6] Duck Feather. ArcGIS Add-In Plug-in Development (1) Creation ; 2021-01-31 [accessed 2023-05-28].
[7] Pineapple Boy. Using C# to make ArcMap plug-in— — There is a way for plugins to be common to other arcgis versions ; 2017-09-13 [accessed 2023-05-28].