arcgis pro sdk for .net: introduction, samples, and how to ...•...
TRANSCRIPT
![Page 1: ArcGIS Pro SDK for .NET: Introduction, Samples, and How to ...• System.Windows.Input.ICommandPattern as used in .Net / WPF • ArcGIS Pro ICommand Interface on IPlugInWrapper •](https://reader031.vdocuments.net/reader031/viewer/2022013019/5e57e264b6270e630e7b3afa/html5/thumbnails/1.jpg)
ArcGIS Pro SDK for .NET:Introduction, Samples, and How to Contribute
Uma Harano, Wolfgang Kaiser
![Page 2: ArcGIS Pro SDK for .NET: Introduction, Samples, and How to ...• System.Windows.Input.ICommandPattern as used in .Net / WPF • ArcGIS Pro ICommand Interface on IPlugInWrapper •](https://reader031.vdocuments.net/reader031/viewer/2022013019/5e57e264b6270e630e7b3afa/html5/thumbnails/2.jpg)
What is the ArcGIS Pro SDK
• Customization with Tasks• .NET Addins for extending Pro (C#, VB)• Arcpy for automating Pro (Python 3.4)• Modern asynchronous API (native .NET)• Pro SDK Resources
- ProSamples- ProConcepts- ProTutorials- ProSnippets- API Reference- … more
![Page 3: ArcGIS Pro SDK for .NET: Introduction, Samples, and How to ...• System.Windows.Input.ICommandPattern as used in .Net / WPF • ArcGIS Pro ICommand Interface on IPlugInWrapper •](https://reader031.vdocuments.net/reader031/viewer/2022013019/5e57e264b6270e630e7b3afa/html5/thumbnails/3.jpg)
.NET Extensibility Through Add-ins
• Familiar extensibility model to desktop programmers• Any of ArcGIS Pro’s UI Elements can be used by Add-ins• Add-ins consist of: A module and code files An xml Configuration file (Config.daml) A .esriAddinX deployed to a well known folder
![Page 4: ArcGIS Pro SDK for .NET: Introduction, Samples, and How to ...• System.Windows.Input.ICommandPattern as used in .Net / WPF • ArcGIS Pro ICommand Interface on IPlugInWrapper •](https://reader031.vdocuments.net/reader031/viewer/2022013019/5e57e264b6270e630e7b3afa/html5/thumbnails/4.jpg)
.Net SDK Development Patterns
• ArcGIS Pro is a:- WPF Application using .Net 4.5- Multi-threaded Application
• .NET Addins for extending Pro are:- WPF with .Net 4.5- Are Multi-threaded- Using the ArcGIS Pro API – which comes with Pro out-of-box
![Page 5: ArcGIS Pro SDK for .NET: Introduction, Samples, and How to ...• System.Windows.Input.ICommandPattern as used in .Net / WPF • ArcGIS Pro ICommand Interface on IPlugInWrapper •](https://reader031.vdocuments.net/reader031/viewer/2022013019/5e57e264b6270e630e7b3afa/html5/thumbnails/5.jpg)
DEMO 1
![Page 6: ArcGIS Pro SDK for .NET: Introduction, Samples, and How to ...• System.Windows.Input.ICommandPattern as used in .Net / WPF • ArcGIS Pro ICommand Interface on IPlugInWrapper •](https://reader031.vdocuments.net/reader031/viewer/2022013019/5e57e264b6270e630e7b3afa/html5/thumbnails/6.jpg)
DAML
• Add-ins introduced at 10. • Notion of xml based configuration – Add-in UI aspects declaratively
defined• For Pro, the entire UI is declaratively defined
- Extensions use DAML same as Add-ins
Framework constructs the UI based on the combination of elements declared in Extensions daml + Addins daml- Insert (implicit)- Update- Delete
![Page 7: ArcGIS Pro SDK for .NET: Introduction, Samples, and How to ...• System.Windows.Input.ICommandPattern as used in .Net / WPF • ArcGIS Pro ICommand Interface on IPlugInWrapper •](https://reader031.vdocuments.net/reader031/viewer/2022013019/5e57e264b6270e630e7b3afa/html5/thumbnails/7.jpg)
DAML –element hierarchy
![Page 8: ArcGIS Pro SDK for .NET: Introduction, Samples, and How to ...• System.Windows.Input.ICommandPattern as used in .Net / WPF • ArcGIS Pro ICommand Interface on IPlugInWrapper •](https://reader031.vdocuments.net/reader031/viewer/2022013019/5e57e264b6270e630e7b3afa/html5/thumbnails/8.jpg)
DEMO
![Page 9: ArcGIS Pro SDK for .NET: Introduction, Samples, and How to ...• System.Windows.Input.ICommandPattern as used in .Net / WPF • ArcGIS Pro ICommand Interface on IPlugInWrapper •](https://reader031.vdocuments.net/reader031/viewer/2022013019/5e57e264b6270e630e7b3afa/html5/thumbnails/9.jpg)
Conditions, States, and Declarative UI• We say ArcGIS Pro has a conditional or contextual UI• Simplifies the “Enabled” coding pattern (as compared to ArcObjects)• Conditions and States control the Visibility of Dockpanes and
Ribbons.- Condition == true means Visible- Condition != true means Hidden
![Page 10: ArcGIS Pro SDK for .NET: Introduction, Samples, and How to ...• System.Windows.Input.ICommandPattern as used in .Net / WPF • ArcGIS Pro ICommand Interface on IPlugInWrapper •](https://reader031.vdocuments.net/reader031/viewer/2022013019/5e57e264b6270e630e7b3afa/html5/thumbnails/10.jpg)
Map View
![Page 11: ArcGIS Pro SDK for .NET: Introduction, Samples, and How to ...• System.Windows.Input.ICommandPattern as used in .Net / WPF • ArcGIS Pro ICommand Interface on IPlugInWrapper •](https://reader031.vdocuments.net/reader031/viewer/2022013019/5e57e264b6270e630e7b3afa/html5/thumbnails/11.jpg)
Layout View
![Page 12: ArcGIS Pro SDK for .NET: Introduction, Samples, and How to ...• System.Windows.Input.ICommandPattern as used in .Net / WPF • ArcGIS Pro ICommand Interface on IPlugInWrapper •](https://reader031.vdocuments.net/reader031/viewer/2022013019/5e57e264b6270e630e7b3afa/html5/thumbnails/12.jpg)
Executing Commands
• System.Windows.Input.ICommand Pattern as used in .Net / WPF • ArcGIS Pro ICommand Interface on IPlugInWrapper• Each command (and all UI elements) identified by a unique identifier (id attribute in
DAML)
ICommand proCmd = FrameworkApplication.GetPlugInWrapper(
DAML.Button.esri_mapping_newMapButton) as ICommand;
if (proCmd.CanExecute(null))
proCmd.Execute(null);
![Page 13: ArcGIS Pro SDK for .NET: Introduction, Samples, and How to ...• System.Windows.Input.ICommandPattern as used in .Net / WPF • ArcGIS Pro ICommand Interface on IPlugInWrapper •](https://reader031.vdocuments.net/reader031/viewer/2022013019/5e57e264b6270e630e7b3afa/html5/thumbnails/13.jpg)
DEMO
![Page 14: ArcGIS Pro SDK for .NET: Introduction, Samples, and How to ...• System.Windows.Input.ICommandPattern as used in .Net / WPF • ArcGIS Pro ICommand Interface on IPlugInWrapper •](https://reader031.vdocuments.net/reader031/viewer/2022013019/5e57e264b6270e630e7b3afa/html5/thumbnails/14.jpg)
ArcGIS Pro SDK Components
• ArcGIS Pro SDK Visual Studio Extensions:- ArcGIS Pro SDK for .NET- ArcGIS Pro SDK for .NET (Utilities) - ArcGIS Pro SDK for .NET (Snippets)
• Deployed using VSIX packages• No admin privilege required.• Hosted on the Visual Studio Gallery
![Page 15: ArcGIS Pro SDK for .NET: Introduction, Samples, and How to ...• System.Windows.Input.ICommandPattern as used in .Net / WPF • ArcGIS Pro ICommand Interface on IPlugInWrapper •](https://reader031.vdocuments.net/reader031/viewer/2022013019/5e57e264b6270e630e7b3afa/html5/thumbnails/15.jpg)
Developer Resources
• Accessible from https://pro.arcgis.com/en/pro-app/• All ArcGIS Pro SDK Developer Resources hosted on GitHub.com/Esri• http://github.com/Esri/arcgis-pro-sdk...• Repositories available with ArcGIS Pro 1.1 Beta:
- arcgis-pro-sdk- ProConcepts, ProSamples, ProGuides, ProTutorial, ProSnippets
- arcgis-pro-sdk-common- Library of utility methods to use in your Add-in.
- arcgis-pro-sdk-community-samples- Accept pull requests from the user community.
• Online API Reference
Demo