Combine a set of combinable elements into a geometry combination.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public GeomCombination CombineElements( CombinableElementArray members )
Parameters
- members CombinableElementArray
- A list of combinable elements to be combined.
Return Value
GeomCombinationIf 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 null. |
| ArgumentException | Thrown when members contains less than two elements. Thrown when members contains null elements. |
| InvalidOperationException | Thrown when creation of the combination failed. |
