AddResolution Method


Failure Message Add Resolution Method

Adds a resolution for the failure.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public FailureMessage AddResolution(
	FailureResolutionType type,
	FailureResolution resolution
)

Parameters

type FailureResolutionType
The type of the resolution.
resolution FailureResolution
The resolution.

Return Value

FailureMessage
The FailureMessage.
Exceptions
Exception Condition
ArgumentException type is not a valid resolution type for this FailureMessage. -or- resolution of type is not valid for this FailureMessage. -or- This FailureMessage already contains a resolution of type type.
ArgumentNullException A non-optional argument was null
ArgumentOutOfRangeException A value passed for an enumeration argument is not a member of that enumeration
InvalidOperationException This FailureMessage is already posted to a document
Remarks
Each pair of FailureResolutionType and FailureResolution must have been defined in FailureDefinition, and could only be added once.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →