{"_id":"56e1d70fe416450e00b9e4bc","__v":2,"project":"55faeacad0e22017005b8265","user":"56267741db1eda0d001c3dbb","version":{"_id":"55faeacad0e22017005b8268","project":"55faeacad0e22017005b8265","__v":33,"createdAt":"2015-09-17T16:31:06.800Z","releaseDate":"2015-09-17T16:31:06.800Z","categories":["55faeacbd0e22017005b8269","55faf550764f50210095078e","55faf5b5626c341700fd9e96","55faf8a7825d5f19001fa386","560052f91503430d007cc88f","560054f73aa0520d00da0b1a","56005aaf6932a00d00ba7c62","56005c273aa0520d00da0b3f","5601ae7681a9670d006d164d","5601ae926811d00d00ceb487","5601aeb064866b1900f4768d","5601aee850ee460d0002224c","5601afa02499c119000faf19","5601afd381a9670d006d1652","561d4c78281aec0d00eb27b6","561d588d8ca8b90d00210219","563a5f934cc3621900ac278c","5665c5763889610d0008a29e","566710a36819320d000c2e93","56ddf6df8a5ae10e008e3926","56e1c96b2506700e00de6e83","56e1ccc4e416450e00b9e48c","56e1ccdfe63f910e00e59870","56e1cd10bc46be0e002af26a","56e1cd21e416450e00b9e48e","56e3139a51857d0e008e77be","573b4f62ef164e2900a2b881","57c9d1335fd8ca0e006308ed","57e2bd9d1e7b7220000d7fa5","57f2b992ac30911900c7c2b6","58adb5c275df0f1b001ed59b","58c81b5c6dc7140f003c3c46","595412446ed4d9001b3e7b37"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"v1","version_clean":"1.0.0","version":"1"},"category":{"_id":"56e1cd21e416450e00b9e48e","pages":["56e1d641bc46be0e002af296","56e1d68292bf640e00b55673","56e1d70fe416450e00b9e4bc"],"__v":3,"project":"55faeacad0e22017005b8265","version":"55faeacad0e22017005b8268","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-03-10T19:38:09.558Z","from_sync":false,"order":12,"slug":"arcmap-addin-application","title":"ArcMap AddIn Application"},"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-03-10T20:20:31.884Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"#Step 1: Install Software Packages#\n\n1. ArcGIS Desktop 10.4\n2. Visual Studio 2012 (Including the following NuGet packages installed)\n  - Json.NET (Popular high-performance JSON framework for .NET)\n  - NLog (Logging platform for .NET with rich log routing and management capabilities)\n  -  SmartThreadPool (Smart Thread Pool, implemented in .NET)\n  - RhinoMocks (Uses Castle Dynamic Proxy to handle proxying the types it needs to mock)\n  - RestSharp (REST and HTTP API Client)\n  - WPF Toolkit\n  - Extended WPF Toolkit\n\n  To install NuGet packages, go to: *Tools toolbar\\Library Package Manager\\Manage NuGet Packages for Soluation…*\n3. ArcObjects SDK 10.4\n\n#Step 2: Download the DGConnect-ESRI GitHub repository#\n[block:embed]\n{\n  \"html\": false,\n  \"url\": \"https://github.com/DigitalGlobe/DGConnect-ESRI\",\n  \"title\": \"DigitalGlobe/DGConnect-ESRI\",\n  \"favicon\": \"https://assets-cdn.github.com/favicon.ico\",\n  \"image\": \"https://avatars3.githubusercontent.com/u/10076238?v=3&s=400\"\n}\n[/block]\n#Step 3: Open the Microsoft Visual Studio Solution#\n\nOpen the Microsoft Visual Studio Solution “smarc.sln” file, from the ESRI Addin folder that you downloaded or cloned, in Microsoft Visual Studio 2012. When Microsoft Visual Studio opens, you will notice the different “Projects” that the Solution (entire application) is comprised of.\n  * GBDX: This project encompasses the majority of the front end functionality and contains the definitions for the various tools that implement the ITool interface from ESRI. In addition, this project will construct the actual addin.\n  * Logging: The wrapper class/project for the NLog class.\n  * NetworkConnections: Contains all of the code that makes the actual calls to the various web services.\n  * Raster: Contains helper classes that allow for the Raster WMS to be added to ArcMap.\n  * StoredQueries: Contains the functionality to communicate with the stored query service.\n\n#Step 4: Build Application#\n\nWhen you are ready to build the application, go to: *Build toolbar\\Build Solution*. This will begin the build sequence and create the ESRI Addin File.\n \n#Step 5: Successful Build#\n\nOnce the build is complete, navigate through the Addin directory to the \"Debug\" subfolder: `...\\GBDX\\bin\\Debug`. If the build was successful, the Gbdx.esri.Addin file should have been generated here.\n\n#Step 6: Install Built GBDX AddIn#\n\nDouble click the Addin file and a dialog will confirm the installation. The DigitalGlobe GBDX Addin should now appear on the toolbar in ArcMap.\n\n**Note:** If the Addin does not automatically appear on the toolbar, you may have to add it manually by going to: Customize tab > Toolbars > GBDX Toolbar.","excerpt":"A developers guide to the GBDX ArcMap AddIn","slug":"arcmap-addin-developers","type":"basic","title":"ArcMap AddIn - Developers"}

ArcMap AddIn - Developers

A developers guide to the GBDX ArcMap AddIn

#Step 1: Install Software Packages# 1. ArcGIS Desktop 10.4 2. Visual Studio 2012 (Including the following NuGet packages installed) - Json.NET (Popular high-performance JSON framework for .NET) - NLog (Logging platform for .NET with rich log routing and management capabilities) - SmartThreadPool (Smart Thread Pool, implemented in .NET) - RhinoMocks (Uses Castle Dynamic Proxy to handle proxying the types it needs to mock) - RestSharp (REST and HTTP API Client) - WPF Toolkit - Extended WPF Toolkit To install NuGet packages, go to: *Tools toolbar\Library Package Manager\Manage NuGet Packages for Soluation…* 3. ArcObjects SDK 10.4 #Step 2: Download the DGConnect-ESRI GitHub repository# [block:embed] { "html": false, "url": "https://github.com/DigitalGlobe/DGConnect-ESRI", "title": "DigitalGlobe/DGConnect-ESRI", "favicon": "https://assets-cdn.github.com/favicon.ico", "image": "https://avatars3.githubusercontent.com/u/10076238?v=3&s=400" } [/block] #Step 3: Open the Microsoft Visual Studio Solution# Open the Microsoft Visual Studio Solution “smarc.sln” file, from the ESRI Addin folder that you downloaded or cloned, in Microsoft Visual Studio 2012. When Microsoft Visual Studio opens, you will notice the different “Projects” that the Solution (entire application) is comprised of. * GBDX: This project encompasses the majority of the front end functionality and contains the definitions for the various tools that implement the ITool interface from ESRI. In addition, this project will construct the actual addin. * Logging: The wrapper class/project for the NLog class. * NetworkConnections: Contains all of the code that makes the actual calls to the various web services. * Raster: Contains helper classes that allow for the Raster WMS to be added to ArcMap. * StoredQueries: Contains the functionality to communicate with the stored query service. #Step 4: Build Application# When you are ready to build the application, go to: *Build toolbar\Build Solution*. This will begin the build sequence and create the ESRI Addin File. #Step 5: Successful Build# Once the build is complete, navigate through the Addin directory to the "Debug" subfolder: `...\GBDX\bin\Debug`. If the build was successful, the Gbdx.esri.Addin file should have been generated here. #Step 6: Install Built GBDX AddIn# Double click the Addin file and a dialog will confirm the installation. The DigitalGlobe GBDX Addin should now appear on the toolbar in ArcMap. **Note:** If the Addin does not automatically appear on the toolbar, you may have to add it manually by going to: Customize tab > Toolbars > GBDX Toolbar.