laptop and a wrench

Bogue

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
Numéro d’ID de bogue BUG-000174299
EnvoiFebruary 12, 2025
Dernière modificationMarch 11, 2025
S’applique àArcGIS Pro SDK for .NET
Version trouvée3.3
Système d’exploitationWindows OS
Version du système d’exploitation11.0 64 bit
StatutWill Not Be Addressed

Informations supplémentaires

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

Solution de contournement

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

Étapes pour reproduire

ID de bogue: BUG-000174299

Logiciel:

  • ArcGIS Pro SDK for .NET

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement