|
POST
|
Along with split buttons, another way you can organize multiple buttons/tools is to use "galleries". Here are a couple of samples and screenshots of galleries you can create with Pro SDK: 1. OpenItemDialogBrowseFilter sample creates this gallery 2. Couple of Framework Gallery samples: Gallery Configure Gallery 3. ProGuide: Gallery Thanks Uma
... View more
10-28-2020
10:46 AM
|
1
|
1
|
6484
|
|
POST
|
Hi Kris, I looked up the split button for the Explore control. Here is the id: esri_mapping_exploreSplitButton This is how I found it: * I hovered over one of the menu items in this control to find the id. Screenshot below. * It is in the "Mapping" DAML since the id says "esri_mapping..". In the ADMapping.daml, search for esri_mapping_infoNone button. You will find the parent splitbutton it belongs in. <splitButton id="esri_mapping_exploreSplitButton" keytip="E" extendedCaption="Open current explore tool">
<tool refID="esri_mapping_exploreTool" />
<button refID="esri_mapping_infoTopmostLayerButton" />
<button refID="esri_mapping_infoAllLayersButton" />
<button refID="esri_mapping_infoSelectableLayersButton" />
<button refID="esri_mapping_infoSelectedTOCButton" />
<button refID="esri_mapping_infoNoneButton" />
<button refID="esri_mapping_screenPlanePanButton" separator="true" />
<button refID="esri_mapping_firstPersonModeButton" />
</splitButton> Thanks Uma
... View more
10-27-2020
07:03 AM
|
1
|
1
|
2183
|
|
POST
|
Hi, You can use the SetClipGeomerty method on the Map to get this. Here is a code snippet: Clip Map to the provided clip polygon If you create a polygon feature that represents your geometry that is used to clip, you can achieve this. Thanks Uma
... View more
10-20-2020
01:01 PM
|
0
|
0
|
1147
|
|
POST
|
Hi Mody, This issue is now fixed in ArcGIS Pro 2.7, which is the next release of Pro that will be out. Thanks again for reporting this issue. Uma
... View more
10-15-2020
08:15 AM
|
0
|
0
|
2016
|
|
POST
|
Hi, Here is the screenshot of the items in my GraphicsLayer: The order I added the points are like this: 1. Point was added first 2. MyCoolPoint was added second. Thanks! Uma
... View more
10-08-2020
09:28 AM
|
0
|
1
|
2016
|
|
POST
|
Hi Kris, Unfortunately with EditOperation there is no way to prevent it going on the undo stack. Thanks Uma
... View more
10-07-2020
03:20 PM
|
0
|
0
|
3102
|
|
POST
|
Hi Mody, This does look like a bug. Thanks for reporting it. As a workaround, can you please try naming the element after creating it? That works for me. var graphicsLayer = MapView.Active?.Map.TargetGraphicsLayer;
if (graphicsLayer == null) return;
QueuedTask.Run(() =>
{
//Place symbol in the center of the map
var extent = MapView.Active.Extent;
var location = extent.Center;
//specify a symbol
var pt_symbol = SymbolFactory.Instance.ConstructPointSymbol(
ColorFactory.Instance.GreenRGB);
//create a CIMGraphic
var graphic = new CIMPointGraphic()
{
Symbol = pt_symbol.MakeSymbolReference(),
Location = location, //center of map
};
graphic.Name = "MyCoolPoint";
graphicsLayer.AddElement(graphic);
var listOfElemToFind = new List<string>
{
"MyCoolPoint"
};
//This returns null
var elems = graphicsLayer.FindElements(listOfElemToFind);
//And so does this one.
var elem = graphicsLayer.FindElement("MyCoolPoint");
//The trick is to find the element you just added.
var ptElem = graphicsLayer.GetElements().FirstOrDefault();
//Rename now
ptElem.SetName("MyCoolPoint");
//This works now
elems = graphicsLayer.FindElements(listOfElemToFind);
//This works now
elem = graphicsLayer.FindElement("MyCoolPoint");
... View more
10-07-2020
02:13 PM
|
0
|
3
|
2016
|
|
POST
|
Hi Kris, Unfortunately MapNote can't be created using the API right now. But it will happen soon. Good news - there is a workaround though. Can you please try this? *Using the Pro UI: * add the Map Notes you want to the map. (I can help you with this if you need. Here is the help link: Map notes—ArcGIS Pro | Documentation ) * Save the Map notes as a layer file (using the sharing tab). These 3 steps are a one time process to store the MapNotes as a layer file. Then using the API: * Add the layer file to the active map. * You can now start graphical features to this map notes layer using MapPoints, Coord2D, etc. Instead of using Overlays, you would just be adding features to the map notes layer. * These can be exported. Please let me know if you run into issues. Thanks Uma
... View more
10-07-2020
09:07 AM
|
0
|
2
|
3102
|
|
POST
|
Hi Kris Overlays cannot be exported. Would it be possible for your workflow to use features in a File GDB instead? Have you looked at Map Notes instead for adding graphical notations to maps? They can be temporary or permanent additions to the map. They get saved to the File GDB and can be exported as an image from the map. Thanks Uma
... View more
10-07-2020
08:18 AM
|
0
|
4
|
3102
|
|
POST
|
Hi Kris, One more piece of information that I want to share with you about performance with what you are doing: It is a good idea to use Coordinate2D instead of MapPoints. Use these Coordinate2D points in the MultipointBuilder that consumes points. MapPointBuilder is quite slow in comparison. https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic8567.html Thanks! Uma
... View more
10-05-2020
09:30 AM
|
0
|
1
|
4095
|
|
POST
|
Hi Marvis We have this topic in this wiki: ProConcepts-Advanced-Topics#obfuscation
... View more
10-02-2020
01:24 PM
|
0
|
0
|
1243
|
|
POST
|
Hi Kris, Your workflow with adding the parts is exactly correct! You might have already seen this example in the API Reference. But in case you haven't, here is a code sample. It uses points, but similar for lines also. AddPart Method: ArcGIS Pro 2.6 API Reference Guide Thanks Uma
... View more
10-02-2020
09:46 AM
|
0
|
2
|
4095
|
|
POST
|
Hi Kris, One way you can optimize your workflow is by using multipoint geometry. (Multipart for polylines and polygons). I modified your code like this and saw a substantial improvement in performance. private void CreateQuadrant(MapView mapView, SpatialReference sr, MapPoint centerPoint, int quadrant, double dx, double dy)
{
List<MapPoint> list = new List<MapPoint>();
var pointSymbol = CreatePoinSymbol(Color.FromArgb(255, 0, 255, 255), 10.0);
MapPoint point = MapPointBuilder.CreateMapPoint(centerPoint.X + dx, centerPoint.Y + dy, sr);
for (int Row = 0; Row < quadrant; ++Row){
for (int Col = 0; Col < quadrant; ++Col){
list.Add(point);
//Graphics.Add(mapView.AddOverlay(point, pointSymbol.MakeSymbolReference()));
point = MapPointBuilder.CreateMapPoint(point.X + dx, point.Y, sr);
list.Add(point);
}
point = MapPointBuilder.CreateMapPoint(centerPoint.X + dx, point.Y + dy, sr);
}
Multipoint multiPoint = MultipointBuilder.CreateMultipoint(list);
Graphics.Add(mapView.AddOverlay(multiPoint, pointSymbol.MakeSymbolReference()));
}
Let me know how it goes! Thanks Uma
... View more
10-01-2020
04:46 PM
|
2
|
5
|
4095
|
|
POST
|
The description for AlwaysUseInitialLocation says this: "Always use the InitialLocation if specified. If not specified, the initial location may be the last location opened using the current filter." The main point in this description is this: “the initial location may be the last location opened using the current filter” So if you are using a filter in the open item dialog, the initial location that is displayed will be the location used by that filter previously (could be from a dialog different to yours). You can prevent this behavior by setting the AlwaysUseInitialLocation property to true.
... View more
10-01-2020
08:06 AM
|
0
|
1
|
1160
|
|
POST
|
Hi Robert, With Pro 2.5, the user.config file will be in the "Local" folder. The file was moved to the "Roaming profile" at 2.6. So here is the path you can find it in on your machine: C:\Users\<UserName>AppData\Local\ESRI\ArcGISPro.exe_StrongName Thanks Uma
... View more
09-22-2020
12:59 PM
|
0
|
1
|
1453
|
| 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 |
Thursday
|