laptop and a wrench

Error

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
Número de ID del error BUG-000174299
EnviadoFebruary 12, 2025
Última modificaciónMarch 11, 2025
Relacionado conArcGIS Pro SDK for .NET
Versión encontrada3.3
Sistema operativoWindows OS
Versión de sistema operativo11.0 64 bit
EstadoWill Not Be Addressed

Información adicional

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

Solución alternativa

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; }

Pasos para reproducir

ID del error: BUG-000174299

Software:

  • ArcGIS Pro SDK for .NET

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga