Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space PRINSAG and version 9.0
Sv translation
languageen

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

Sv translation
languagede

Wenn Ihnen das frühere Ereignis bekannt ist, können Sie Code schreiben, der das Ereignis in der aktuellen Regel erneut erstellt und auf die Daten zugreift.
Für den Code gelten die folgenden Einschränkungen:

Anchor
Bookmark176_concept_EC1ECE9E80244E20825D
Bookmark176_concept_EC1ECE9E80244E20825D

  • Wenn Sie einen falschen Typ verwenden, tritt ein Laufzeitfehler auf.
  • Die Informationen in diesen vorangegangenen Ereignissen sind veraltet. Wenn z. B. mit einer Aktion Refinen Seiten erstellt werden, können Ereignisse, die vor dem Refining-Prozess eingetreten sind, auf diese Seiten nicht zugreifen.

' 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

Sv translation
languagezh

如果您知道先前事件,则可以编写代码,在当前规则内创建该事件并访问数据。
编码有以下限制:

Anchor
Bookmark176_concept_EC1ECE9E80244E20825D
Bookmark176_concept_EC1ECE9E80244E20825D

  • 如果使用了错误的类型,则会发生运行时错误。
  • 这些旧事件中的信息是陈旧的。如果精炼操作创建了一些页面,在精炼处理之前发生的事件不会有访问这些页面的权限。

' 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

Sv translation
languagees

Si conoce el evento precedente, puede escribir código que lo recree en la regla actual y que acceda a los datos.
El código tiene las siguientes limitaciones:

Anchor
Bookmark176_concept_EC1ECE9E80244E20825D
Bookmark176_concept_EC1ECE9E80244E20825D

  • Si utiliza un tipo erróneo, se producirá un error de tiempo de ejecución.
  • La información de estos eventos antiguos es inestable. Si una acción Afinar crea algunas páginas, los eventos que hayan ocurrido antes del proceso de afinado no tendrán acceso a dichas páginas.

' 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

Sv translation
languagefr

Si vous connaissez l'évènement précédent, vous pouvez écrire le code qui recrée cet évènement dans la règle actuelle et accède aux données.
Le codage a toutefois les limites suivantes :

Anchor
Bookmark176_concept_EC1ECE9E80244E20825D
Bookmark176_concept_EC1ECE9E80244E20825D

  • si vous utilisez le mauvais type, une erreur d'exécution survient.
  • Les informations contenues dans ces anciens évènements sont périmées. Si une action Raffiner crée quelques pages, les événements survenus avant le processus de raffinage ne connaîtront pas ces 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

Sv translation
languageja

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

Anchor
Bookmark176_concept_EC1ECE9E80244E20825D
Bookmark176_concept_EC1ECE9E80244E20825D

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

' 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