10-28-2019
12:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-28-2019
12:54 PM
So I am trying to create some iLogic rules and I already hit an issue. I have an iAssembly with 2 parts in it 750650110 and 750650111. This iAssembly is in my final iAssembly and I am trying to very basically create 2 final assembly configurations. When I select the version that uses the 750650110, I want the hardware that is specific to the 750650111 to disable by an iLogic rule. This 1 rule alone would save me 17 table entries and that isn't even factoring in the constraints. 1 Model file to rule all of the configurations is the best thing since 3D CAD if it can actually work.
When I run the rule the parts disappear, but they do not exclude. When I rebuild the model they reappear. So it is trying to work but not quite there.
If Component.iComponentIsActive("750650110:1") Then
Component.InventorComponent("RING TERMINAL .25 12-10GA RING TERMINAL .25 12-10GA-Silver:3").Excluded = True
Component.InventorComponent("Plain Washer - Inch 1/4 - Regular - Type B:10").Excluded = True
Component.InventorComponent("Hex Nut - Inch 1/4 - 28:8").Excluded = True
Component.InventorComponent("Split Lock Washer - Inch 0.25:8").Excluded = True
Component.InventorComponent("HHCS - Inch 1/4-28 UNF - 0.75:7").Excluded = True
Component.InventorComponent("Plain Washer - Inch 1/4 - Regular - Type B:8").Excluded = True
Component.InventorComponent("Hex Nut - Inch 1/4 - 28:6").Excluded = True
Component.InventorComponent("Split Lock Washer - Inch 0.25:6").Excluded = True
Component.InventorComponent("HHCS - Inch 1/4-28 UNF - 0.75:6").Excluded = True
Component.InventorComponent("Plain Washer - Inch 1/4 - Regular - Type B:7").Excluded = True
Component.InventorComponent("Hex Nut - Inch 1/4 - 28:5").Excluded = True
Component.InventorComponent("Split Lock Washer - Inch 0.25:5").Excluded = True
Component.InventorComponent("Plain Washer - Inch 1/4 - Regular - Type B:5").Excluded = True
Component.InventorComponent("Hex Nut - Inch 1/4 - 28:3").Excluded = True
Component.InventorComponent("Split Lock Washer - Inch 0.25:3").Excluded = True
Component.InventorComponent("HHCS - Inch 1/4-28 UNF - 0.75:3").Excluded = True
Component.InventorComponent("HHCS - Inch 1/4-28 UNF - 0.75:4").Excluded = True
Constraint.IsActive("DUAL BRIDGE HARDWARE:54") = False
Constraint.IsActive("DUAL BRIDGE HARDWARE:52") = False
Constraint.IsActive("DUAL BRIDGE HARDWARE:53") = False
Constraint.IsActive("DUAL BRIDGE HARDWARE:55") = False
Constraint.IsActive("Gun 2 Cable:1") = False
Constraint.IsActive("Gun 2 Cable:2") = False
Constraint.IsActive("Gun 2 Cable:3") = False
Constraint.IsActive("Gun 2 Cable:4") = False
Constraint.IsActive("Gun 2 Cable:5") = False
Constraint.IsActive("Gun 2 Cable:6") = False
End If
If Component.iComponentIsActive("750650111:1") Then
Component.InventorComponent("RING TERMINAL .25 12-10GA RING TERMINAL .25 12-10GA-Silver:3").Excluded = False
Component.InventorComponent("Plain Washer - Inch 1/4 - Regular - Type B:10").Excluded = False
Component.InventorComponent("Hex Nut - Inch 1/4 - 28:8").Excluded = False
Component.InventorComponent("Split Lock Washer - Inch 0.25:8").Excluded = False
Component.InventorComponent("HHCS - Inch 1/4-28 UNF - 0.75:7").Excluded = False
Component.InventorComponent("Plain Washer - Inch 1/4 - Regular - Type B:8").Excluded = False
Component.InventorComponent("Hex Nut - Inch 1/4 - 28:6").Excluded = False
Component.InventorComponent("Split Lock Washer - Inch 0.25:6").Excluded = False
Component.InventorComponent("HHCS - Inch 1/4-28 UNF - 0.75:6").Excluded = False
Component.InventorComponent("Plain Washer - Inch 1/4 - Regular - Type B:7").Excluded = False
Component.InventorComponent("Hex Nut - Inch 1/4 - 28:5").Excluded = False
Component.InventorComponent("Split Lock Washer - Inch 0.25:5").Excluded = False
Component.InventorComponent("Plain Washer - Inch 1/4 - Regular - Type B:5").Excluded = False
Component.InventorComponent("Hex Nut - Inch 1/4 - 28:3").Excluded = False
Component.InventorComponent("Split Lock Washer - Inch 0.25:3").Excluded = False
Component.InventorComponent("HHCS - Inch 1/4-28 UNF - 0.75:3").Excluded = False
Component.InventorComponent("HHCS - Inch 1/4-28 UNF - 0.75:4").Excluded = False
Constraint.IsActive("DUAL BRIDGE HARDWARE:54") = True
Constraint.IsActive("DUAL BRIDGE HARDWARE:52") = True
Constraint.IsActive("DUAL BRIDGE HARDWARE:53") = True
Constraint.IsActive("DUAL BRIDGE HARDWARE:55") = True
Constraint.IsActive("Gun 2 Cable:1") = True
Constraint.IsActive("Gun 2 Cable:2") = True
Constraint.IsActive("Gun 2 Cable:3") = True
Constraint.IsActive("Gun 2 Cable:4") = True
Constraint.IsActive("Gun 2 Cable:5") = True
Constraint.IsActive("Gun 2 Cable:6") = True
End If