2027 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 Inherited From
M Dispose() None Releases all resources used by the DocumentDifference
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
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 GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
M GetModifiedElementIds() ISet<ElementId> Modified element id collection.
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
Name Return Type Description Inherited From
P AreDeletedElementIdsAvailable bool Whether or the deleted elements were retrieved.
P IsValidObject Boolean Specifies whether the .NET object represents a valid Revit entity.