FailureMessage
Description:
Represents a message describing a failure of an operation in Revit.
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:
Failure messages are typically shown to the user in the Revit error dialog. This class contains the following information about the failures:
- The basic description of the failure (retrieved from the FailureDefinition)
- The available resolutions for the failure.
- The elements related to the failure.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.FailureMessage
System.Object
Autodesk.Revit.DB.FailureMessage
public class FailureMessage : IDisposable
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| FailureMessage(FailureDefinitionId) | None | Creates a new FailureMessage related to a given FailureDefinition. |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| AddResolution(FailureResolutionType, FailureResolution) | FailureMessage | Adds a resolution for the failure. | |
| Dispose() | None | Releases all resources used by the FailureMessage | |
| Equals | None | Determines whether the specified object is equal to the current object. (Inherited from Object ) | Object |
| GetAdditionalElements() | ICollection<ElementId> | Retrieves list of the additional reference elements for the failure. | |
| GetDefaultResolutionCaption() | String | Retrieves the caption of the default resolution of the failure. | |
| GetDescriptionText() | String | Retrieves the description text of the failure. | |
| GetFailingElements() | ICollection<ElementId> | Retrieves list of the elements that have caused the failure. | |
| GetFailureDefinitionId() | FailureDefinitionId | Retrieves the id of the failure definition for the failure. | |
| GetHashCode | None | Serves as the default hash function. (Inherited from Object ) | Object |
| GetSeverity() | FailureSeverity | Retrieves the severity of the failure. | |
| GetType | None | Gets the Type of the current instance. (Inherited from Object ) | Object |
| HasResolutionOfType(FailureResolutionType) | Boolean | Checks if failure has a resolution of a given type. | |
| HasResolutions() | Boolean | Checks if the failure has any resolutions. | |
| SetAdditionalElement(ElementId) | FailureMessage | Sets the additional reference element for the failure. | |
| SetAdditionalElements(ICollection<ElementId>) | FailureMessage | ||
| SetFailingElement(ElementId) | FailureMessage | Sets the element that has caused the failure. | |
| SetFailingElements(ICollection<ElementId>) | FailureMessage | ||
| ToString | None | Returns a string that represents the current object. (Inherited from Object ) | Object |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| IsValidObject | Boolean | Specifies whether the .NET object represents a valid Revit entity. |