Creating an iLogic Rule – Continued Again
Finally, modify the newly pasted text to deactivate (suppress) both hole features when the holes parameter is set to “none”. Finish the statement by typing “End If” (or clicking the corresponding keyword button).
Your completed iLogic rule should look like this:
Feature.IsActive(“flange_hole”) = True
Feature.IsActive(“base_hole”) = False
ElseIf holes = “base” Then
Feature.IsActive(“flange_hole”) = False
Feature.IsActive(“base_hole”) = True
ElseIf holes = “none” Then
Feature.IsActive(“flange_hole”) = False
Feature.IsActive(“base_hole”) = False
End If
In the iLogic Rules Editor text window, right clicking will bring up a contextual menu with Cut, Copy and Paste, and other editing commands.
Click OK in the bottom right of the iLogic Rule Editor dialog. If there are no mistakes, the iLogic Rule Editor will close without an error message. An icon representing the new iLogic rule will appear in the iLogic Tree Editor. Verify this by opening the Tree Editor. You access this by clicking the Edit iLogic Tree icon:
The iLogic Tree Editor provides a way for you to see the iLogic rule in the current model. We’ll work more with the Tree Editor later in this tutorial.
iLogic Tutorial Navigation
1 – 2 – 3 – 4 – 5 – 6 – 7 – 8 – 9 – 10 – 11 – 12 – 13 – 14 – 15 – 16 – 17 – 18 – 19 – 20