iLogic run rule

iLogic run rule

Anonymous
Not applicable
724 Views
2 Replies
Message 1 of 3

iLogic run rule

Anonymous
Not applicable

I have an assembly with multible parts which all have iLogic rules in them. I want to controle when the rules are executed in each part, thus I have set them as "Don't run automatically". These rules are iTriggered by the top assembly, if they are active.

 

Is there a possibility of how I can run multiple rules simultaneously?

 

The code below is an example of the controle rule that determines the rules to be run but it takes one rule at the time...

 

IfComponent.IsActive("5580 Heating element package 1")=TrueThen
iLogicVb.RunRule("5580 Heating element basket 1", "iTriggerRule")
EndIf

IfComponent.IsActive("5580 Heating element package 2")=TrueThen
iLogicVb.RunRule("5580 Heating element basket 2", "iTriggerRule")
EndIf

.

.

.

up to x

 

I have also tried with For - Next statements...

 

But the rules are run in the order that tey are written...

 

As the computer has a lot of memory in reserve; I want somehow all the iTriggerRules to be run at the same time as this would save a lot of time.

 

Any help would be appreciated.

 

Regards

Kari

 

0 Likes
725 Views
2 Replies
Replies (2)
Message 2 of 3

MegaJerk
Collaborator
Collaborator

I do not believe that it is possible to run iLogic rules more than one at a time. Seeing as when you think about how your initial code is being executed, it's going through line for line, and then running whatever it's on. 



If my solution worked or helped you out, please don't forget to hit the kudos button 🙂
iLogicCode Injector: goo.gl/uTT1IB

GitHub
0 Likes
Message 3 of 3

Anonymous
Not applicable

Thanks for your answer. I have thought about making the rules event driven but the down side is that I do not have fully control of the model.

0 Likes