Erro
Número de ID do Erro | BUG-000174299 |
---|---|
Enviado | February 12, 2025 |
Última Modificação | March 11, 2025 |
Aplica-se à | ArcGIS Pro SDK for .NET |
Versão encontrada | 3.3 |
Sistema Operacional | Windows OS |
Versão do Sistema Operacional | 11.0 64 bit |
Status | Will Not Be Addressed |
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; }
ID do Erro: BUG-000174299
Software:
Obtenha ajuda de especialistas do ArcGIS
Baixe o Aplicativo de Suporte da Esri