|
POST
|
Hi Jamal, I have my own view pane, but I think way is the same as in code below: foreach (var pane in FrameworkApplication.Panes) { var profilePane = pane as ViewStatePane; if (profilePane != null) { if (profilePane.ContentID == "ceProfilePro_ProfilePane" && profilePane.Caption == item.Text) { profilePane.Activate(); break; } } } Change pane checking condition with yours.
... View more
02-20-2020
11:41 PM
|
0
|
1
|
1185
|
|
POST
|
Hi Andrew, I have started from the GitHub information about ArcGIS Pro 2.5 SDK (https://github.com/esri/arcgis-pro-sdk/wiki). So my experience was a little bit different but with wasted time. Wiki text: hRequirements The requirements for the machine on which you develop your ArcGIS Pro add-ins are listed here. .NET Framework 4.8: With the release of ArcGIS Pro 2.5, the minimum .NET target has been changed from 4.6.1 to 4.8. What does this mean for you and your add-ins? Existing add-ins, already deployed, will work at 2.5 with no change to their forward compatibility. New add-ins created at 2.5 will require the minimum target framework set to 4.8 or they will not compile (this is the default setting in the Pro SDK). Existing add-ins which are recompiled at 2.5 (e.g. because a code change was made) will also require the minimum target framework set to 4.8 or they will not compile. Note: As always, if an existing add-in is changed for any reason, the desktopVersion attribute in its Config.daml file should be changed to reflect the version of Pro it was last compiled against, in this case, now 2.5 VS2017 max .Net Framework version 4.6.1. So there is one way to install VS2019. Now look at the other Esri sources for developers: ProGuide Installation and Upgrade · Esri/arcgis-pro-sdk Wiki · GitHub It talks about VS2017 and VS2019. I believe in first source because I can't compile my application with VS2017 and SDK 2.5. So I came back to SDK to 2.4. It takes time take back to ArcGIS Pro 2.4.3 and SDK 2.4. And remember as wrote Uma uncheck "Automatically update this extension" option for ArcGIS Pro SDK extensions. Colleagues from Esri could you please explain real situation?
... View more
02-20-2020
11:27 PM
|
0
|
3
|
2537
|
|
POST
|
Hi, Is it possible to know using SDK is EditOperation already started (called Execute or ExecuteAsync)? All edit events report about when something is done (created, changed, deleted and etc.)
... View more
01-31-2020
04:15 AM
|
0
|
3
|
1187
|
|
POST
|
Hi Barbara, I think it is project type problem. I checked on my project and it works as you wrote. I have copied splashscreen window xaml and code from ArcGIS Pro sample and changed as I needed. Or you can create ArcGIS Pro add-in project, create wpf window in it and then copy files to configuration project. I have not tried to use ProWindow class in configuration project.
... View more
01-17-2020
05:37 AM
|
2
|
0
|
3006
|
|
POST
|
Hi Ravi, 1. Two entries in registry. That is ok. That is COM technology nuance. 2. If you downgraded ArcGIS I would recommend you renew references to ArcGIS libraries in your VB project. 3. About installation package. All these things you can setup in your installation package project. We still use Visual Studio installer project template.
... View more
01-09-2020
12:23 AM
|
0
|
0
|
3801
|
|
POST
|
Hi Jan, There is no separate SDK for c++. Download ArcObjects SDK for the Microsoft .NET Framework and it will work with your Visual Studio c++ projects.
... View more
12-29-2019
11:53 PM
|
0
|
0
|
1012
|
|
POST
|
Hi Ravi, Open registry editor and try to find FABC30FB-D273-11D2-9F36-00C04F6BC61A guid in your registry. If there is no info in your registry then your ArcGIS install is corrupted or you use ArcGIS server but not ArcGIS desktop software because AppROT is available for ArcGIS Desktop only.
... View more
12-29-2019
11:47 PM
|
0
|
0
|
3801
|
|
POST
|
Hi Karen. I am using ArcGIS Pro 2.4.3 and code I copied earlier works for me with all versions from 2.0. Maybe your file geodatabase has some special components such as geometry network, topology, relationship classes or etc.? My file geodatabase contains only feature datasets, feature classes and tables.
... View more
12-29-2019
11:28 PM
|
0
|
0
|
3960
|
|
POST
|
Hi Karen, I add some parts of my code. One with new connection and next one with layer adding: public static Task ChangeFeatureLayerDataConnectionAsync(FeatureLayer featureLayer, string catalogPath) { return QueuedTask.Run(() => { CIMDataConnection currentDataConnection = featureLayer.GetDataConnection(); string connection = System.IO.Path.GetDirectoryName(catalogPath); string suffix = System.IO.Path.GetExtension(connection).ToLower(); WorkspaceFactory wf = WorkspaceFactory.FileGDB; if (suffix == ".sde") { wf = WorkspaceFactory.SDE; } string dataset = System.IO.Path.GetFileName(catalogPath); var dbGdbConnection = new FileGeodatabaseConnectionPath(new Uri(connection, UriKind.Absolute)); // provide a replace data connection method CIMStandardDataConnection updatedDataConnection = new CIMStandardDataConnection() { WorkspaceConnectionString = new Geodatabase(dbGdbConnection).GetConnectionString(), WorkspaceFactory = wf, Dataset = dataset, DatasetType = esriDatasetType.esriDTFeatureClass }; featureLayer.SetDataConnection(updatedDataConnection); //Bug #2, we manually invalidate the cache featureLayer.ClearDisplayCache(); }); } FetureLayer featLayer = (FeatureLayer)LayerFactory.Instance.CreateLayer(new Uri(sLyrPath), map); ChangeFeatureLayerDataConnectionAsync(featLayer, sDatabase + "\\" + sTableName); If it will not change your geodatabase locking status, so the problem is in writing to database. Good luck.
... View more
12-19-2019
10:45 PM
|
0
|
6
|
3960
|
|
POST
|
Hi Karen, Few lines were In ArcGIS Pro sample with SetDataConnection (after SetDataConnection call): //Bug #2, we manually invalidate the cache newlayer.ClearDisplayCache(); We use them in workspace loading tool which loads all feature classes with predefined lyr files and have no problems with database locking. I hope it will help.
... View more
12-17-2019
11:12 PM
|
0
|
8
|
3960
|
|
POST
|
Hi, You can't update raster layer because it is locked. You need to remove layer from TOC, make SaveAs call and add raster back to TOC.
... View more
12-17-2019
12:21 AM
|
0
|
0
|
1019
|
|
POST
|
Hi Than, Try to add line of code before calling SaveAs: rasterStorageDef.SetCellSize(rasterInfo.CellSize, rasterInfo.CellSize);
... View more
12-13-2019
01:12 AM
|
0
|
3
|
2881
|
|
POST
|
Dear colleagues from Esri, Most calculation or database management functions in ArcGIS Pro SDK are realized using geoprocessing. All information you can get about geoprocessing functions: - ArcGIS Pro API reference (about Geoprocessing.ExecuteToolAsync and etc.) - ArcGIS Pro Snippets ( about "management.CopyFeatures", "Analysis.MultipleRingBuffer" and "Analysis.Buffer") - other ArcGIS documentation with ArcPy samples. What to do for ArcGIS Pro SDK .Net developer? Run geoprocessing tool from ArcGIS Pro, copy from history arcpy code of executed tool, solve rebus how to convert geoprocessing tool name from arcpy to .Net, how to arrange parameters especially list and etc.? For example spatial analyst Euclidean distance tool. Arcpy script from history looks like this: out_distance_raster = arcpy.sa.EucDistance(r"Sites", 1000, 50, None, "PLANAR", None, None); out_distance_raster.save(r"C:\CellExp\Tutorial\ProTest\Pro\MyProject5.gdb\EucDist_Site1") First idea is to check geoprocessing results. It is wrong way. You need somehow to understand that result raster name must be second parameter after featureclass name. Looks strange but it works. In snippet mentioned above ("Analysis.Buffer") you can find geoprocessing flag GPExecuteToolFlags.GPThread. Try to use that flag with Euclidean distance. You will wait for results of Euclidean distance all your life and you will never get results. I had a problem few ArcGIS Pro releases ago and solving of problem was GPExecuteToolFlags.GPThread flag adding. When that flag is useable when not? Could you please make a table with all available geoprocessing functions for .Net developers with arguments or make some notes where are differences between arcpy and .Net calling, explain more complicated arguments converting from arcpy to .Net and put it on ArcGIS Pro API reference, ArcGIS Pro SDK GitHub or somewhere else. One more line about ArcGIS Pro API reference on internet. Open it with MS Explorer, Edge and press "Search" button at the bottom of left corner. Search input line appears after 0,5-1 minute. In our country we have one of the fastest internet network and it is not a internet speed problem. Other internet browsers I have not tried.
... View more
12-11-2019
02:47 AM
|
4
|
9
|
4759
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 04-24-2026 08:33 AM | |
| 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 |
22 hours ago
|