Skip to content

FailureDefinition

Public Class

Defines persistent information about a failure.

Inheritance Hierarchy

System.Object
Autodesk.Revit.DB.FailureDefinition

Namespace: Autodesk.Revit.DB

Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public class FailureDefinition : IDisposable

The FailureDefinition type exposes the following members.

Properties

Name

Description


Public Property
IsValidObject

Specifies whether the .NET object represents a valid Revit entity.


Public Property

The severity of the failure.


Methods

Name

Description


Public Method
AddResolutionType

Adds a type of possible resolution for the failure.


Public Method
Static Member
Code Example
CreateFailureDefinition

Creates an instance of a FailureDefinition.


Public Method

Releases all resources used by the FailureDefinition


Public Method

Equals

Determines whether the specified object is equal to the current object.
(Inherited from Object)


Public Method

Retrieves a list of resolution types applicable to the failure.


Public Method

Retrieves the default resolution type for the failure.


Public Method
GetDescriptionText

Retrieves the description text of the failure.


Public Method

GetHashCode

Serves as the default hash function.
(Inherited from Object)


Public Method

Retrieves the caption for a specific resolution type.


Public Method

GetType

Gets the Type of the current instance.
(Inherited from Object)


Public Method

Checks if the FailureDefinition has at least one resolution.


Public Method

Checks if the given resolution type is applicable to the failure.


Public Method
SetDefaultResolutionType

Sets the default resolution type for the failure.


Public Method

ToString

Returns a string that represents the current object.
(Inherited from Object)


Remarks

Each failure that can be potentially posted in Revit must be based on a FailureDefinition object that contains some persistent information about failure such as identity, severity, basic description text, types of resolution and default resolution. Each FailureMessage, which contains variable part of the information for a specific failure when it occurs, is created with a reference to a registered FailureDefinition. In order to be able to post a failure, one must define and register it via FailureDefinition object during Revit Application startup.