ConfigurationRulesManager.getStatusesByRuleId Method

Parent Object: ConfigurationRulesManager

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/ConfigurationRulesManager.h>

Description

Returns the statuses belonging to the specified rule, with error, warning and information counts scoped to that rule. This is the "is this rule healthy" query: a non-null result with a zero errorCount means the rule is active and was applied to every configuration.

Returns null when ruleId names no rule the rules engine is currently running. That covers an unknown or deleted id, and an inactive rule, since an inactive rule is excluded from the engine's rule set. Use itemById to tell those apart: it returns the rule when it exists, and ConfigurationRule.isActive then says whether it is inactive.

Like getStatuses, this is a point-in-time snapshot and does not trigger a rules run. Throws if ruleId is empty.

Syntax

"configurationRulesManager_var" is a variable referencing a ConfigurationRulesManager object.

returnValue = configurationRulesManager_var.getStatusesByRuleId(ruleId)
"configurationRulesManager_var" is a variable referencing a ConfigurationRulesManager object.

#include <Fusion/ConfigurationRules/ConfigurationRulesManager.h>

returnValue = configurationRulesManager_var->getStatusesByRuleId(ruleId);
"configurationRulesManager_var" is a variable referencing a ConfigurationRulesManager object.

returnValue = configurationRulesManager_var.getStatusesByRuleId(ruleId);

Return Value

Type Description
ConfigurationRuleStatusesResult A ConfigurationRuleStatusesResult holding the rule's statuses and their counts, or null when ruleId does not name a rule the engine is running. A non-null result with an empty statuses array is the success case.

Parameters

Name Type Description
ruleId string The id of the rule whose statuses to return. This is a ConfigurationRule.id value. Must not be empty.

Version

Introduced in version November 2026