iLogic Tutorial for the iDoor – 14

iLogic Tutorial – Creating the “Handed” iLogic Rule

You should now have code that matches the code shown in the image below.

iLogic Tutorial for the iDoor Page Fourteen Image 01 - iLogic Rule Section

The next seven lines tell the rest of the right-hand features to be suppressed, and the eight after that tell all eight of the left-hand features to be unsuppressed. You can copy and paste the text below into the code window, but it is not good practice. You can copy and paste the code below, but it would be better practice to write the code yourself.

Feature.IsActive(“Sm Right_Dowel_Bores”) = False
Feature.IsActive(“Sm Pattern Right”) = False
Feature.IsActive(“Right_Cup_Bore”) = False
Feature.IsActive(“Right_Dowel_Bores”) = False
Feature.IsActive(“Med Pattern Right”) = False
Feature.IsActive(“LG Pattern Right”) = False
Feature.IsActive(“XLG Pattern Right”) = False
Feature.IsActive(“Sm Left_Cup_Bore”) = True
Feature.IsActive(“Sm Left_Dowel_Bores”) = True
Feature.IsActive(“Sm Pattern Left”) = True
Feature.IsActive(“Left_Cup_Bore”) = True
Feature.IsActive(“Left_Dowel_Bores”) = True
Feature.IsActive(“Med Pattern Left”) = True
Feature.IsActive(“LG Pattern Left”) = True
Feature.IsActive(“XLG Pattern Left”) = True

The next part basically says “do what it says above unless Right is selected. If it is, then do the following. The list is exactly the same as the one above except for the true and false statements being reversed.

ElseIf Handed = “Right” Then
Feature.IsActive(“Sm Right_Cup_Bore”) = True
Feature.IsActive(“Sm Right_Dowel_Bores”) = True
Feature.IsActive(“Sm Pattern Right”) = True
Feature.IsActive(“Right_Cup_Bore”) = True
Feature.IsActive(“Right_Dowel_Bores”) = True
Feature.IsActive(“Med Pattern Right”) = True
Feature.IsActive(“LG Pattern Right”) = True
Feature.IsActive(“XLG Pattern Right”) = True
Feature.IsActive(“Sm Left_Cup_Bore”) = False
Feature.IsActive(“Sm Left_Dowel_Bores”) = False
Feature.IsActive(“Sm Pattern Left”) = False
Feature.IsActive(“Left_Cup_Bore”) = False
Feature.IsActive(“Left_Dowel_Bores”) = False
Feature.IsActive(“Med Pattern Left”) = False
Feature.IsActive(“LG Pattern Left”) = False
Feature.IsActive(“XLG Pattern Left”) = False

The last chunk tells the program to follow all of the instructions above unless the value is None, in which case, do the following. It is again exactly the same code chunk as those above with the exception of all values being False. If the value is “None”, all features listed are suppressed.

ElseIf Handed = “None” Then
Feature.IsActive(“Sm Right_Cup_Bore”) = False
Feature.IsActive(“Sm Right_Dowel_Bores”) = False
Feature.IsActive(“Sm Pattern Right”) = False
Feature.IsActive(“Right_Cup_Bore”) = False
Feature.IsActive(“Right_Dowel_Bores”) = False
Feature.IsActive(“Med Pattern Right”) = False
Feature.IsActive(“LG Pattern Right”) = False
Feature.IsActive(“XLG Pattern Right”) = False
Feature.IsActive(“Sm Left_Cup_Bore”) = False
Feature.IsActive(“Sm Left_Dowel_Bores”) = False
Feature.IsActive(“Sm Pattern Left”) = False
Feature.IsActive(“Left_Cup_Bore”) = False
Feature.IsActive(“Left_Dowel_Bores”) = False
Feature.IsActive(“Med Pattern Left”) = False
Feature.IsActive(“LG Pattern Left”) = False
Feature.IsActive(“XLG Pattern Left”) = False
End If

The End If ends the statements and this rule. Click OK. If everything was entered correctly, the part should suddenly have all of the left handed bore holes visible.

iLogic Tutorial Navigation –

Intro12345678910111213141516171819

 

iDoor Tutorial Two

Subscribe to Blog via Email