|
POST
|
Hi Charles, Thank you for the explanation. I have wrote method void RunOnMCTThread(Action action) using your information and it works fine.
... View more
07-27-2017
11:40 PM
|
0
|
0
|
2123
|
|
POST
|
Hi, Some ArcGIS Pro samples ( Framework\DockPaneBookmarkAdvanced or Framework\DockpaneSimple) have Utils class with different implementations of RunOnUiThread and IsOnUiThread methods. I thought that it could be useful when you call some methods which must be called on MCT from different places. Sometimes you are on MCT, sometimes not. I have tried methods from both projects, but I failed. IsOnUiThread always said that code is on UI thread, but really it was not. So I started investigate why sample code works, but my not. I have looked at the methods which were used with RunOnUiThread and found that all of them use QueuedTask.Run inside. I have commented QueuedTask.Run and samples failed too. Maybe I didn't understood the working RunOnUiThread functionality or it is bug?
... View more
07-27-2017
05:25 AM
|
0
|
2
|
2696
|
|
POST
|
Hi Thomas, There are many problems with the GeoProcessing Tool "Apply Symbology From Layer" especially from API. Some problems are related to display cache. I reported them to Esri support and they marked them as bugs. That tool in 1.4.1 worked better than in 2.0 (I mean from API). To check if problem related to cache make following workflow: 1. After applying lyrx from API open layer properties 2. Goto Cache tab. 3. Clear cache 4. Set "Don't cache any data locally". 5. Press OK and close layer proeprties
... View more
07-19-2017
11:38 PM
|
1
|
2
|
6102
|
|
POST
|
Hi Vladislav, I think supports. We are using in our ArcGIS Pro addins interop for c++ library
... View more
07-04-2017
07:04 AM
|
0
|
0
|
1505
|
|
POST
|
Group object property appearsOnAddInTab must be set to false
... View more
07-04-2017
02:46 AM
|
1
|
0
|
1306
|
|
POST
|
Hi Max This is a peace of code from snippets (look at notes): https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-Raster // Create a FileGeodatabaseConnectionPath using the path to the gdb.
// Note: This can be a path to a .sde file.FileGeodatabaseConnectionPath geodatabaseConnectionPath = new FileGeodatabaseConnectionPath(new Uri(@"C:\Temp\rasters.gdb"));// Create a new Geodatabase object using the FileGeodatabaseConnectionPath.Geodatabase geodatabase = new Geodatabase(geodatabaseConnectionPath);
... View more
07-03-2017
04:40 AM
|
1
|
0
|
2012
|
|
POST
|
Laurentiu, You must use DatabaseConnectionProperties only to find right geodatabase from 1 step. Then you need to read Path property from GDBProjectItem. It contains full path to sde file. I can send you detailed source code sample if you need.
... View more
06-23-2017
12:11 AM
|
0
|
7
|
5144
|
|
POST
|
I would like to reuse query definition building dialog in my application to let user build your own query to collect objects for calculations. That whereclause string will be frequently used and will be saved to database to remember. So customer do not need to make selection by attribute each time. ArcGIS Pro layer Properties command has property page for building queries. Is there API to use that dialog? It is possible to use query definition building dialog from ArcMap ArcObjects.
... View more
06-15-2017
07:59 AM
|
0
|
3
|
1962
|
|
POST
|
Laurentiu, I had the same problem with sde file path. I have made workaround: 1. Read all project geodatabases using Project.Current.GetItems<GDBProjectItem>(). GDBProjectItem contains Path property. 2. Read connection properties from your table object (pTable.GetDatastore().GetConnector() as DatabaseConnectionProperties). 3. Check all GDBProjectItem's from 1 step by comparing connection properties (item.GetDatastore().GetConnector() and try cast to DatabaseConnectionProperties). Equal method does not work for Connector or DatabaseConnectionProperties objects, so you need to check all DatabaseConnectionProperties object properties (DBMS, Database, Instance and etc.) one by one. I hope it helps you Gintautas
... View more
06-15-2017
07:39 AM
|
2
|
1
|
5144
|
|
POST
|
I am looking for equivalent of ArcObjects ILayer Valid method which indicates if the layer is currently valid: http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#ILayer_Valid.htm
... View more
05-18-2017
06:41 AM
|
0
|
0
|
997
|
|
POST
|
I have found that I can use ItemFactory, to create Item from raster path. If there is no raster at specified path then ItemFactory.Create(sResultRaster) returns null. I have noticed too that ArcGIS Pro remembers many different info about your used data. So if you deleted some data using ArcMap or ArcCatalog, but your opened ArcGIS Pro thinks that data still exist and successfully creates Item object and etc. After restarting ArcGIS Pro all goes fine. I think it is not so good thing.
... View more
05-03-2017
07:12 AM
|
0
|
1
|
1221
|
|
POST
|
Hi Wolfgang, Thanks for the answer. It works again after another small windows update without any actions.
... View more
04-17-2017
11:24 PM
|
0
|
0
|
1322
|
|
POST
|
I have installed Windows 10 Creator update today. I can not start ArcGIS Pro from Visual Studio 2013 now to debug add-ins. I get Access violation exception: 'ArcGISPro.exe' (CLR v4.0.30319: ArcGISPro.exe): Loaded 'C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Docking.Wpf.dll'. Cannot find or open the PDB file. 'ArcGISPro.exe' (CLR v4.0.30319: ArcGISPro.exe): Loaded 'C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Desktop.Ribbon.Wpf.dll'. Cannot find or open the PDB file. The program '[8400] ArcGISPro.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'. All things work fine before update. The same situation is with my project of ArcGIS Pro add-ins and with ArcGIS Pro SDK samples from GitHub. Does anyone installed that Windows update and have no problems with debugging?
... View more
04-14-2017
06:42 AM
|
0
|
3
|
1834
|
|
POST
|
Hi Thomas, Geoprocessing tool "ApplySymbologyFromLayer_management" with raster layer works for me too, but I have tested not all of the renderers. I have tried only Classify renderer. What kind of renderers have you tried?
... View more
04-13-2017
08:22 AM
|
0
|
0
|
4796
|
| 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 |
Wednesday
|