Message 1 of 6
Running iLogic rules in order

Not applicable
07-02-2019
02:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm just wondering exactly how rules run in iLogic. I am using the following code:
ThisAssembly.BeginManage("Support") If Support_Type = "A" Components.Add("Beam", "Support A.ipt") Components.Add("Back Plate", "Back Plate.ipt") iLogicVb.RunRule("Support A") ElseIf Support_Type = "B" Components.Add("Beam", "Support B.ipt") Components.Add("Flange", "Flange.ipt") Components.Add("Channel", "Channel.ipt") iLogicVb.RunRule("Support B") Patterns.AddRectangular("Flange Pattern", "Flange", Flange_N + 1 ul, Flange_ActP, "Flange", "Pattern Edge") End If ThisAssembly.EndManage("Support")
The "Support B" rule outputs the inputs for the rectangular pattern "Flange Pattern", but I always have to run the rule twice for it to update correctly. How do I write my code so the pattern is not made until the "Support B" rule has finished running and the parameters have been updated?