Creating a Reaction: BeforeDelete and NameChange Events

You can create a reaction that starts directly after the instantiation of an engineering template. The Reaction command lets you handle data changes while deleting or renaming a user feature (UDF).

If you incorporate the reaction into the UDF, the embedded reaction triggers the corresponding EKL action, when the user feature instance is deleted or renamed.


Before you begin: Create an engineering template and open an assembly.
  1. From the Compass, click 3D Modeling Apps and open Engineering Rules Capture.
  2. From the Engineering Rules Capture section of the action bar, click the Reaction .
    The reaction tab appears.
  3. From Source type, select Owner.
  4. From Available events, select BeforeDelete.
  5. Under Action, select Knowledge action and enter this text into the editor: Message ("EventBeforeDelete is called Successfully").
  6. Click OK.
    The reaction is created and appears under the Relations node in the tree.
  7. To create a name change event, perform steps 1-3.
  8. From the Available events, select NameChange.
  9. In Action, select Knowledge action and enter this text into the editor: Message ("EventNameChange is called Successfully") .
  10. Click OK.
    The name of the reaction updates under the Relations node in the tree.