iLogic Tutorial From Autodesk – 11

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:

If holes = “flange” Then
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:

iLogic Rule Editor Icon

Using the iLogic Tree Editor



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



iLogic Intro One

Subscribe to Blog via Email