|
POST
|
Hi, Why do you need to convert VB6 code? It could be run and on ArcGIS 10.6. We are still using old VB6 code in our application as part of code. You just need to edit ArcMap.exe.config file. Open ArcMap.exe.config (it is located in the same folder as ArcMap.exe), locate libraries you use in your VB6 project. Edit bindingRedirect part of each library you use like this: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="ESRI.ArcGIS.AnalysisTools" culture="" publicKeyToken="8fc3cc631e44ad86"/> <bindingRedirect oldVersion="9.3.0.0-10.6.0.0" newVersion="10.6.0.0"/> </dependentAssembly> </assemblyBinding>
... View more
09-09-2018
11:13 PM
|
0
|
2
|
1564
|
|
POST
|
Hi Harald, You could get that type of error in code like this: public IRow ReturnRow() { IRow pRow = null; try { // Some code to create or get pRow return pRow; } catch() { } finally { Marshal.ReleaseComObject(pRow); } } Marshal.ReleaseComObject in finally section is the reason of "COM object has been separated from its underlying RCW" error. You will get exception at first using returned IRow object: IRow pRow = ReturnRow(); pRow.Delete(); // Here you will get exception IRow is just example. It could be every COM object. In your case it could be IWorkspaceEdit object.
... View more
09-07-2018
02:34 AM
|
0
|
8
|
6909
|
|
POST
|
Hi, I have tried the legend control with .geodatabase package and it works fine. At this time I found only one type of data which do not wont to work with legend control is ArcGIS server data (FeatureServer)
... View more
09-06-2018
12:15 AM
|
0
|
0
|
3472
|
|
POST
|
Hi, I have found problem location. I have loaded data from ArcGIS Runtime samples page https://developers.arcgis.com/net/latest/wpf/api-reference/html/E_Esri_ArcGISRuntime_UI_Controls_GeoView_LayerViewStateChanged.htm // Create Uri for feature layer var featureLayerUri = new Uri( "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Recreation/FeatureServer/0"); // Create a feature layer using url FeatureLayer myFeatureLayer = new FeatureLayer(featureLayerUri); myFeatureLayer.Name = "Feature Layer"; // Add the feature layer to map myMap.OperationalLayers.Add(myFeatureLayer); // Create a map point the map should zoom to MapPoint mapPoint = new MapPoint(-11000000, 4500000, SpatialReferences.WebMercator); // Set the initial viewpoint for map myMap.InitialViewpoint = new Viewpoint(mapPoint, 50000000); It works without setting visibility for legend and for layer. I have commented my layer visibility setting code, but it not helped. There are two differences how feature layer is created: 1. Different data source (ArcGIS server data and arcgisonline data) 2. I create FeatureLayer from ServiceFeatureTable, not directly from Uri. I have tried create FeatureLayer directly from Uri, but it not works. So Legend control does not work with ArcGIS server data
... View more
08-29-2018
05:23 AM
|
0
|
0
|
3472
|
|
POST
|
Hi, I have added LayerViewStateChanged event listening and got 3 events. One of them says that my Sites layer is not visible. Interesting that may background by event is not visible too, but I can see it. I have attached printscreens of event messages.
... View more
08-29-2018
04:51 AM
|
0
|
0
|
3472
|
|
POST
|
Hi, I would like to share my code by pieces. Xaml: public Map Map { get { if(_map == null) { _map = new Map(Basemap.CreateStreets()); AddLayers(); } return _map; } set { _map = value; } } // Create uri to the used feature service var serviceUri = new Uri("…"); // Create feature table for the pools feature service ServiceFeatureTable sitesFeatureTable = new ServiceFeatureTable(serviceUri); // Define the request mode sitesFeatureTable.FeatureRequestMode = FeatureRequestMode.OnInteractionNoCache; // Create FeatureLayer that uses the created table FeatureLayer sitesFeatureLayer = new FeatureLayer(sitesFeatureTable); sitesFeatureLayer.Name = "Sites"; sitesFeatureLayer.ShowInLegend = true; sitesFeatureLayer.IsVisible = true; // Add created layer to the map _map.OperationalLayers.Add(sitesFeatureLayer); I will try to check events you have mentioned and inform about results later.
... View more
08-28-2018
11:02 PM
|
0
|
0
|
3472
|
|
POST
|
Hi Jenifer, Thank you for your reply. Yes, I am using Xamarin.Forms. Height/WidthRequest did not solve the problem. I think that settings can influent legend view, but my problem is that I can’t see features on the MapView when I set legend.GeoView = mapView; It seems that is the bug which you have mentioned, but I am using MVVM and do not know how to change sequence of map creation and GeoView setting.
... View more
08-28-2018
03:10 AM
|
0
|
4
|
3472
|
|
POST
|
Hi, I use ArcGIS Runtime for Net with Xamarin. Legend or LayerLegend controls work fine on UWP, but does not work correctly on Android. I can see layers in my application, but all features from all operational layers are hided. If I comment in xaml legend part I can see all features. When I add operational layer I set each layer to be visible in legend and visible itself. I do not know is it possible to get checkboxes for visibility in legend controls. Maybe all my layer are invisible?
... View more
08-24-2018
03:57 AM
|
0
|
7
|
3940
|
|
POST
|
Hi Evan, You could use Visual Studio "Create GUID" tool (from Tools-Create GUID) to generate new GUID and replace existing one.
... View more
08-24-2018
03:37 AM
|
2
|
0
|
2052
|
|
POST
|
Hi all, I have tested ArcGIS Pro 2.2 beta and found that ApplySymbologyFromLayer still not works. My workaround does not work on ArcGIS Pro 2.2 too. So I registered Case number: 02133585. It is registered as bug. When it will be fixed I do not know. I think it depends how many developers have problems with it. So we need to increase importance of that functionality by registering your own cases.
... View more
07-04-2018
10:42 PM
|
2
|
0
|
5586
|
|
POST
|
Hi Nattawut, Can you use IUnknownPtr in your application? If no, check is comdef.h is included in your project
... View more
07-03-2018
04:14 AM
|
0
|
1
|
1708
|
|
POST
|
Hi Brian, I have not read carefully your question. I thought that you asking about Project properties. Application properties you can access using : BackStage_PropertyPage.Properties.Settings settings = BackStage_PropertyPage.Properties.Settings.Default; bool bGeneral = settings.GeneralSetting; It works from add-in button in the same project.
... View more
06-27-2018
11:50 PM
|
0
|
0
|
1208
|
|
POST
|
Hi Brian, Open settings module class file (in BackStage_PropertyPage sample Module1.cs) and find internal Dictionary<string, string> Settings Replace internal with public Add reference of settings module to your tool project if it separate project. From your other tool find module with settings: Module1 modOwner = Module1.Current; Use module Settings property to access your settings: modOwner.Settings.
... View more
06-26-2018
11:58 PM
|
1
|
2
|
1208
|
|
POST
|
Hi Michael, You can use IDataGraphT object to show your object as graph. It will work for one object only. You need to create a table on hard disk with min 2 column for X and Y axis information. X axis could be distance between vertexes, Y axis - your measurements. Now you are ready to create template with ArcMap View->Graphs->Create Graph. When you have template, you are ready to use it as legend for your graph created from code. From your code you need to create the same structure table as described above. It could be created in scratch workspace. Fill table with information about your polyline object.
... View more
04-23-2018
11:52 PM
|
1
|
2
|
999
|
|
POST
|
Hi, The problem will be with ESRIRegASM.exe.config file. It is located in the same folder as ESRIRegASM.exe. Open it and check binding redirection part of ArcGIS libraries. It must be like this: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="ESRI.ArcGIS.ADF.Local" culture="" publicKeyToken="8fc3cc631e44ad86"/> <bindingRedirect oldVersion="9.3.0.0-10.5.1.0" newVersion="10.6.0.0"/> </dependentAssembly> </assemblyBinding>
... View more
03-12-2018
01:47 AM
|
1
|
0
|
932
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 2 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
|