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

Document.SeparateElements

Method
Description:
Separate a set of combinable elements out of combinations they currently belong to.
Remarks:
If geometry combination elements are passed as input, they will be completely separated and deleted. If generic forms that happen to belong to combination elements are passed, these forms will be removed from their geometry combination. The handles of geometry combinations completely removed by this operation are no longer valid.
Syntax
public void SeparateElements(
	CombinableElementArray members
)
Parameters
Parameter Type Description
members CombinableElementArray A list of combinable elements to be separated.
Return Value
Exceptions
Exception Condition
ArgumentNullException Thrown when the input argument is.
ArgumentException Thrown when members is empty. Thrown when members containselements.
InvalidOperationException Thrown when separation failed.