ArcGIS Pro Version: 3.6.0.59527
This repository provides a comprehensive set of ready-to-use code snippets for ArcGIS Pro SDK addin development. These snippets provide pre-written examples for common tasks and functionalities within the ArcGIS Pro SDK for .NET, allowing developers to quickly integrate specific features into their addins. Addin developers are also welcome to use these examples as a learning resource. These snippets are provided "as-is" and are not supported.
The Visual Studio solution in this repo is organized into folders, each corresponding to a specific functional area, or category, in ArcGIS Pro, such as Editing, Map Exploration, Map Authoring, Geodatabase, Layouts, and more. Within each folder, C# class files contain the relevant code snippets demonstrating common tasks and workflows for each particular category. Each snippet is enclosed within a #region...#endregion describing its purpose.
- Clone the Repository
- Use Git to clone the repository to your local machine:
git clone https://github.com/Esri/arcgis-pro-sdk-snippets.git- Explore the Snippet Folders
- The solution is organized into folders by functional area (e.g., Editing, Map Authoring, Map Exploration, Geodatabase, Layouts).
- Each folder contains class files with code snippets relevant to that area/category.
- Find Relevant Snippets
- Browse the folders and open the class files.
- Each code snippet is enclosed within a
#region...#endregiondescribing its purpose.
- Copy and Use Snippets
- Select the snippet(s) you need and copy it/them into your own ArcGIS Pro add-in or application.
- Review any comments for context, prerequisites, or threading requirements (e.g., some snippets require particular layers, to be run on the QueuedTask, etc.).
- Reference for GitHub Copilot
- This repository can be used as a reference for GitHub Copilot and other AI coding assistants. Prompt Copilot with questions about ArcGIS Pro SDK tasks and use these snippets as examples.
- Learn and Experiment
- Use the snippets to learn ArcGIS Pro SDK patterns and best practices.
- Experiment by modifying snippets to fit your project needs.
- Stay Up to Date
- Periodically pull updates from the repository to get new or improved snippets:
git pull origin mainTip:
If you use Visual Studio’s “Find in Files” or GitHub Copilot’s search features, you can quickly locate snippets for specific tasks or API calls.
Note:
Some snippets may require specific data or context (e.g., a particular layer name or project item). Review the comments in each snippet for details.
- ArcGIS Pro 3.6
- Windows 11 Home, Pro, Enterprise (64 bit)
- Microsoft .NET Runtime 8.0.0 or better. Download .NET 8.0
- Visual Studio 2022 (v17.13 or higher)
- Community Edition
- Professional Edition
- Enterprise Edition
Released alongside .NET 8, the Visual Studio 2022 17.8 release brings support for .NET 8.
- API Reference online
- ProSnippets: ready-made snippets of code for your ArcGIS Pro add-ins..
- ArcGIS Pro SDK for .NET (pro.arcgis.com)
- arcgis-pro-sdk-community-samples
- ArcGIS Pro DAML ID Reference
- ArcGIS Pro SDK icons
Esri welcomes contributions from anyone and everyone. For more information, see our guidelines for contributing.
Find a bug or want to request a new feature? Let us know by submitting an issue.
Copyright 2025 Esri
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
A copy of the license is available in the repository's LICENSE.txt file.
ArcGIS Pro 3.6 SDK for Microsoft .NET Framework
Home | API Reference | Requirements | Download | Samples