About the Reaction Feature Window 

You can access the Reaction window by clicking the icon in the Knowledge Advisor workbench.

The Reaction window is made up of 3 major fields: The Source Type field, the Source field and the Action field.

Source Type

  • Selection enables you to manually select one or more items in the specification tree or in the geometrical area. These items will be displayed in the Sources field. 
  • Owner enables you to link the action with a feature of the geometry or of the specification tree (see Using the Knowledge Advisor Reaction Feature: DragAndDrop Event where the reaction feature is linked with a Hole, for example).
    To link the reaction with an object of the geometry, click the Destination field and select an object in the specification tree or in the geometry.

Sources Field

A reaction is a feature that reacts to events (see Available events below) on an object called the source and that triggers an action. 

The Sources field displays the selected items with which the reaction will be linked (only available if the Selection Source type is selected.)

Available events

The events available in this scrolling list depend on the source type selected in the Source type field. The reaction will be fired when one of the events detailed below happens.

Available Events Explanation
AttributeModification The reaction is fired because of a change in an attribute state. Only available if Selection is selected.
BeforeUpdate The reaction is fired before a feature is updated.
DragAndDrop  The reaction is fired after a feature is dragged and dropped.
Insert The reaction is fired when a feature is inserted.
Inserted The reaction is fired after a feature is inserted.
Instantiation The reaction is fired when a User feature is instantiated.
Remove The reaction is fired when a feature is removed.
Update The reaction is fired right after a feature is updated. 
ValueChange The reaction is fired because of a parameter value change. Only available if Selection is selected.
FileContentModification The reaction is fired each time the file associated with the design table is modified.

Action Field

The action is triggered by a reaction that reacts to events on an object. This field enables you to select the language in which you want to write the action (VB or the Knowledge Advisor language) and to edit the action.

Edit action button

Click this button to access the Action Editor.

Action Editor

The action editor displayed depends on the language selected in the Action field.

If Knowledgeware action is selected, the window below is displayed.

The Edition pane enables you to enter the body of the action.
Two contextual commands improving display are available from the contextual menu in the editor:
  • Reframe on object under cursor lets you reframe on the feature both in the 3D visualization and in the specification tree.
  • Center graph on object under cursor locates the feature in the specification tree.
The Dictionary is divided into 2 or 3 panes depending on the selected category:
- The left-hand one displays the categories that can be used in an action.
- The middle one lists the objects belonging to the selected category.
- The right-hand one displays the members of the selected category.

If VB action is selected, the window below is displayed.

  • The Name field enables you to enter a name for the VB script.
  • The Comment field enables you to enter a comment associated with the VB script.
  • The Editor enables you to enter the VB script.
  • Insert object resolution enables you to select an object in the specification tree or in the geometry and to automatically add its resolution to the script.

(Click the graphic opposite to enlarge it.)

 

Creating a Reaction: DragAndDrop Event
Creating a Reaction: Insert Event

Creating a Reaction: Inserted Event
Creating a Reaction: Remove Event

Creating a Reaction: AttributeModification Event
Creating a Reaction: BeforeUpdate Event

Creating a Reaction: ValueChange Event

Using a Reaction with a User Feature: Instantiation Event
Using a Reaction with a Document Template: Instantiation Event
Creating a Reaction: Update Event
Creating a Reaction: File Content Modification Event