Page tree

前のイベントがわかっている場合は、現在のルールに基づいてイベントを再作成し、データにアクセスするコードを記述できます。
このコードには、次の制限事項があります。

  • 間違ったタイプのイベントを使用した場合は、実行時エラーが発生します。
  • 古いイベント内にある情報は最新ではありません。たとえばリファインアクションでページを作成した場合、リファイン プロセス以前に発生したイベントはこのページにアクセスできません。

' Casting the very first event in this rule to its type
Dim myRootEvent As Creo.PWS.Automation.GenericDataModel.GenericUserStartEvent =
triggerEvent.RootEvent
' Casting the previous event in this rule to its type
Dim myRefineOkEvent As CreoCreo.PWS.Automation.PrinergyDataModel.InputFileRefinedOk =
triggerEvent.Previous

  • No labels