POST
|
I managed to download now! Thank you for helping out!
... View more
11-25-2019
10:50 PM
|
0
|
1
|
2997
|
POST
|
Thank you very much! I am unfortunatley not able to download the zip-file from that link. Could you try share the file again? Otherwise you could send it to my email perhaps
... View more
11-21-2019
03:55 AM
|
0
|
3
|
2997
|
POST
|
Hi, I have the exact same issue with the AddData widget. Could you possibly share your code if you managed to get it working?
... View more
11-20-2019
04:19 AM
|
1
|
5
|
2997
|
POST
|
Hi Rich! I have been testing a bit recently with 2.4.0 and the problem persists for me. Originally I was doing featureLayer.FindAndReplaceWorkspacePath, and this throws the ArcGIS.Desktop.Mapping.MappingException (also in 2.4.0). However I think a more correct way for me is to do a currentMapView.FindAndReplaceWorkspacePath. I have implemented this now and an exception is not thrown, however no datasources are switched either. Nothing happens. Also notice that switching from SDE -> SDE is working fine for me. The following code is my current switch source function: private void ChangeSourceByMap(MapView mapView) { Map map = mapView.Map; Geodatabase gdb; GDBProjectItem newgdb; foreach (KeyValuePair<connectionitem, gdbprojectitem=""> datasource in this.uniqueSourceDict) { newgdb = datasource.Value; if (newgdb == null) continue; string workspaceString = datasource.Key.ConnectionString; string suffix = Path.GetExtension(newgdb.Path).ToLower(); if (suffix == ".sde") gdb = new Geodatabase(new DatabaseConnectionFile(new Uri(newgdb.Path))); else gdb = new Geodatabase(new FileGeodatabaseConnectionPath(new Uri(newgdb.Path))); map.FindAndReplaceWorkspacePath( workspaceString, gdb.GetConnectionString(), true); } } Thanks for your help! Øystein
... View more
08-19-2019
06:50 AM
|
0
|
1
|
343
|
POST
|
Hi Rich I am experiencing the same problem with the SDK as Ave when it comes to FindAndReplaceWorkspacePath when changing a layers source from SDE -> FileGDB. "Exception thrown: 'ArcGIS.Desktop.Mapping.MappingException' in ArcGIS.Desktop.Mapping.dll ArcGISPro.exe Warning: 0 : ArcGIS.Desktop.Mapping.MappingException: Error HRESULT E_FAIL has been returned from a call to a COM component..." I realize that this is not the main topic of this thread but since it is mentioned here and exactly what I am trying to solve I wanted to hear if you know about this issue and if it is something that will be looked into by Esri? Thank you! Øystein
... View more
08-06-2019
04:39 AM
|
0
|
3
|
1500
|
Title | Kudos | Posted |
---|---|---|
1 | 11-20-2019 04:19 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|