|
POST
|
Hi, I have placed the same button to ribbon tab and menu for burger button. If I change caption of button in different workflows, button in ribbon reacts to changes, but button in menu reacts only to enable/disable. Is is possible to get the same button behaviour in menu?
... View more
05-04-2021
06:48 AM
|
1
|
4
|
1933
|
|
POST
|
Hi, Yes, It is possible to use treeview inside a dockpane. We use it in different projects but without checkboxes. But no matter with or without checkboxes. Something wrong is with your binding or templating. Share your xaml content if you need help. Sample here: https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Content/ContentFileExplorer
... View more
04-30-2021
05:21 AM
|
0
|
1
|
3350
|
|
POST
|
Hi, It looks like Pro only adds layer with unchecked visibility checkbox, I understand that it does not show in TOC. Sorry. 🙂
... View more
04-29-2021
07:05 AM
|
1
|
1
|
4765
|
|
POST
|
HI, I have checked right now. It works. Code below: var imageServiceUriVisibility = new Uri(path); var layerParamsVisibility = new LayerCreationParams(imageServiceUriVisibility) { //Set visibility IsVisible = false, }; // Creates a layer based on the url. In this case the layer we are creating is an image service layer. imageServiceLayer = LayerFactory.Instance.CreateLayer<ImageServiceLayer>(layerParamsVisibility, MapView.Active.Map); if (imageServiceLayer == null) { ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("Failed to create layer for url:" + path); return null; }
... View more
04-29-2021
06:58 AM
|
1
|
0
|
4767
|
|
POST
|
Hi, What about this workaround? Create FeatureLayer and set to not display in Map. //The catalog path of the feature layer to add to the map
var featureClassUriVisibility = new Uri(@"C:\Data\Admin\AdminData.gdb\USA\cities");
//Define the Feature Layer's parameters.
var layerParamsVisibility = new FeatureLayerCreationParams(featureClassUriVisibility)
{
//Set visibility
IsVisible = false,
};
//Create the layer with the feature layer parameters and add it to the active map
var createdFC = LayerFactory.Instance.CreateLayer<FeatureLayer>(layerParamsVisibility, MapView.Active.Map);
... View more
04-29-2021
06:46 AM
|
0
|
4
|
4769
|
|
POST
|
Hi, For creating layer in memory look here: https://community.esri.com/t5/arcgis-pro-sdk-questions/making-a-group-layer-or-layer-in-memory/m-p/730303 To get pixel value from layer: var raster = imageServiceLayer.GetRaster(); object pixelValue = raster.GetPixelValue(0, 150000, 150000);
... View more
04-28-2021
06:58 AM
|
0
|
6
|
4785
|
|
POST
|
Hi, If you want to run your add'in on different ArcGIS Pro versions you need to build it with the lowest ArcGIS Pro version SDK. Then you have chance what your add'in will work with higher versions of ArcGIS Pro. It depends on how much ArcGIS Pro SDK backward compatible with previous versions. It was a period when ArcGIS Pro SDK changed dramatically and was no chance that your previous version of add'in will work with new one. For example (from my experience): in ArcGIS Pro 2.6 you can run geoprocessing function Excel To Table when ArcGIS Pro starts, on 2.7 it does not work. Now it is more less stable.
... View more
04-27-2021
10:07 PM
|
1
|
1
|
4405
|
|
POST
|
Hi, If you are using databases (not shapefile, dbf or info tables) you can use QueryFilter with DISTINCT in PrefixClause or PostfixClause. More info here: ProConcepts Geodatabase · Esri/arcgis-pro-sdk Wiki · GitHub
... View more
04-25-2021
11:23 PM
|
0
|
0
|
2395
|
|
POST
|
Hi, Have you test it in debug mode? ProgressDialog does not show in Debug mode. https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-update-text-of-progressdialog/td-p/858359 https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Framework/ProgressDialog/ProgressDialog%20(C%23).md 3. Run ArcGIS Pro without running the Visual Studio Debugger. 4. Progress Dialog boxes are disabled when debugging in Visual Studio.
... View more
04-22-2021
10:22 PM
|
0
|
0
|
2899
|
|
POST
|
HI, Where does one find the tool names in the docs for ExecuteToolAsync("Tool_Name", ...)? There is no place where you can find it. You can check my questions in Geo Net and you will find the same question and my workflow how I solve that task. https://community.esri.com/t5/arcgis-pro-sdk-questions/when-will-net-developers-get-api-reference-for-all-geoprocessing/m-p/1001311#M5737 Please add comments to that thread and ask your colleagues to do the same. May be Esri will solve faster our problem.
... View more
04-20-2021
07:02 AM
|
1
|
0
|
2473
|
|
POST
|
Before writing I have done field calculation on Enterprise database and it not allows "Undo". If you can handle RowChangedEvent, then you can modify attributes like in that thread: https://community.esri.com/t5/arcgis-pro-sdk-questions/split-polygon-and-modify-its-attributes/m-p/724978
... View more
04-19-2021
11:44 PM
|
0
|
1
|
2146
|
|
POST
|
Hi, You can use all WPF controls without problems. In other hand it would be nice when third party tools looks like native UI. I would recommend for your case to use Esri style control like in picture below: GintautasKmieliauskas_0-1618899824958.png They use ListBox with their own style Esri_ListBoxPanelIndicator. More info here: https://github.com/Esri/arcgis-pro-sdk/wiki/proguide-style-guide#list-box You can use sample you found (CustomCatalog). P.s You can open and windows forms from ArcGIS Pro. It is not good solution, looks different, can.t work with different themes, but it fast solution to migrate from ArcMap to ArcGIS Pro. We use that way for very complicated dialogs for faster product delivery.
... View more
04-19-2021
11:30 PM
|
1
|
0
|
1768
|
|
POST
|
Hi, Calculate Field tool doesn't allow to do "Undo" operation. It seems that it writes changes without edit operation.
... View more
04-19-2021
11:08 PM
|
0
|
0
|
2149
|
|
POST
|
Hi, This is a sample for ExcelToTable geoprocessing tool: var parameters = Geoprocessing.MakeValueArray(InputFile, OutputTable, "", 1, ""); var environments = Geoprocessing.MakeEnvironmentArray(workspace: tempPath); var gpResult = await Geoprocessing.ExecuteToolAsync("ExcelToTable_conversion", parameters, environments, CancelableProgressor.None, GPExecuteToolFlags.None);
... View more
04-19-2021
11:00 PM
|
1
|
0
|
2498
|
|
POST
|
Hi, Have you tried deleting without callback? Just: using (Feature row = (Feature)rowCursor.Current)
{
editOperationForPoints.Delete(row);
} More info here: https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/#topic9512.html EditOperation ErrorMessage you can set which you want. If it is not set, you see default message. editOperationForPoints.ErrorMessage = "My error message";
... View more
03-24-2021
02:28 AM
|
0
|
1
|
2781
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a month ago | |
| 1 | a month ago | |
| 1 | 06-30-2026 10:14 PM | |
| 1 | 06-30-2026 01:43 PM | |
| 2 | 04-24-2026 08:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
Monday
|