Plane
Description:
A Planar surface.
A Planar surface.
Remarks:
The parametric equation of the plane is S(u, v) = origin + u*xVec + v*yVec.
The parametric equation of the plane is S(u, v) = origin + u*xVec + v*yVec.
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());
}
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Create(Frame) | Plane | Creates a Plane object defined by a local frame of reference. | |
| CreateByNormalAndOrigin(XYZ, XYZ) | Plane | 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. | |
| CreateByOriginAndBasis(XYZ, XYZ, XYZ) | Plane | Creates a Plane object defined by the two orthogonal unit vectors and passing through the origin point supplied as arguments. | |
| CreateByThreePoints(XYZ, XYZ, XYZ) | Plane | Creates a Plane object passing through three points supplied as arguments. | |
| Dispose() | None | (Inherited from Surface ) | Surface |
| Equals | None | Determines whether the specified object is equal to the current object. (Inherited from Object ) | Object |
| GetBoundingBoxUV() | BoundingBoxUV | Gets the UV bounding box of the surface. (Inherited from Surface ) | Surface |
| GetHashCode | None | Serves as the default hash function. (Inherited from Object ) | Object |
| GetType | None | Gets the Type of the current instance. (Inherited from Object ) | Object |
| IsCoincidentWith(Surface) | Boolean | Determine if two surfaces are coincident (ignoring Envelopes). For an affirmative answer, the surfaces must have the same type (e.g., two planes). (Inherited from Surface ) | Surface |
| Project(XYZ, UV%, Double%) | None | Project a 3D point orthogonally onto a surface (to find the nearest point). Throws InvalidOperationException if the projection fails. (Inherited from Surface ) | Surface |
| ProjectWithGuessPoint(XYZ, UV, UV%, Double%) | None | Project a 3D point orthogonally onto a surface (to find the nearest point). This method is meant to be used when a good approximate solution for the projection is available. Throws InvalidOperationException if the projection fails. (Inherited from Surface ) | Surface |
| ToString | None | Returns a string that represents the current object. (Inherited from Object ) | Object |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| IsValidObject | Boolean | Specifies whether the .NET object represents a valid Revit entity. (Inherited from Surface ) | Surface |
| Normal | XYZ | Plane normal. | |
| OrientationMatchesParametricOrientation | bool | Indicates whether this Surface's orientation is the same as or opposite to its parametric orientation. (Inherited from Surface ) | Surface |
| Origin | XYZ | Plane origin. | |
| XVec | XYZ | Axis defining the first parametric direction of the plane. | |
| YVec | XYZ | Axis defining the second parametric direction of the plane. |