Constructs a Plane object from a normal and an origin represented as XYZ objects. Follows the standard conventions for a planar surface.
The constructed Plane object will pass through origin and be perpendicular to normal. The X and Y axes of the plane will be defined arbitrarily.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public static Plane CreateByNormalAndOrigin( XYZ normal, XYZ origin )
Parameters
- normal XYZ
- Plane normal. Expected to be a valid non-zero length vector. Doesn't need to be a unit vector.
- origin XYZ
- Plane origin. Expected to lie within the Revit design limits IsWithinLengthLimits(XYZ).
Return Value
PlaneExceptions
Exception | Condition |
---|---|
ArgumentException | The input point lies outside of Revit design limits. |
ArgumentNullException | A non-optional argument was null |
ArgumentOutOfRangeException | normal has zero length. |