RVTDocs.com
Namespace: Autodesk.Revit.DB Class: Document

Document.AutoJoinElements

Method
Description:
Forces the elements in the Revit document to automatically join to their neighbors where appropriate.
Remarks:
Use this method to force elements in the document to automatically join to their neighbors. Note that when a transaction is committed there is an automatic call to automatically join elements.
Syntax
public void AutoJoinElements()
Exceptions
Exception Condition
AutoJoinFailedException Thrown when the operation fails.