Revit 2026 API
DocumentRegenerate Method |
Updates the elements in the Revit document to reflect all changes.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax

Exception | Condition |
---|---|
RegenerationFailedException |
Thrown when the operation fails.
|
InvalidOperationException | Modification of the document is forbidden. Typically, this is because there is no open transaction; consult documentation for Document.IsModified for other possible causes. |

Use this method to force update to the document after a group of changes. Note that when a transaction is committed
there is an automatic call to regenerate the document.
See Also