Click or drag to resize

GeometryEncoderToXYZ Method (Vector3f)

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

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

Parameters

vector
Type: Rhino.Geometry.Vector3f
Rhino vector to convert.

Return Value

Type: Autodesk.Revit.DB.XYZ
Revit vector that is equivalent to the provided Rhino vector.

Usage Note

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

DB.XYZ revitXYZPoint = rhinoVector3f.ToXYZ();
Using ToXYZ(Vector3f) as static method:
using DB = Autodesk.Revit.DB;
using RhinoInside.Revit.Convert.Geometry;

DB.XYZ revitXYZVector = GeometryEncoder.ToXYZ(rhinoVector3f);
See Also