Revit 2026 API
DocumentGet |
Returns list of failure messages generated from persistent (reviewable) warnings accumulated in the document.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public IList<FailureMessage> GetWarnings()
Public Function GetWarnings As IList(Of FailureMessage)
public: IList<FailureMessage^>^ GetWarnings()
member GetWarnings : unit -> IList<FailureMessage>
Return Value
IListFailureMessageList of failure messages representing warnings accumulated in the document.

Function returns list of failure messages identical to the list displayed in a warning dialog when command
Manage tab->Inquiry pane->Review Warnings is issued through the UI. Operations performed on the returned list by the caller
do not impact information about warnings stored in the document.
See Also