2023 Class
Changes 3
C

DocumentDifference

Description:
DocumentDifference represents the difference (including added elements, modified elements and deleted elements) of a Revit model between different DocumentVersion of the model.
Remarks:
For workshared models, DocumentDifference may contain all the added elements, modified elements and deleted elements. For non-workshared models, deleted elements are not tracked, so this object may only contain added elements and modified elements.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.DocumentDifference
public class DocumentDifference : IDisposable
Name Return Type Description
M Dispose() None Releases all resources used by the
M GetCreatedElementIds() ISet<ElementId> Created element id collection.
M GetDeletedElementIds() ISet<ElementId> Deleted element id collection. For non-worksharing models, this will always be an empty collection.
M GetModifiedElementIds() ISet<ElementId> Modified element id collection.
Name Return Type Description
P AreDeletedElementIdsAvailable bool Whether or the deleted elements were retrieved.
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity.