ConfigurationRuleIfBlock.blockId Property

Parent Object: ConfigurationRuleIfBlock

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.

Derived from: ConfigurationRuleStatement.blockId


Defined in namespace "adsk::fusion" and the header file is <Fusion/ConfigurationRules/ConfigurationRuleIfBlock.h>

Description

Gets and sets the stable id that identifies this block within its rule.

Empty on a block that has not been submitted yet, or one whose id the caller did not care to set — Fusion mints one on submit and reports it back on the next read. A non-empty blockId is honoured on submit wherever it does not collide with a block that already exists; on a collision Fusion mints a fresh id instead and the rule still applies, so read the id back rather than assuming the one you supplied.

Setting this is what lets a getRules / edit / modifyRules round-trip keep the same ids on the blocks it did not change, which in turn is what makes a rule status resolvable back to the block that raised it.

Syntax

"configurationRuleIfBlock_var" is a variable referencing a ConfigurationRuleIfBlock object.
# Get the value of the property.
propertyValue = configurationRuleIfBlock_var.blockId

# Set the value of the property.
configurationRuleIfBlock_var.blockId = propertyValue
"configurationRuleIfBlock_var" Is a variable referencing a ConfigurationRuleIfBlock Object.
#include <Fusion/ConfigurationRules/ConfigurationRuleIfBlock.h>

// Get the value of the property.
string propertyValue = configurationRuleIfBlock_var->blockId();

// Set the value of the property, where value_var is a string.
bool returnValue = configurationRuleIfBlock_var->blockId(value_var);
"configurationRuleIfBlock_var" Is a variable referencing a ConfigurationRuleIfBlock Object.
// Get the value of the property.
propertyValue = configurationRuleIfBlock_var.blockId;

// Set the value of the property.
configurationRuleIfBlock_var.blockId = propertyValue;

Property Value

This is a read/write property whose value is a string.

Version

Introduced in version November 2026