ConfigurationRuleStatus Object Preview

Derived from: Base Object
Defined in namespace "adsk::fusion" and the header file is <Fusion/ConfigurationRules/ConfigurationRuleStatus.h>

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.

Description

One status reported by the configuration rules engine for a single rule on a single configuration. A rule that fails on four configurations produces four statuses. Statuses are produced when rules run; reading them never triggers a run.

Only problems are reported, and ConfigurationRuleStatusSeverities describes what each severity means for the configuration. A rule that applied cleanly to a configuration reports nothing for it, so the absence of statuses is the signal that all is well.

Methods

Name Description
classType

Static function that all classes support that returns the type of the class as a string. The returned string matches the string returned by the objectType property. For example if you have a reference to an object and you want to check if it's a SketchLine you can use myObject.objectType == fusion.SketchLine.classType().

Properties

Name Description
blockId The id of the block within the rule that raised this status. Matches ConfigurationRuleStatement.blockId or ConfigurationRuleCondition.blockId on a block in the rule's body, so the offending block can be located by walking the body returned by ConfigurationRulesManager.itemById.

Empty when the status is not attributable to a single block and describes the rule as a whole, which is normal rather than an error. Also empty for a rule whose blocks have no ids yet; see ConfigurationRuleStatement.blockId for when Fusion mints them.
code The code identifying the kind of status, for example "ERR_CONSTRAIN" (a rule could not constrain a value), "WARN_SNAP_CONSTRAIN" (a value was snapped to satisfy the rule) or "INFO_CONSTRAIN" (a value was constrained as intended). Use code to branch on a specific condition; use severity for general triage. Additional codes may be returned by future server versions; treat unknown codes as opaque strings.
configurationId The id of the configuration this status applies to. Matches ConfigurationRow.id on the design's top configuration table, so the configuration can be fetched with design.configurationTopTable.rows.itemById. Empty when the status is not scoped to a single configuration.
isValid Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference.
message The localized, human-readable description of this status, ready to display. This is the same text the Configuration Rules panel shows.
objectType This property is supported by all objects in the API and returns a string that contains the full name (namespace::objecttype) describing the type of the object.

It's often useful to use this in combination with the classType method to see if an object is a certain type. For example: if obj.objectType == adsk.core.Point3D.classType():
ruleId The id of the rule this status belongs to. Matches ConfigurationRule.id, so the rule itself can be fetched with ConfigurationRulesManager.itemById.
severity How serious this status is. Use this rather than inspecting code when all you need is to distinguish errors from warnings and information.

Accessed From

ConfigurationRuleStatusesResult.statuses

Version

Introduced in version November 2026