|
POST
|
Hi Robert, Currently, the only way to turn off this backstage setting (without using the Pro UI) is to modify the setting in the user.config file in Pro's roaming folder. Here is an example of the location: C:\Users\<UserName>\AppData\Roaming\Esri\ArcGISPro.exe_StrongName_xxxxxxxx\2.7.0.0 Here is a snippet of the config file with the check box turned off in the backstage: <userSettings>
<ArcGIS.Desktop.Editing.Settings>
<setting name="ShowToolbar" serializeAs="String">
<value>False</value>
</setting> Thanks Uma
... View more
09-22-2020
09:34 AM
|
0
|
3
|
1453
|
|
POST
|
Thomas, One more thing you can look into - If you only want to get a list of all the maps in the project, it is better to get them from the MapProjectItems in your current project. This way, even if a map is not opened in a Map Pane, you will get that map in your collection. var projectMapItems = Project.Current.GetItems<MapProjectItem>();
if (projectMapItems == null) return null;
var projectMaps = await QueuedTask.Run(() =>
{
List<Map> maps = new List<Map>();
foreach (var item in projectMapItems)
{
maps.Add(item.GetMap());
}
return maps;
}); Something I just learned - If you have all the map panes open then only the active one is likely to be completely populated. This could be something you are running into. With the code snippet above, you will always be able to retrieve the maps in your project. Thanks Uma
... View more
09-21-2020
11:46 AM
|
1
|
0
|
6110
|
|
POST
|
Hi Thomas, I downloaded your aprx - Thanks for the example. I can see the problem when I run the code. As soon as I activate Map1, the problem goes away. Also, I tried making a new project with 2 empty maps - similar to yours. But I think I am missing something, because when I make my project, I don't see the issue. Is there anything specific with how you "hide" Map1 behind Map? When I un-dock my Map1, it comes to the front. I can't hide. Thanks Uma
... View more
09-21-2020
09:07 AM
|
0
|
0
|
6110
|
|
POST
|
Hi, On line 2, use XMax instead. That should fix the issue. Thanks Uma
... View more
09-15-2020
01:19 PM
|
1
|
1
|
2034
|
|
POST
|
Hi Helen, You have almost all the logic in Once you get the polygon of your feature, you need to get its lower left corner coordinates. Use that for the graphic's shape property. So like this: var poly = currentRow.GetShape() as Polygon;
var lowerLeftX = poly.Extent.XMin;
var lowerLeftY = poly.Extent.YMin;
myLabelGraphic.Shape = //Create MapPoint using these coordinates. Thanks Uma
... View more
09-14-2020
10:23 AM
|
1
|
3
|
2034
|
|
POST
|
Hi Thomas I am testing this issue - To confirm, are all the panes in your project "MapViews"? Do you have any Attribute table for a feature layer open, for example? These attribute tables impersonate the Map Pane, hence the question. Thanks Uma
... View more
09-14-2020
08:38 AM
|
0
|
3
|
6110
|
|
POST
|
Hi You can try something like this code snippet below. All the Esri brushes are listed in the wiki page shared by Wolf above. var esriBrush = Application.Current.Resources["Esri_BorderPressedBrush"] as Brush;
textBlock.Foreground = esriBrush; Thanks Uma
... View more
09-11-2020
11:02 AM
|
0
|
0
|
2225
|
|
POST
|
Hi In the ArcGIS Pro SDK repo, on the right you can see a link for "Releases: ArcGIS Pro 2.6 SDK for .NET (Latest)". When you click on this link, it takes you to the latest release page. Here is the direct link for this: ArcGIS Pro 2.6 SDK .NET Release page If you scroll to the bottom of this release, you can see some resources available for download. One of them is the API Reference guide chm. Thanks Uma
... View more
08-26-2020
09:46 AM
|
1
|
1
|
1205
|
|
POST
|
Hi, Here is a code snippet you can use to retrieve the values. public static Task<object> ActiveCellContents()
{
if (FrameworkApplication.Panes.ActivePane is ITablePane tablePane)
{
var mapMember = tablePane.MapMember;
var oid = tablePane.ActiveObjectID;
if (oid.HasValue && oid.Value != -1 && mapMember != null)
{
var activeField = tablePane.ActiveColumn;
return QueuedTask.Run<object>(() =>
{
// TODO: Use core objects to retrieve record and get value
return null;
});
}
}
return Task.FromResult<object>(null);
} Thanks Uma
... View more
08-20-2020
09:32 AM
|
0
|
1
|
1282
|
|
POST
|
Hi Alex, Have you set the autoload DAML attribute to true to load your module? I am wondering if the event subscription kicked in. One way to confirm can be to put System diagnostic messages in your OnProjectClosing event handler. I use that to test events. I was able to disable Project closing with your code. Thanks Uma if (CanClosePro == false)
{
args.Cancel = true;
System.Diagnostics.Debug.WriteLine(..
return Task.FromResult(0);
}
... View more
08-18-2020
08:08 AM
|
1
|
0
|
1307
|
|
POST
|
Use the AlwaysFireOnClick property. You can find more information on this on the Galleries wiki page. ProGuide: Galleries Thanks! Uma
... View more
08-13-2020
10:22 AM
|
0
|
0
|
1069
|
|
POST
|
Hi Justin, I am also seeing that the MapURI property is empty in the ActivePaneChangedEvent handler. This is happening because this event is triggered before the Table pane (in your case) has been initialized (which is when the MapURI will exist). To account for this, I subscribed to the ActivePaneInitializedEvent when the MapURI was empty - This seems to do the trick. I get a valid MapURI at this point. Code snippet below. But - you could also simply only use the ActivePaneInitializedEvent. Based on your workflow (comparing the Map URIs to know if it is a completely new map), just this one event might give you all you need. Thanks Uma //Somewhere subscribe to ActivePaneChangedEvent
ArcGIS.Desktop.Framework.Events.ActivePaneChangedEvent.Subscribe(OnActivePaneChanged);
private void OnActivePaneInitialized(ActivePaneInitializedEventArgs args)
{
System.Diagnostics.Debug.WriteLine("Pane initialized");
var activePane = FrameworkApplication.Panes.ActivePane as TOCActiveMapViewProviderPane;
if (activePane == null) return;
_mapURI = activePane.MapURI;
System.Diagnostics.Debug.WriteLine($@"mapURI: {_mapURI}");
}
private void OnActivePaneChanged(PaneEventArgs args)
{
if (args.IncomingPane == null) return;
var inPane = args.IncomingPane as TOCActiveMapViewProviderPane;
//var mapViewURI = inPane?.MapView?.Map.URI;//empty string
_mapURI = inPane?.MapURI; //empty string
if (string.IsNullOrEmpty(_mapURI))
{
ActivePaneInitializedEvent.Subscribe(OnActivePaneInitialized);
return;
}
System.Diagnostics.Debug.WriteLine($"Debug Message. GetTypeName: {args.IncomingPane.GetType().Name}");
System.Diagnostics.Debug.WriteLine($@"mapURI: {_mapURI}");
}
... View more
08-13-2020
09:37 AM
|
1
|
0
|
2001
|
|
POST
|
Hi Justin, Are you specifically trying to find the Map URI when you open an Attribute table of a feature layer in the active map? Just trying to understand your exact workflow. Thanks! Uma
... View more
08-12-2020
06:46 PM
|
0
|
2
|
2001
|
|
POST
|
Hi Matthew, You can use the BrowseProjectFilters and OpenItemDialog class to achieve what you need. Pro offers a collection of existing BrowseProjectFilters that you can use. For example, "esri_browseDialogFilters_shapefiles" will allow you to browse just for shape files. Note: You can also make your own filters for other file types. Here is a rough workflow: Create a BrowseProjectFilter instance. You can instantiate it with one of the existing Pro filters (Shape file filter listed above is an example). Create an OpenItemDialog object and set its "BrowseFilter" property to the BrowseProjectFilter instance created (above). Call the Show method on the OpenItemDialog to display the dialog, filtering for the file types. Here are some wiki pages that can help you: All Pro existing BrowseProjectFilters are listed here: ProSnippets: Browse Dialog Filters A Guide that gives you examples of a complete workflow in creating OpenItemDialog with Browse filters: ProGuide: Custom Browse Dialog Filters Concept docs that explains how filters work in Pro: Browse Dialog Filters Thanks Uma
... View more
08-12-2020
02:48 PM
|
1
|
0
|
2038
|
|
POST
|
Hi Brian, Is this the workflow you are trying to achieve? 1. Create a line (Is this a graphic line element in a map/layout?) 2. Get the inclination angle of the line. 3. Align text on this line. Thanks Uma
... View more
08-12-2020
11:21 AM
|
0
|
1
|
2097
|
| 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
|