SeparateElements Method

Separate a set of combinable elements out of combinations they currently belong to.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)


public void SeparateElements(
	CombinableElementArray members
Visual Basic
Public Sub SeparateElements ( _
	members As CombinableElementArray _
Visual C++
void SeparateElements(
	CombinableElementArray^ members


Type: Autodesk.Revit.DB CombinableElementArray
A list of combinable elements to be separated.


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.


Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException Thrown when the input argument is a null reference ( Nothing in Visual Basic) .
Autodesk.Revit.Exceptions ArgumentException Thrown when members is empty. Thrown when members contains a null reference ( Nothing in Visual Basic) elements.
Autodesk.Revit.Exceptions InvalidOperationException Thrown when separation failed.

See Also