The Rhino Inside technology allows Rhino and Grasshopper to be embedded within other products.
This folder contains a sample project that demonstrates:
- Starting Rhino and Grasshopper as a Revit Addon.
- Call directly into the native Revit APIs from a Grasshopper or Rhino plugin.
- Grasshopper definitions can be opened and previewed in Rhino within the Revit process.
- Object can be natively created by Rhino or Grasshopper within Revit through the API.
Questions? Visit the discussion forum...
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Git client. (download)
- Visual Studio 2017 (download)
- Rhino WIP (download)
- Autodesk Revit 2017-2019 (download)
- Clone the repository. At the command prompt, enter the following command:
git clone --recursive https://github.com/mcneel/rhino.inside.git rhino.inside
- In Visual Studio: open rhino.inside\Autodesk\Revit\RhinoInside.Revit.sln.
- Set the Solution Configuration drop-down according the Revit version you have installed. This will properly link the correct Revit API libraries to the project.
- Navigate to Build > Build Solution to begin your build.
The project is configured to copy .addon file as well as output files to the folder "%APPDATA%\Autodesk\Revit\Addins\%RevitVer%\RhinoInside.Revit\" folder in order to make Revit load this addon next time it runs.
In order to uninstall it you can use Visual Studio Build > Clean Solution command or just navigate to the folder "%APPDATA%\Autodesk\Revit\Addins\%RevitVer%\ and remove the file RhinoInside.Revit.addon and the folder RhinoInside.Revit.
- Once you launch Revit it will warn you this addon is not verified, please click on "Load allways" or "Load once".
- Create a new project or open an existing one.
- Open the ribbon tab called Add-Ins.
- Click on the button you will found on the Rhinoceros panel called Sample 1.
- You should have an sphere in the Revil model.
- Rhino window will open on top of Revit window.
- Create some breps in Rhino. (It is best if they are building size objects to start.)
- Run Grasshopper command.
- Open "Sample2.ghx" file in Grasshopper.
- Inside Grasshopper using the Brep param pick the breps you created in step 2.
- Inside Grasshopper click on the button Push to Bake.
- You should have the breps created in step 2 in the Revit model.
- Rhino window will open on top of Revit window.
- Create a surface on Rhino. (It is best if it is site size objects to start.)
- Run Grasshopper command.
- Open "Sample3.ghx" file in Grasshopper.
- Inside Grasshopper using the Surface param pick the breps you created in step 2.
- Inside Grasshopper click on the button Update Topography surface.
- You should have a Topography surface in Revit.