Using Revit static class you can gain access to the running instance of Revit database and ui, and the open Revit documents.
In Python:
In C#:
Accessing Rhino Context
Using Rhinoceros static class you can gain access to the running instance of Rhino and the open Rhino document.
Unit Conversion
Geometry Conversion
Revit Geometry to Rhino
Use static To* methods on GeometryDecoder to convert (decode) geometry and other relative types from Revit to Rhino. Let’s take a look at how ToBoundingBox can be used to convert a Revit bounding box to equivalent in Rhino.
Snippets below show how to use the converter method as an extension method in Python and C#:
Snippets below show how to use the converter method as an static method in Python and C#:
Rhino Geometry to Revit
Use static To* methods on GeometryEncoder to convert (encode) geometry and other relative types from Rhino to Revit. Let’s take a look at how ToBoundingBoxXYZ can be used to convert a Rhino bounding box to equivalent in Revit:
Snippets below show how to use the converter method as an extension method in Python and C#:
Snippets below show how to use the converter method as an static method in Python and C#: