FailureMessage.SetFailingElement
Method
Description:
Sets the element that has caused the failure.
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.
In Revit error dialog this element will be highlighted to the user and can be deleted by user via extended error dialog.
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 |