Creates a rectangular opening on a wall. 
Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Syntax
| C# | 
|---|
 | 
| Visual Basic | 
|---|
 | 
| Visual C++ | 
|---|
 | 
Parameters
- wall
 - Type: Autodesk.Revit.DBWall
Host element of the opening. 
- pntStart
 - Type: Autodesk.Revit.DBXYZ
One corner of the rectangle. 
- pntEnd
 - Type: Autodesk.Revit.DBXYZ
The opposite corner of the rectangle. 
Return Value
If successful, an Opening object is returned.Remarks
Slanted stacked walls do not support rectangular openings.
Exceptions
| Exception | Condition | 
|---|---|
| Autodesk.Revit.ExceptionsArgumentException | Thrown if the wall does not exist in the given document, or if the wall doesn't support rectangular openings. |