Click or drag to resize

GeometryDecoderToBoundingBox Method (BoundingBoxXYZ)

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

Namespace:  RhinoInside.Revit.Convert.Geometry
Assembly:  RhinoInside.Revit (in RhinoInside.Revit.dll) Version: 1.7.8130
Syntax
public static Rhino.Geometry.BoundingBox ToBoundingBox(
	this Autodesk.Revit.DB.BoundingBoxXYZ boundingBox
)

Parameters

boundingBox
Type: Autodesk.Revit.DB.BoundingBoxXYZ
Revit boundingBox to convert.

Return Value

Type: Rhino.Geometry.BoundingBox
Rhino boundingBox that is equivalent to the provided Revit boundingBox.

Usage Note

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

BoundingBox rhinoBBox = revitBBox.ToBoundingBox();
Using ToBoundingBox(BoundingBoxXYZ) as static method:
using DB = Autodesk.Revit.DB;
using RhinoInside.Revit.Convert.Geometry;

BoundingBox rhinoBBox = GeometryEncoder.ToBoundingBox(revitBBox)
See Also