This functionality is provided as a preview
of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the
Fusion API and Scripts forum.
Because this is a preview of future functionality, there is the possibility that it will change, which will possibly
break any existing programs that use this functionality. Because of that, you should never deliver any programs that use
any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.
Defined in namespace "adsk::fusion" and the header file is <Fusion/ConfigurationRules/ConfigurationRule.h>
Description
Gets and sets the body statements in order. Construct blocks via the create factories on the concrete statement classes (ConfigurationRuleSetBlock.create / ConfigurationRuleIfBlock.create / ConfigurationRuleCommentBlock.create) and assign the array.
Rules evaluate top-to-bottom within the body. Order matters when multiple blocks affect the same column.
To avoid cyclic evaluation problems, do not get and set the same column within one rule unless the set value is guaranteed to satisfy the get condition on the next pass (making the rule immediately inert). Watch for cycles across rules too: rule A writes column X, rule B reads X and writes Y, rule A reads Y — values can oscillate.