laptop and a wrench

不具合

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
不具合 ID 番号 BUG-000174299
送信されましたFebruary 12, 2025
最終更新日March 11, 2025
適用対象ArcGIS Pro SDK for .NET
見つかったバージョン3.3
オペレーティング システムWindows OS
オペレーティング システムのバージョン11.0 64 bit
ステータスWill Not Be Addressed

参考情報

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

対処法

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: BUG-000174299

ソフトウェア:

  • ArcGIS Pro SDK for .NET

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動