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