laptop and a wrench

Bug

Using ExecuteCommandArgs to open a dock pane empties the DockpaneManager object, not allowing it to to open any dock pane in ArcGIS Pro SDK for .NET.

ArcGIS Pro SDK for .NET
Bug-ID-Nummer BUG-000174299
EingereichtFebruary 12, 2025
Zuletzt geändertMarch 11, 2025
Gilt fürArcGIS Pro SDK for .NET
Gefunden in Version3.3
BetriebssystemWindows OS
Betriebssystemversion11.0 64 bit
StatusWill Not Be Addressed

Zusätzliche Informationen

Do not use the QueuedTask to open the dockpane. It has to be opened on the UI thread.

Workaround

Do not use the QueuedTask to open the dock pane. It has to be opened on the UI thread. Try this instead: protected override Func ExecuteCommandArgs(string id) { try { ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show($"message: {id}"); // Run the command specified by the id passed into ExecuteCommandArgs IPlugInWrapper wrapper = FrameworkApplication.GetPlugInWrapper(id); var command = wrapper as ICommand; if (command != null && command.CanExecute(null)) command.Execute(null); } catch (System.Exception e) { ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show($"ERROR: {e}", "Error running command"); } return (object[] args) => DoNothing(); } private Task DoNothing() { return Task.CompletedTask; }

Schritte zur Reproduzierung

Bug-ID: BUG-000174299

Software:

  • ArcGIS Pro SDK for .NET

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln