Creates a new geometric plane object based on a normal vector and an origin.
Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 16.0.0.0 (16.0.0.0)
Syntax
| Visual Basic |
|---|
Public Function NewPlane ( _
norm As XYZ, _
origin As XYZ _
) As Plane |
| Visual C++ |
|---|
public:
Plane^ NewPlane(
XYZ^ norm,
XYZ^ origin
) |
Return Value
A new plane object.
Examples
CopyC#
XYZ normal = XYZ.BasisZ;
XYZ origin = XYZ.Zero;
Plane geomPlane = application.Create.NewPlane(normal, origin);
CopyVB.NET
Dim normal As XYZ = XYZ.BasisZ
Dim origin As XYZ = XYZ.Zero
Dim geomPlane As Plane = application.Create.NewPlane(normal, origin)
See Also