An Introduction to Autodesk Inventor iLogic – Part One – 11

Creating iLogic Rules – 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 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 Rule Editor dialog. If there are no mistakes, the Rule Editor will close without an error message. An icon representing the new 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 rules in the current model. We’ll work more with the Tree Editor later in this tutorial.

 

 

 

 

 

 

 

 

 

 

1234567891011121314151617181920

 



Subsribe to Post Notifications


 





Leave a Reply