Revit 2025.3 API
Failure |
Sets the default resolution type for the failure.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public void SetDefaultResolutionType( FailureResolutionType type )
Public Sub SetDefaultResolutionType ( type As FailureResolutionType )
public: void SetDefaultResolutionType( FailureResolutionType type )
member SetDefaultResolutionType : type : FailureResolutionType -> unit
Parameters
- type FailureResolutionType
- The type of resolution to be used as default.

Exception | Condition |
---|---|
ArgumentException | Resolution of the type is not applicable to the failure. |
ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |
InvalidOperationException | The FailureDefinitionAccessor has not been properly initialized. -or- FailureDefinition does not have any resolutions. |

If failure has multiple resolutions, one of them is designated as designated as the default resolution. The default resolution
is used by Revit failure processing mechanism to resolve failures automatically when applicable.
See Also