Click or drag to resize

GeometryEncoderToPlane Method

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

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

Parameters

plane
Type: Rhino.Geometry.Plane
Rhino plane to convert.

Return Value

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Rhino.Geometry.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;

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

DB.Plane revitPlane = GeometryEncoder.ToPlane(rhinoPlane);
See Also