RVTDocs.com
Namespace: Autodesk.Revit.DB

Plane

Class
Description:
A Planar surface.
Remarks:
The parametric equation of the plane is S(u, v) = origin + u*xVec + v*yVec.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.Surface
    Autodesk.Revit.DB.Plane
Syntax
public class Plane : Surface
Examples
public void GetPlaneInfo(Plane plane)
{
    XYZ origin = plane.Origin;
    XYZ normal = plane.Normal;
    XYZ xVec = plane.XVec;
    XYZ yVec = plane.YVec;

    StringBuilder info = new StringBuilder();
    info.AppendLine("Plane Data:");
    info.AppendLine(string.Format("     Origin: ({0},{1},{2})", origin.X, origin.Y, origin.Z));
    info.AppendLine(string.Format("     Normal: ({0},{1},{2})", normal.X, normal.Y, normal.Z));
    info.AppendLine(string.Format("     XVec: ({0},{1},{2})", xVec.X, xVec.Y, xVec.Z));
    info.AppendLine(string.Format("     YVec: ({0},{1},{2})", yVec.X, yVec.Y, yVec.Z));

    TaskDialog.Show("Revit",info.ToString());
}