2020 Class
Changes 0
C

FailureMessage

Description:
Represents a message describing a failure of an operation in Revit.
Remarks:
Failure messages are typically shown to the user in the Revit error dialog. This class contains the following information about the failures:
  1. The basic description of the failure (retrieved from the FailureDefinition)
  2. The available resolutions for the failure.
  3. The elements related to the failure.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.FailureMessage
public class FailureMessage : IDisposable
Name Return Type Description
C FailureMessage(FailureDefinitionId) None Creates a new FailureMessage related to a given FailureDefinition.
Name Return Type Description
M AddResolution(FailureResolutionType, FailureResolution) The FailureMessage. Adds a resolution for the failure.
M Dispose() None Releases all resources used by the
M GetAdditionalElements() The additional elements. Retrieves list of the additional reference elements for the failure.
M GetDefaultResolutionCaption() string Retrieves the caption of the default resolution of the failure.
M GetDescriptionText() The description text. Retrieves the description text of the failure.
M GetFailingElements() ICollection<ElementId> Retrieves list of the elements that have caused the failure.
M GetFailureDefinitionId() FailureDefinitionId Retrieves the id of the failure definition for the failure.
M GetSeverity() FailureSeverity Retrieves the severity of the failure.
M HasResolutionOfType(FailureResolutionType) bool Checks if failure has a resolution of a given type.
M HasResolutions() bool Checks if the failure has any resolutions.
M SetAdditionalElement(ElementId) The FailureMessage. Sets the additional reference element for the failure.
M SetAdditionalElements(ICollection<ElementId>) The FailureMessage. Sets the additional reference elements for the failure.
M SetFailingElement(ElementId) The FailureMessage. Sets the element that has caused the failure.
M SetFailingElements(ICollection<ElementId>) The FailureMessage. Sets elements that have caused the failure.
Name Return Type Description
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity.