Creating a Reaction: AttributeModification Event

If you want your reaction to react to the modification of an attribute, select the AttributeModification event associated with the reaction feature.

Note: You may also create a reaction by clicking the relation set in the tree and clicking Reaction .

In this scenario, you are going to create a reaction based on the activity (activated or deactivated) of a point. If the point is activated, a message box appears.

Note: This reaction is designed to react to attributes modifications (state, name, thickness...). Modification events are not available for all features. If it is the case with the feature you have selected, select the attribute in the Select a source... window and use the Value Change event. The reaction will be launched when the attribute is modified. If you want the value of the parameter/formula to display, the "\V" combination must be used

See Also
About Reactions
  1. Create a 3DShape containing a point. Deactivate this point.
  2. From the Compass, click 3D Modeling Apps , and select Engineering Rules Capture.
  3. Click Reaction to create a reaction.
    1. In the Source type box, select Selection and select Point.1 in the tree.
    2. From the Attributes scrolling list, select Activity for the reaction to be launched when the point is activated or deactivated.
    3. From the Available events scrolling list, select AttributeModification.
    4. In the Action box, select Visual Basic action and enter the following text into the editor: MsgBox "Point.1 activated".
    5. Click OK when done.
      The reaction is created and appears below the Relations node in the tree.
  4. Right-click Point.1 and select Point.1 object > Activate.
    A dialog box appears indicating that Point.1 is activated.
  5. Click OK.