InitializeWindow 関数は DataStandard ウィンドウが表示される前に実行されます。この関数では、変数の事前定義、イベントの登録、またはウィンドウ外観のカスタマイズが行えます。
Vault Client、Inventor、および AutoCAD アドインから呼び出されます。関数は必須であり、削除できません。
既定の実装で使用できます。
function InitializeWindow
{
# define the windows size
$dsWindow.Width = 500
$dsWindow.Height = 600
# subscribe to the "Click" event of the OK button
$dsWindow.FindName("ButtonOk").add_Click(
{
[System.Windows.Forms.MessageBox]::Show("OK button clicked")
})
}