GithubHelp home page GithubHelp logo

esri / arcgis-pro-sdk-community-samples Goto Github PK

View Code? Open in Web Editor NEW
233.0 77.0 354.0 376.53 MB

ArcGIS Pro SDK for Microsoft .NET Framework Community Samples

License: Apache License 2.0

C# 99.26% Python 0.04% HTML 0.12% XSLT 0.14% CSS 0.05% Visual Basic .NET 0.39%
arcgis-pro-sdk c-sharp sdk samples native-development dotnet

arcgis-pro-sdk-community-samples's Introduction

arcgis-pro-sdk-community-samples

ArcGIS Pro 3.3 SDK for Microsoft .NET Framework


 This page was generated by a tool.
 Manual changes to this page are lost when the page is regenerated.

This repository contains ArcGIS Pro Add-In Samples for the ArcGIS Pro 3.3 SDK for Microsoft .NET Framework. The samples are demonstrating the key functionalities in the following functional areas of ArcGIS Pro: Content, Configuration, Framework, Editing, Geodatabase, Geometry, Geoprocessing, Layouts, Reports, Map Authoring, Map Exploration, Utility Network, Network Diagram, Sharing, TaskAssistant, and Workflow.

Features

This repository contains ArcGIS Pro Add-In Samples outlined in this ArcGIS Pro Add-In Sample list

Instructions

To contribute samples, it is recommended to have some background on Git and GitHub.

If you wish to contribute to this website, please

  • fork this repository on GitHub,
  • write your sample into a branch of your forked repo
  • make sure that all class files have triple slash comments
  • add the copyright header on all source files (including config.daml)
  • push your sample to a named branch,
  • then send a pull request.

Detailed instructions can be found here: ProGuide: Contribute Samples

Resources

You can use the above Pro SDK Icons as the image for your controls on the Pro Ribbon. Code snippet below provides the pack URI to be used in your add-in's config.daml.
<button...largeImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/<ImageNameHere>"/>

The icons below are new at ArcGIS Pro 2.8. To use these icons, download the Icons.zip from this link: ArcGIS Pro SDK Icons

Samples Data

  • Sample data for ArcGIS Pro SDK Community Samples can be downloaded from the repo releases page.

Requirements

The requirements for the machine on which you develop your ArcGIS Pro add-ins are listed here.

ArcGIS Pro

  • ArcGIS Pro 3.3

Supported platforms

  • Windows 11 (Home, Pro, Enterprise) (64 bit)
  • Windows 10 (Home, Pro, Enterprise) (64 bit)

ArcGIS Pro system requirements

Supported .NET

Supported IDEs

  • Visual Studio 2022 (v17.8 or higher)
    • Community Edition
    • Professional Edition
    • Enterprise Edition

We recommend installing a minimum version of 17.8 of Visual Studio. This version includes .NET 8 as part of the Visual Studio 2022 install (.NET SDK 8.0.3). Installing a lesser version of Visual Studio 2022 may require a separate install of the .NET Desktop Runtime 8.0.3 and/or .NET SDK 8.0.3. Consult Microsoft’s Download .NET 8.0 site for more information.

Third party assemblies

Newtonsoft Json

  • At 3.3, ArcGIS Pro is using version 13.0.3.27908 of the Newtonsoft Json NuGet. If you require Newtonsoft NuGet in your add-ins it is recommended to use the same version.

WebView2

  • Add-in developers can use the new WebViewBrowser control based on Microsoft Edge WebView2. Consult the WebView2 manifest in the Pro bin\WebView folder for the current WebView2 fixed version runtime in use by ArcGIS Pro.

Installing ArcGIS Pro SDK for .NET

ArcGIS Pro SDK for .NET can be downloaded and installed from within Visual Studio.

Read the ProGuide: Installation and Upgrade for detailed installation instructions.

ArcGIS Pro Add-In Community Sample List

Below is the list of 282 ArcGIS Pro samples that are included in this repository.

Content

Managed Configurations

Editing

Framework

MVVM / XAML

Geoprocessing

Geometry

Geodatabase

Map Authoring

Map Exploration

Layouts

Reports

Raster

SceneLayers

StreamLayers

VoxelLayers

Plugins

Parcel Fabric

Task Assistant

Utility Network

Network Diagram

3D Analyst

Workflow

Data Reviewer

Core Host

Sharing

Issues

Find a bug or want to request a new feature? Please submit an issue on Esri Community | ArcGIS Pro SDK Questions.

Contributing

Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.

Refer to this wiki for detailed instructions on the ArcGIS Pro SDK Samples submission process.

Licensing

Copyright 2024 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:

https://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 SDK for Microsoft .NET Framework              Home | API Reference | Requirements | Download | Samples

arcgis-pro-sdk-community-samples's People

Contributors

aortego avatar arcgisprosdk avatar cjzent avatar cmac3095 avatar csmoore avatar davewilton avatar esride-jebu avatar lpalli avatar sojourned avatar umaharano avatar wolf-k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arcgis-pro-sdk-community-samples's Issues

Method GetExtent() of FeatureClassDefinition not working anymore

I used GetExtent() to get extent of my feature class in my addin which was working fine earlier with Arcgis desktop 2.4. When I updated the version of my arcgis to 2.8, My GetExtent in addin is now returning NAN.

Any clue why is it broken with version update.
Any help is appreciated.

How to create an xaml map (CaliforniaStartPage)?

In the CaliforniaStartPage sample (StartPage Samples), the California map is described in xaml (in CaliforniaCounties.xaml).
How to convert an existing feature to xaml polyline path easily?

Contingent Values

Hi there,

I've been working with the InspectTool sample and I've noticed it does not adhere to the Continent Values set up in a Feature Layer. Is this by design? For example, do I need to build in the contingent logic into the code? Or should this tool follow the parent rules as set out in Pro? For context, if I add or modify attributes using out of the box tools in Pro, the contingency values are adhered to.

Thanks,
Chris

DockPane Simple example in VB.NET

I'm trying to convert the DockpaneSimple sample to VB.NET. Not able to compile due to 2 issues in BookmarkDockpaneViewModel.cs:

  1. The line 82
    _retrieveMapsCommand = new RelayCommand(() => RetrieveMaps(), () => true);
    converted to
    _retrieveMapsCommand = New RelayCommand(Function() RetrieveMaps(), Function() True)
    The compiler is complaining that the expression RetrieveMaps() does not produce a value. RetrieveMaps() is a sub, so it doesn't return a value.

  2. The line 96
    ProjectItemsChangedEvent.Subscribe(OnProjectCollectionChanged, false);
    converted to
    ProjectItemsChangedEvent.Subscribe(OnProjectCollectionChanged, False)
    The compiler is complaining that an argument was not specified for parameter 'args' of Private Sub OnProjectCollectionChanged.

CoreHost samples don't work - Unable to load DLL 'CoreInterop.dll'

Hi,

I'm getting an error while executing the samples about the "[CoreHost] (https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/CoreHost)" module.

I downloaded all the samples from the repository (https://github.com/Esri/arcgis-pro-sdk-community-samples) and focused on the "CoreHostSample (https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/CoreHost/CoreHostSample)" project, updated the ArcGIS.Core.dll and ArcGIS.CoreHost.dll references and changed the GDB file path for an existing one. Then I execute the project and, while debugging the file Program.cs, the method "Host.Initialize();" work fine but on the next executing line "using (var gdb = new Geodatabase(new FileGeodatabaseConnectionPath(new Uri(gdbPath, UriKind.Absolute)))) {", I get the following error:

System.DllNotFoundException
  HResult=0x80131524
  Message=System.DllNotFoundException: 'Unable to load DLL 'CoreInterop.dll': The specified module could not be found. (Exception from HRESULT : 0x8007007E)'
  Source=ArcGIS.Core

The error says that the DLL 'CoreInterop.dll' is missing but the documentation never mentioned that we have to add a reference to this DLL, it only refers to "ArcGIS.Core.dll" and "ArcGIS.CoreHost.dll". And even if I add the reference of the library "CoreInterop.dll" myself, it doesn't work.

I followed all the instructions in this link:
https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/CoreHost/CoreHostSample
and here:
https://github.com/esri/arcgis-pro-sdk/wiki/proconcepts-CoreHost

I'm using:

  • Visual Studio Community 2017 (v15.7.5) with .NET Framework 4.6.1
  • ArcGIS Pro 2.2.1
  • ArcGIS Pro SDK for .NET 2.2.0.12813

Do these samples (about the "CoreHost" module) work for you? Can anybody help me with this issue please?

Best regards,
Fabian

Replace Sketch tool in Editing

Replace sketch not working any more. The command is in the sketch dropdown but doesn't do anything. Tried it on two computers same thing. It used to work and I haven't changed anything with the system. I deleted, downloaded the zip and started over with the same result. What gives? Thanks ,cob

Async Databinding using ArcGIS Pro SDK and MVVM?

Hello,

How can we bind data to datagrid (In dockpane) using Async programing in ArcGIS Pro SDk and MVVM as one of my process will take lot of time.

Please let me know if you can have any ideas or samples.

Thank you,

Regards,
Phanindra

Copy/Paste-sample selects wrong featurelayer

Not sure if this is relevant, but i'll give it a go. This concerns the "Copy/Paste"-sample .

When there is two layers in the TOC whose name starts the same, the first layer will be selected.

Say i have a Polyline-layer called "test_polyline" on the top of the TOC and Point-layer called "test" at the bottom, and the user has selected "test" for copying a point geometry into. The GetFeatureLayerAsync-method in Module1 will return the first layer which contains "test" which is "test_polyline".

I tried changing the code in Module1:203 to where it checks if the layers in the TOC contains the layerName to where it exactly matches:
var featureLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().Where(fl => fl.Name.Contains(layerName)).FirstOrDefault();

to

var featureLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().Where(fl => fl.Name == layerName).FirstOrDefault();

This is probably a fringe case and might add more problems, but it seemed to do the trick for my problem.

private static async Task<FeatureLayer> GetFeatureLayerAsync (string layerName, GeometryType destinationGeomType)

Arcgis Pro LineOffset not working

Although I have defined offset on lines in ArcGIS Pro environment, line offset definitions are not reflected in the style file resulting from the vector tile package produced.
I manually added “line-offset”: 2 parameter to each layer in the resulting style file (root.json).
When I draw the new style that I have prepared using the api, it does not use the line-offset parameter. The lines continue to intertwine on small scales.

Do you have a solution?

MapToolWithCustomPopup <empty>

The screen shot you have with this example show the header with "U.S. States (Generalized) - Oregon". When I run the tool it shows up as "U.S. States (Generalized) - <empty>". But in the guide it also shows up as <empty>. I don't see any way to change the header in the custom code so I would assume it should use the layer default display column.

Save Edits/Discard Edits window

If a stand alone table is not not open in a project, it will not be listed in the Layers/Sources list of pending edits after programmatic edits are made:

image

request

Not so much an issue, as a request: how difficult would it be to alter the Animation From Path sample to be able to follow a 3D polyline, meaning, shift the camera at each keyframe to take into account the Z dimension of the line? If the sample can't be readily edited to incorporate this, some guidance on how to do this would be most helpful. Thank you.

Replace sketch

Replace sketch not working any more. The command is in the sketch dropdown but doesn't do anything. Tried it on two computers same thing. It used to work and I haven't changed anything with the system. I deleted, downloaded the zip and started over with the same result. What gives? Thanks ,cob

Reference component from another add-in

Is it possible to add a component from another add-in to my current add-in project?

Like, if I want to create a new add-in that leverages functionality (a button, for example) that exists in another add-in that was created previously, how can that be done?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.