Click or drag to resize

GeometryDecoderToVector3d Method

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

Namespace:  RhinoInside.Revit.Convert.Geometry
Assembly:  RhinoInside.Revit (in RhinoInside.Revit.dll) Version: 1.7.8130
Syntax
public static Rhino.Geometry.Vector3d ToVector3d(
	this Autodesk.Revit.DB.XYZ vector
)

Parameters

vector
Type: Autodesk.Revit.DB.XYZ
Revit vector to convert.

Return Value

Type: Rhino.Geometry.Vector3d
Rhino vector 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.XYZ. 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 ToVector3d(XYZ) as extension method:
using DB = Autodesk.Revit.DB;
using RhinoInside.Revit.Convert.Geometry;

Vector3d rhinoVector3d = revitPoint.ToVector3d();
Using ToVector3d(XYZ) as static method:
using DB = Autodesk.Revit.DB;
using RhinoInside.Revit.Convert.Geometry;

Vector3d rhinoVector3d = GeometryEncoder.ToVector3d(revitVector)
See Also