RVTDocs.com
Namespace: Autodesk.Revit.DB Class: FailureMessage

FailureMessage.SetFailingElement

Method
Description:
Sets the element that has caused the failure.
Remarks:
In Revit error dialog this element will be highlighted to the user and can be deleted by user via extended error dialog.
Syntax
Parameters
Parameter Type Description
id ElementId The element that has caused the failure.
Return Value
Type Description
FailureMessage The FailureMessage.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
InvalidOperationException This FailureMessage is already posted to a document