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

FailureMessage.SetFailingElements

Method
Description:
Sets elements that have caused the failure.
Remarks:
In the Revit error dialog these elements will be highlighted to the user and can be deleted by user via extended error dialog.
Syntax
Parameters
Parameter Type Description
idsToShow ICollection The elements that have 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