Creates a transform that represents a reflection across the given plane.
Namespace:
Autodesk.Revit.DB
Assembly:
RevitAPI
(in RevitAPI.dll) Version: 17.0.0.0 (17.0.1090.0)
Since:
2014
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- plane
-
Type:
Autodesk.Revit.DB
Plane
The plane.
Return Value
The new transform.Examples
Copy
C#
private Transform Reflect(ReferencePlane refPlane)
{
Transform mirTrans = Transform.CreateReflection(refPlane.GetPlane());
return mirTrans;
}
Copy
VB.NET
Private Function Reflect(refPlane As ReferencePlane) As Transform
Dim mirTrans As Transform = Transform.CreateReflection(refPlane.GetPlane())
Return mirTrans
End Function
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions ArgumentNullException | A non-optional argument was NULL |