|
POST
|
Hi Brian, Look at that issue: Pro 2.0 Bug "Apply Symbology From Layer" GeoProcessing Tool At the end of the issue you will found solution with GP flag GPThread. If it will not work I will research deeper.
... View more
11-28-2018
10:34 PM
|
0
|
5
|
1881
|
|
POST
|
Hi Joshua, I mean after grabbing feature geometry you could use code from sample: //select features that intersect the sketch geometry var selection = MapView.Active.SelectFeatures(geo, SelectionCombinationMethod.New); IEnumerable<KeyValuePair<BasicFeatureLayer, List<long>>> result = from r in selection where string.Compare(r.Key.Name, "States", true) == 0 select r; //zoom to selection MapView.Active.ZoomToAsync(result.Select(kvp => kvp.Key), true, TimeSpan.FromSeconds(1.5), true);
... View more
11-15-2018
11:16 PM
|
0
|
1
|
1464
|
|
POST
|
Hi Joshua, Look at ArcGIS pro community sample: https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Exploration/IdentifyWithSketchTool/SelectAndZoom.cs
... View more
11-14-2018
11:21 PM
|
0
|
12
|
3823
|
|
POST
|
Hi Thomas, Have you tried like this: OpenItemDialog searchGdbDialog = new OpenItemDialog { Title = "Find GDB", InitialLocation = Directory.GetCurrentDirectory(), MultiSelect = false, Filter = ItemFilters.featureDatasets_all }; var ok = searchGdbDialog.ShowDialog(); For me it works, I always get last visited folder.
... View more
11-12-2018
04:51 AM
|
1
|
1
|
1049
|
|
POST
|
Hi Carsten, Do you need to check are spatial references are exactly the same? If yes, you could use IClone method IsEqual. I also tried to use IsXYPrecisionEqual, but without success.
... View more
10-29-2018
12:02 AM
|
0
|
1
|
1348
|
|
POST
|
Hi Nobbir, GPExecuteToolFlags.GPThread is not documented, but it seems it works. Please add documentation to ProConcepts Geoprocessing · Esri/arcgis-pro-sdk Wiki · GitHub Thank you.
... View more
10-18-2018
11:11 PM
|
0
|
1
|
2558
|
|
POST
|
Hi Michael, If you have organization account ask your organization ArcGIS administrator to assign privilege to register cases on myesri.com or contact your Esri distributor and they inform you how to do that.
... View more
10-17-2018
10:49 PM
|
0
|
0
|
2558
|
|
POST
|
I think AddIns technology is not very friendly for 3rd party big developments. There is another one problem with developing AddIns on ArcGIS Pro. It is AddIns resources. There is only one way to specify your own resources as relative path from ArcGIS Pro installation folder. I think we need support from Esri what is better way to develop big extensions on ArcGIS Pro.
... View more
10-17-2018
10:42 PM
|
0
|
0
|
6130
|
|
POST
|
Hi Roman, We have solution with 11 projects. Some of them have AddIns, some of them are helpers. All application works fine in folder C:\Program Files\xxxxxxxx. At first you need to clean up all copies of referenced dll from disk. After that each reference of your additional library you need to set “Copy to local” to True. Your library must be in the same solution as your AddIn. Next thing you need to setup project dependencies using “Building dependencies- Project dependencies”. Check each library your AddIn uses. Now each time when you build your project, your additional libraries will be built too. There is one problem with debugging. You can’t go from library to library and back, because your AddIn takes library not from your solution, but from AddIn zip file. So you can debug only StartUp project. Each time you change your additional library code, you need to go and rebuild your AddIns which uses additional library. To check is your additional library is included to AddIn , rename xxxx.esriAddinX to xxxx.zip file and check its content with your archiving software or go to AddIns folder, locate folder where your AddIn dll is stored and check if your additional dll library is stored in the same folder.
... View more
10-11-2018
10:58 PM
|
0
|
1
|
6130
|
|
POST
|
Hi, Your AddIn is zip file package which includes all referenced dlls. To add them automatically to zip in Visual Studio AddIn project dll reference properties set Copy to local property to True.
... View more
10-11-2018
04:57 AM
|
2
|
0
|
6130
|
|
POST
|
Hi Vivien, You must set output path of your results. I do not know which exactly geoprocessing tool you are going to use, but I will show you on Spatial Analyst Raster Calculator example: private static bool ExecuteRasterCalculator(string sExpression, string sOutRaster, Envelope pExtent, string sWorkspace, string sMaskRaster) { try { var gpresult1 = Task.Run(() => { var parameters = Geoprocessing.MakeValueArray(sExpression, sOutRaster); IReadOnlyList<KeyValuePair<string, string>> environments; environments = Geoprocessing.MakeEnvironmentArray(mask: sMaskRaster, extent: pExtent, workspace: sWorkspace); return Geoprocessing.ExecuteToolAsync("RasterCalculator_sa", parameters, environments, CancelableProgressor.None, GPExecuteToolFlags.AddToHistory); }); return !gpresult1.Result.IsFailed; } catch (Exception ex) { throw; } } Result raster will be stored on path sOutRaster. Geoprocessing.MakeValueArray parameters count and sequence depends on geoprocessing tool. For order and parameters look into your tool description
... View more
09-14-2018
12:40 AM
|
0
|
0
|
2699
|
|
POST
|
Hi, ArcGIS Pro geoprocessing has the same feature as ArcObjects does. Do not use flags GPExecuteToolFlags.AddOutputsToMap or GPExecuteToolFlags.Default and geoprocessing results will not be added to map. More information here: https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Geoprocessing
... View more
09-12-2018
10:38 PM
|
0
|
2
|
2699
|
|
POST
|
Hi Joon, If you use geoprocessing for your operation you do not need to create layer. Use Geoprocessing.MakeValueArray to construct parameters list. All parameters of Geoprocessing.MakeValueArray are object type so you can put featurelayer, featureclass or string path to your feature class. It will recognize automatically parameter type and will read required information.
... View more
09-12-2018
07:59 AM
|
0
|
4
|
2699
|
|
POST
|
Hi Husham, At first you need to install ArcObjects SDK 10.6.x on top of Visual Studio 2017. Open Visual Studio 2017. Select Project-New. In dialog select .Net Framework 4.5. Then go to Templates-ArcGIS-Desktop Add-ins-ArcMap Add-in. Alternative is to use Templates-ArcGIS-Extending ArcObjects-Class library (ArcMap). About differences you can read here: https://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#25cf8397-3db8-4630-a3d3-f6147cf9f2f2.htm
... View more
09-11-2018
12:31 AM
|
1
|
0
|
1566
|
|
POST
|
Hi Harald, I have looked at your code one more time and found that you are using code like this: return ArcMap.Editor.EditWorkspace as IVersionEvents_Event; Sequential calling of methods is the fast way to write code but is not the best on error handling and other cases. I would recommend to read EditWorkspace and save to class variable before returning. Return value of class variable. Then you would lock EditWorkspace object from releasing. On your class destructor, Dispose method or then you do not need it you can release EditWorkspace object
... View more
09-10-2018
04:27 AM
|
2
|
6
|
6917
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 3 weeks ago | |
| 1 | 03-23-2026 11:44 AM | |
| 1 | 05-22-2024 11:48 PM | |
| 1 | 02-27-2026 10:33 AM | |
| 1 | 01-07-2026 10:44 AM |
| Online Status |
Offline
|
| Date Last Visited |
Saturday
|