Document.NewOpening(Wall, XYZ, XYZ)
Method
Description:
Creates a rectangular opening on a wall.
Creates a rectangular opening on a wall.
Remarks:
Slanted stacked walls do not support rectangular openings.
Slanted stacked walls do not support rectangular openings.
Parameters
| Parameter | Type | Description |
|---|---|---|
| wall | Wall | Host element of the opening. |
| pntStart | XYZ | One corner of the rectangle. |
| pntEnd | XYZ | The opposite corner of the rectangle. |
Return Value
| Type | Description |
|---|---|
| Opening | If successful, an Opening object is returned. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | Thrown if the wall does not exist in the given document, or if the wall doesn't support rectangular openings. |