Sometimes we want to make changes to our iLogic rules but we do not necessarily want the rule to run after making these changes. In earlier releases of Inventor, the Rule Editor only has two buttons, OK and Cancel (see image below).
If you click OK, the rule will run immediately. If you click Cancel, you would lose the changes you made to the rule. Below are a few workarounds that can be used to save your changes in releases prior to 2017 and which one to use depends on your circumstances:
If you are okay with the rule running but you know that the rule will cause an error:
- You can click OK and rule will run
- When error pops up, accept the error
- The IDE will pop open again
- Click Cancel. (Don’t worry, the changes you made will be saved)
If you do not want the rule to run immediately:
- Go to the Options tab of the Rule Editor
- Click the Suppressed check box (see image below)
- Click OK
- In the Rules tab of the iLogic Browser, right click on the rule and Unsuppress it.
As of Inventor 2017, there were changes made to the iLogic Rule Editor that make it a little easier to edit rules, specifically, we now have the Save button.
The Save button will save your rule and close the Rule Editor without running the rule. The Save & Run button does what OK used to, closes the Rule Editor and runs the rule.
“Give a man a program, frustrate him for a day. Teach a man to program, frustrate him for a lifetime.” - Waseem Latif
Randy
Comments