How to add your knowledge

iTriggers

    Table of contents
    No headers

    What is an iTrigger?

    iTrigger refers to an Inventor user parameter that you can include in the current document to fire rules manually. This parameter is frequently used to launch a dialog box from a rule. The dialog box provides a custom interface to define design parameters.

    How does an iTrigger work?

    The iTrigger command creates an Inventor user parameter named iTrigger0 in the document being edited. If the parameter exists in the document, the command increases the value of this parameter by 1 and fires any rules containing the iTrigger0 parameter.

    After you use the iTrigger command to create the iTrigger0 parameter, add the following line in a rule to fire it when the command is used again:

     

    trigger = iTrigger0

     

    Procedures:

    Use iTriggers to run rules

    Create an iTrigger parameter

    1. Close the Edit Rule dialog box if it is currently open.
    2. On the ribbon, click Manage tab ac.menuaro.gif iLogic panel ac.menuaro.gif iTrigger icon_cmd_trigger_32.png.

    Enable a rule to be triggered

    1. Open the rule in the Edit Rule dialog box.
    2. Add the following line:

      trigger = iTrigger0

    3. Save the rule and close the Edit Rule dialog box.

    Trigger a rule manually

    To run a rule that references the iTrigger0 parameter, on the ribbon, click Manage tab ac.menuaro.gif iLogic panel ac.menuaro.gif iTrigger icon_cmd_trigger_32.png .

    Note: It is possible for multiple rules to run when the iTrigger button is clicked. Any rules that reference the iTrigger0 parameter are run.

     

    References

    iTrigger

    Use the iTrigger command to create an iTrigger0 parameter in the current document and fire any rules containing the iTrigger0 parameter.

    Access:

    Ribbon: Manage tab ac.menuaro.gif iLogic panel ac.menuaro.gif iTrigger icon_cmd_trigger_32.png