Page tree

If you know the preceding event, you can write code that recreates that event within the current rule and accesses the data.

The coding has the following limitations:

  • If you use the wrong type, a runtime error will occur.
  • The information in these old events is stale. If a Refine action creates some pages, events that occurred before the refine process won't have access to those pages.

 

' 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