|
POST
|
Hi, I am assuming you have multiple add-ins that are creating these tools under the GeoComm tab? What version of Pro are you on? At version 2.2 and later, ArcGIS Pro automatically sequences add-in loading order to resolve any "cross-addin" dependencies within the Config.daml. More on this topic: https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Advanced-Topics#control-order-of-add-in-loading-using-daml Thanks Uma
... View more
06-24-2020
08:09 AM
|
1
|
2
|
1277
|
|
POST
|
Hi Helen, To label features in Pro with values that are dynamic, we use Label expressions. Using Arcade, Python, you can make simple calculations (that increment a number, for example) and dynamically display the labels. So for example, if you want to add the word "Sale" in your label and then append a number that increments, it might be possible to do that with an expression using the Python or Arcade – If you have a starting number that you know. But - To label features, it is recommended to have all the information in your feature table. Static info can be appended. Thanks Uma
... View more
06-22-2020
05:22 PM
|
0
|
1
|
1649
|
|
POST
|
Hi Helen, Where will these values come from? For example: If there are 10 selected features, is there any order to which feature will be sale1, sale 2? Thanks Uma
... View more
06-22-2020
09:29 AM
|
0
|
3
|
1649
|
|
POST
|
Hi Kris, You are right - "Menus" cannot be included in a split button. To understand what you are trying: You have many buttons (31) that you want to categorize. If so, have you seen "gallery" controls in Pro? Thanks! Uma
... View more
06-22-2020
08:56 AM
|
0
|
1
|
1912
|
|
POST
|
Hi Kris I discussed this with the developer here in the Pro team to confirm. The only alternative is to write your own tool.
... View more
06-18-2020
02:54 PM
|
0
|
2
|
4224
|
|
POST
|
Hi Kris, The normal pattern is for the tool to execute the “MapToClient, ClientToMap” logic in its mousedown or mouseup handler and not the context menu in OnPopup. However, if you are trying to force your code to execute synchronously in the OnPopup callback you can try accessing the Task Result property rather than using async/await. This is typically not recommended as it is a blocking call. Var esriPoint = QueuedTask.Run(() => ……..).Result;
... View more
06-18-2020
01:29 PM
|
0
|
5
|
4224
|
|
POST
|
Hi Kris Since you are using Pro's Select by rectangle tool, you don't need the mouse click position. Pro's selection tool does that for you. So just remove those lines in your OnPopup override and it will work. protected override void OnPopup()
{
//var position1 = MouseCursorPosition.GetMouseCursorPosition();
//Point client = MapView.Active.ScreenToClient(position1);
//MapPoint esriPoint = await QueuedTask.Run(() =>
//{
// return MapView.Active.ClientToMap(client);
//});
AddReference("esri_mapping_exploreContext");
AddReference("esri_mapping_selectContext");
}
... View more
06-18-2020
11:27 AM
|
0
|
0
|
4224
|
|
POST
|
Hi Kris, Are you using FrameworkApplication.CreateContextMenu to create and display the Dynamic menu? If possible, can you please post a code snippet? Thanks! Uma
... View more
06-16-2020
01:55 PM
|
0
|
0
|
4224
|
|
POST
|
Hi Roy, I have mentioned this issue to our Desktop Help team. Looks like the issues are now fixed this afternoon. Thanks for reporting this! Uma
... View more
06-12-2020
11:43 AM
|
2
|
1
|
741
|
|
POST
|
Hi Roy,The existing Pro tools cannot be modified - But using the Pro SDK and the public API, you can make your own tools though. Thanks Uma
... View more
06-09-2020
02:04 PM
|
2
|
0
|
2151
|
|
POST
|
There is a built in browse dialog filter for text files you could use. Like this: var txtFilter = BrowseProjectFilter.GetFilter("esri_browseDialogFilters_textFiles_txt");
SaveItemDialog saveTxtFileDialog = new SaveItemDialog()
{
Title = "Save Txt File",
InitialLocation = @"C:\Data\",
BrowseFilter = txtFilter,
OverwritePrompt = true
};
bool? result = saveTxtFileDialog.ShowDialog(); Or you could make your own filter to use like this: var txtFilter = BrowseProjectFilter.GetFilter("esri_browseDialogFilters_browseFiles");
txtFilter.FileExtension = "*.txt;";
txtFilter.BrowsingFilesMode = true;
txtFilter.Name = "Txt files (*.txt;)";
SaveItemDialog saveTxtFileDialog = new SaveItemDialog()
{
Title = "Save Txt File",
InitialLocation = @"C:\Data\",
BrowseFilter = txtFilter,
OverwritePrompt = true
};
bool? result = saveTxtFileDialog.ShowDialog();
... View more
06-08-2020
02:29 PM
|
1
|
1
|
1285
|
|
POST
|
You could get the OIDs of the selected features and then pass it to the label class "WhereClause" to label only those features in the map. Is that what you are looking for? //Layer to label. US Cities lyr was used
var lyrOfInterest = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault();
QueuedTask.Run(() => {
var selection = MapView.Active.Map.GetSelection();
//Get the OIDs of the selected features
//We will use this to label those features only
var selectedOIDs = selection[lyrOfInterest];
//Get the layer's definition
var lyrDefn = lyrOfInterest.GetDefinition() as CIMFeatureLayer;
if (lyrDefn == null) return;
//Get the label classes - we need the first one
//Or you could create a new label class
var listLabelClasses = lyrDefn.LabelClasses.ToList();
var theLabelClass = listLabelClasses.FirstOrDefault();
//set the label class Expression to use the Arcade expression
theLabelClass.Expression = "$feature.CITY_NAME"; //label using city name
//Where clause is set to the OIDs of the selected features
theLabelClass.WhereClause = $"OBJECTID IN ({string.Join(",", selectedOIDs)})";
//theLabelClass.TextSymbol = Set to any text symbol you want
//Set the label definition back to the layer.
lyrOfInterest.SetDefinition(lyrDefn);
lyrOfInterest.SetLabelVisibility(true);
});
... View more
06-08-2020
01:59 PM
|
2
|
2
|
1928
|
|
POST
|
Hi Roy Have you tried selecting your tiff layer on the TOC (contents pane) before trying to activate the Georeference tab? You can activate a layer in the TOC programmatically using the SelectLayer method on the MapView. Here is the API Reference topic on this method. There is a code snippet in this topic: SelectLayers Pro is contextual, so the Georeference tab will only be displayed if the selected layer in the TOC is a raster layer. Regarding DAML Ids for buttons and tools, I find that using the "Show command IDs on Screen Tips" option is the most convenient way. Thanks Uma
... View more
06-08-2020
10:47 AM
|
2
|
2
|
2151
|
|
POST
|
Can you try getting the definitions of feature classes using the FileGeodatabase? Will that work for you? Like this: public async Task ObtainingDefinitionsFromGeodatabase(){
await ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() => {
using (Geodatabase geodatabase = new Geodatabase(new FileGeodatabaseConnectionPath(new Uri(@"C:\Data\Admin\AdminData.gdb")))){
IReadOnlyList<FeatureClassDefinition> fileGDBDefinitions = geodatabase.GetDefinitions<FeatureClassDefinition>();
IReadOnlyList<FeatureDatasetDefinition> featureDatasetDefinitions = geodatabase.GetDefinitions<FeatureDatasetDefinition>();
IReadOnlyList<FeatureClassDefinition> featureClassDefinitions = geodatabase.GetDefinitions<FeatureClassDefinition>();
}
});
}
... View more
06-01-2020
10:45 AM
|
0
|
0
|
1574
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-14-2026 09:54 AM | |
| 1 | 01-21-2026 10:48 AM | |
| 1 | 09-18-2025 03:09 PM | |
| 1 | 11-04-2025 08:25 AM | |
| 1 | 09-23-2025 09:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|