ConfigurationRule.body Property

Parent Object: ConfigurationRule

PreviewThis 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.

Syntax

"configurationRule_var" is a variable referencing a ConfigurationRule object.
# Get the value of the property.
propertyValue = configurationRule_var.body

# Set the value of the property.
configurationRule_var.body = propertyValue
"configurationRule_var" Is a variable referencing a ConfigurationRule Object.
#include <Fusion/ConfigurationRules/ConfigurationRule.h>

// Get the value of the property.
std::vector<Ptr<ConfigurationRuleStatement>> propertyValue = configurationRule_var->body();

// Set the value of the property, where value_var is a ConfigurationRuleStatement.
bool returnValue = configurationRule_var->body(value_var);
"configurationRule_var" Is a variable referencing a ConfigurationRule Object.
// Get the value of the property.
propertyValue = configurationRule_var.body;

// Set the value of the property.
configurationRule_var.body = propertyValue;

Property Value

This is a read/write property whose value is an array of type ConfigurationRuleStatement.

Version

Introduced in version October 2026