iLogic Rule Suppression

iLogic Rule Suppression

dano0310
Advocate Advocate
2,461 Views
1 Reply
Message 1 of 2

iLogic Rule Suppression

dano0310
Advocate
Advocate

Just wondering if there is anyway to suppress and unsuppress iLogic Rules from within either the VBA or iLogic itself?

Thanks in advance

Dan

0 Likes
Accepted solutions (1)
2,462 Views
1 Reply
Reply (1)
Message 2 of 2

MjDeck
Autodesk
Autodesk
Accepted solution

Yes, you can do it in iLogic with this rule statement:

 

iLogicVb.Automation.GetRule(ThisDoc.Document, "Rule0").IsActive = False

 

This function will also work from VBA.

 

Within iLogic, instead of suppressing the rule you could add a conditional statement to the top of the rule to prevent the rule from doing anything:

 

If (Rule0_ShouldBeSuppressed) Then Return

 

Here Rule0_ShouldBeSuppressed could be a True/False (Boolean) parameter.  Or you could substitute other logic here.


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes