How to add your knowledge

Event triggers

    Table of contents
    No headers

    What is an event trigger?

    Event triggers allow you to run rules based on specific events that occur in Inventor documents (parts, assemblies, or drawings). You choose an event and the rules to trigger for that event. You can select rules within the document and external rules.

    What types of events can trigger a rule?

    Several types of document events can be used to trigger rules:

    • When a new document is created.
    • After a document is opened.
    • Before a document is saved.
    • After a document is saved.
    • Before a document closes.
    • When any model parameter is changed.
    • When an iProperty is changed.
    • When the feature of a part is suppressed or unsuppressed.
    • When the geometry of a part is changed.
    • When the material of a part is changed.
    • When a component of an assembly is suppressed or unsuppressed.
    • When a component of an iPart or iAssembly is changed.
    • When a drawing view is changed.

     

    Procedures:

    Use event triggers

    Trigger a rule based on an event

    1. icon_cmd_triggerevents.pngOn the ribbon, click Manage tab ac.menuaro.gif iLogic panel ac.menuaro.gif Event Triggers .

      A dialog box displays the list of available events.

    2. Click an event in the list.
    3. Click Select Rules, or right-click and choose Select Rules from the context menu.
    4. Place a check mark next to each rule to run for this event. You can select rules in the document and external rules.
    5. Click OK after all the rules for this event have been selected.
    6. If necessary, drag the rules listed for an event up or down to change the order in which they run.
    7. Click OK to close the event list.

    Change the order of rules triggered by an event

    1. icon_cmd_triggerevents.pngOn the ribbon, click Manage tab ac.menuaro.gif iLogic panel ac.menuaro.gif Event Triggers .

      A dialog box displays the list of available events.

    2. Drag the rules for an event up or down to change the order in which they run.
    3. Click OK to close the event list.

    Remove a triggered rule from an event

    1. icon_cmd_triggerevents.pngOn the ribbon, click Manage tab ac.menuaro.gif iLogic panel ac.menuaro.gif Event Triggers .

      A dialog box displays the list of available events.

    2. Click the event in the list.
    3. Click Select Rules, or right-click and choose Select Rules from the context menu.
    4. Clear the check mark next to the rule to remove from the event.
    5. Click OK.
    6. Click OK to close the event list.

     

    References

    Rules Triggered by Events

    Use this dialog box to select an event that triggers selected rules, and to manage the order in which the rules are triggered..

    Access:

    Ribbon: Manage tab ac.menuaro.gif iLogic panel ac.menuaro.gif Event Triggers icon_cmd_triggerevents.png ,
    Run these rules when events occurEnables or disables the rules for the events in the list.
    Events listDisplays the events for which rules can be triggered:
    • New Document fires when a new document is created from a template. For example, you can use it to prompt for iProperties values.
    • After Open Document fires immediately after the document is opened, but before it displays.
    • Before Save Document fires immediately before the document is saved. If you have a rule for this event, it can change the document and the changes are saved.
    • After Save Document fires after the document is saved. Your rule can perform actions such as exporting the model to DWG or DWF, or other formats.
    • Close Document fires immediately before the document closes. Do not change the document in a rule that is assigned to this event.
    • Any Model Parameter Change fires when any model parameter changes. You can check the mass properties using a rule in this manner.
    • iProperty Change fires when any iProperty (other than a Physical iProperty) changes value. This event does not trigger the rule if the iProperty is changed outside of Autodesk Inventor (from Windows Explorer, Design Assistant, Vault, and so on). The rule is not triggered the next time you open the model in Autodesk Inventor.
    • Feature Suppression Change fires when any part feature is suppressed or unsuppressed. This event only works in parts.
    • Part Geometry Change fires when the part solid or surface body changes for any reason. It is useful for performing actions that depend on measure functions or physical properties. This event only works in parts.
    • Material Change is available only in part documents. If you have a rule for this option, it likely checks the material with statements such as

      If iProperties.Material = "Steel" Then ...

    • Component Suppression Change fires when an assembly component is suppressed or unsuppressed.
    • iPart or iAssembly Change Component fires when a Change Component operation (choosing a different row in the table) is performed for an iPart or iAssembly instance.
    • Drawing View Change fires when a drawing updates due to changes in the model that is shown in a view. Typically, this update occurs when you activate a drawing (switch to the drawing window) after you have changed the model. The event is triggered once for the active sheet, no matter how many views are on the sheet.
    Select Rules...Displays the dialog box that allows you to select the rules to be triggered for a selected event.
    OKSaves the current event triggers and closes the dialog box.
    CancelCancels the operation.

     

     

    Choose Rules

    Use this dialog box to select the rules..

    Access:

    Ribbon: Manage tab ac.menuaro.gif iLogic panel ac.menuaro.gif Event Triggers icon_cmd_triggerevents.png, , then click Select Rules..., or right-click and choose Select Rules... from the context menu.
    Rules in this documentLists the rules within the current document that the selected event can trigger. A check mark next to a rule indicates that it is selected.
    External rulesLists the rules outside of Inventor that the selected event can trigger. A check mark next to a rule indicates that it is selected.
    OKSaves the current selections and closes the dialog box.
    CancelCancels the operation.