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

Document.CombineElements

Method
Description:
Combine a set of combinable elements into a geometry combination.
Remarks:
If one or more existing geometry combinations are included as input, the return value may be one of those pre-existing combinations. The rest of the pre-existing geometry combinations will be consumed into the new combination; those handles are no longer valid.
Parameters
Parameter Type Description
members CombinableElementArray A list of combinable elements to be combined.
Return Value
Type Description
GeomCombination If successful, the newly created geometry combination is returned, otherwise an exception with error information will be thrown.
Exceptions
Exception Condition
ArgumentNullException Thrown when the input argument is.
ArgumentException Thrown when members contains less than two elements. Thrown when members containselements.
InvalidOperationException Thrown when creation of the combination failed.