Runs the iLogic or external rule ruleName on the specified Part p and returns the value from the iLogic rule call.
iv_RuniLogicRule( p As Part, ruleName As String, Optional args As List = {}, Optional isExternal? As Boolean = False) As Integer
Argument | Type | Description |
---|---|---|
p | part | The part containing the ruleName |
ruleName | string | The name of the rule to run. An exception is thrown if the rule does not exist in the part. |
args | list | Optional; a list of lists containing additional arguments if required. List should be in the format {{"arg1", "val1"}, ...}. Default is {} |
isExternal? | boolean | Optional; if true , looks for ruleName as an external rule. Default is False |
Intent >iv_RuniLogicRule(Me, "Material Rule") --> 0
Intent >iv_RuniLogicRule(Me, "Paint Rule") --> 0