Document.NewOpening(Element, CurveArray, Boolean)
Method
Description:
Creates a new opening in a roof, floor and ceiling.
Creates a new opening in a roof, floor and ceiling.
Syntax
public Opening NewOpening(
Element hostElement,
CurveArray profile,
bool bPerpendicularFace
)
Parameters
| Parameter | Type | Description |
|---|---|---|
| hostElement | Element | Host element of the opening. Can be a roof, floor, or ceiling. |
| profile | CurveArray | Profile of the opening. |
| bPerpendicularFace | Boolean | True if the profile is cut perpendicular to the intersecting face of the host. False if the profile is cut vertically. |
Return Value
| Type | Description |
|---|---|
| Opening | If successful, an Opening object is returned. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | Thrown if the host element does not exist in the given document. |