This class is used in Autodesk Revit to represent a difference between the geometry of an assembly member and its original geometry. It is primarily used when changes are made to the original geometry of an assembly member and those changes need to be tracked for coordination purposes.
This class does not have any methods.
AssemblyMemberDifferentGeometry is typically used in coordination workflows where changes to a building model are being tracked and communicated between different teams. By using this class, teams can quickly identify where changes have occurred and how significant those changes are.
// Get the current assembly member element
var currentAssemblyMember = doc.GetElement(elementId) as AssemblyMember;
// Get the original geometry of the assembly member before any changes were made
var originalGeometry = currentAssemblyMember.GetOriginalGeometry();
// Make changes to the assembly member
// ...
// Get the modified geometry after changes have been made
var modifiedGeometry = currentAssemblyMember.GetModifiedGeometry();
// Create a new AssemblyMemberDifferentGeometry object
var difference = new AssemblyMemberDifferentGeometry(elementId, currentAssemblyMember.AssemblyMemberType, originalGeometry, modifiedGeometry);
// Add the difference to a list of differences
differences.Add(difference);