esri / arcgis-pro-sdk-community-samples Goto Github PK
View Code? Open in Web Editor NEWArcGIS Pro SDK for Microsoft .NET Framework Community Samples
License: Apache License 2.0
ArcGIS Pro SDK for Microsoft .NET Framework Community Samples
License: Apache License 2.0
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?
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.
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.
See thread here:
https://community.esri.com/t5/python-questions/running-arcpy-script-from-powershell-after/td-p/1261897/page/3
Steps to reproduce:
unhandled exception
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
Downloaded source data, tool only export 'trees' features and fails on the others. then arcPro 2.0 crashes.
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.
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
Hi Esri,
Regarding "ShowLicense" sample.
When I am using local portal for pro licensing server, the response of /sharing/rest/portals/self?f=json doesn't include "appInfo" and "user" section which causes the process fails.
Regards,
Bing
According to the below a workaround is mentioned.
But does not fully guarantee its refreshed properly.
Especially when using the EditOperation.Callback on the same DataConnection
Another half successful workaround is to use featureTable.SetDataConnection(featureTable.GetDataConnection(), true);
which mostly refreshes the mapview
i couldn't find "Network Diagram" folder in sample Data mentioned in this link
https://github.com/Esri/arcgis-pro-sdk-community-samples/releases
There used to a great helper file to programmatically get info about your own Addin here https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Content/AddInInfoManager
I no longer see that available? Has some other functionality take its place?
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:
Do these samples (about the "CoreHost" module) work for you? Can anybody help me with this issue please?
Best regards,
Fabian
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
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?
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.
Hello, I have been trying to run the QAReviewTool sample, but I receive the following error when trying to complete step 7 of the "How to use the sample" instructions.
Error in SelectByValue: ArcGIS.Core.ObjectDisconnectedException: This object has been previously disposed and cannot be manipulated.
I'm trying to convert the DockpaneSimple sample to VB.NET. Not able to compile due to 2 issues in BookmarkDockpaneViewModel.cs:
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.
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.
Nevermind - using desktop instead.
Can some please confirm if these samples work for older version for ArcGIS as well
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
This code clones the Active layout, not the layout selected.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.