Click or drag to resize

GeometryDecoderToPlane Method

Converts the specified Autodesk.Revit.DB.Plane to an equivalent Rhino.Geometry.Plane.

Namespace:  RhinoInside.Revit.Convert.Geometry
Assembly:  RhinoInside.Revit (in RhinoInside.Revit.dll) Version: 1.7.8130
Syntax
public static Rhino.Geometry.Plane ToPlane(
	this Autodesk.Revit.DB.Plane plane
)

Parameters

plane
Type: Autodesk.Revit.DB.Plane
Revit point to convert.

Return Value

Type: Rhino.Geometry.Plane
Rhino plane that is equivalent to the provided Revit plane.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Autodesk.Revit.DB.Plane. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Examples
Using ToPlane(Plane) as extension method:
using DB = Autodesk.Revit.DB;
using RhinoInside.Revit.Convert.Geometry;

Plane rhinoPlane = revitPlane.ToPlane();
Using ToPlane(Plane) as static method:
using DB = Autodesk.Revit.DB;
using RhinoInside.Revit.Convert.Geometry;

Plane rhinoPlane = GeometryEncoder.ToPlane(revitPlane)
See Also