Click or drag to resize

GeometryDecoderToPoint Method

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

Namespace:  RhinoInside.Revit.Convert.Geometry
Assembly:  RhinoInside.Revit (in RhinoInside.Revit.dll) Version: 1.7.8130
Syntax
public static Rhino.Geometry.Point ToPoint(
	this Autodesk.Revit.DB.Point point
)

Parameters

point
Type: Autodesk.Revit.DB.Point
Revit point to convert.

Return Value

Type: Rhino.Geometry.Point
Rhino point that is equivalent to the provided Revit point.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Autodesk.Revit.DB.Point. 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 ToPoint(Point) as extension method:
using DB = Autodesk.Revit.DB;
using RhinoInside.Revit.Convert.Geometry;

Point rhinoPoint = revitPoint.ToPoint();
Using ToPoint(Point) as static method:
using DB = Autodesk.Revit.DB;
using RhinoInside.Revit.Convert.Geometry;

Point rhinoPoint = GeometryEncoder.ToPoint(revitPoint)
See Also