To Run Rules with iTriggers
You can use an iTrigger parameter to fire rules manually.
For example, you can use an iTrigger to launch a dialog that provides a custom interface for defining design parameters.
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.
Create iTrigger Parameter
- Close the Edit Rule dialog box if it is currently open.
- On the ribbon, click Manage tab
iLogic panel
iTrigger
.
Enable Rule to be Triggered
Open the rule in the Edit Rule dialog box.
Add the following line:
trigger = iTrigger0
Important: iTrigger0 is a parameter and is case sensitive.Save the rule and close the Edit Rule dialog box.
Trigger Rule Manually
To run a rule that references the iTrigger0 parameter, on the ribbon, click Manage tab
iLogic panel
iTrigger
.
Note: It is possible for multiple rules to run when the iTrigger button is clicked. Any rules that reference the iTrigger0 parameter are run.