Creates a new shaft opening between a set of levels.
Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public Opening NewOpening( Level bottomLevel, Level topLevel, CurveArray profile )
Parameters
- bottomLevel Level
- bottom level
- topLevel Level
- top level
- profile CurveArray
- profile of the opening.
Return Value
OpeningIf successful, an Opening object is returned.
Exceptions
Exception | Condition |
---|---|
ArgumentException | Thrown if the bottom level does not exist in the given document. |
ArgumentException | Thrown if the top level does not exist in the given document. |