Switch branches/tags
Nothing to show
Find file History
kike-garbo Merge pull request #7 from mcneel/autodesk/revit/wip
Try to create a unique Solid from each BREP if it's possible
Latest commit 4060039 Sep 15, 2018

README.md

Rhino Inside Revit

The Rhino Inside technology allows Rhino and Grasshopper to be embedded within other products.

This folder contains a sample project that demonstrates:

  1. Starting Rhino and Grasshopper as a Revit Addon.
  2. Call directly into the native Revit APIs from a Grasshopper or Rhino plugin.
  3. Grasshopper definitions can be opened and previewed in Rhino within the Revit process.
  4. Object can be natively created by Rhino or Grasshopper within Revit through the API.

Questions? Visit the discussion forum...

Getting started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Getting Source & Build

  1. Clone the repository. At the command prompt, enter the following command:
git clone --recursive https://github.com/mcneel/rhino.inside.git rhino.inside
  1. In Visual Studio: open rhino.inside\Autodesk\Revit\RhinoInside.Revit.sln.
  2. 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.
  3. Navigate to Build > Build Solution to begin your build.

Installing & Uninstalling

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.

Using the samples

  • 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.

Sample1

  1. Open the ribbon tab called Add-Ins.
  2. Click on the button you will found on the Rhinoceros panel called Sample 1.
  3. You should have an sphere in the Revil model.

Sample2

  1. Rhino window will open on top of Revit window.
  2. Create some breps in Rhino. (It is best if they are building size objects to start.)
  3. Run Grasshopper command.
  4. Open "Sample2.ghx" file in Grasshopper.
  5. Inside Grasshopper using the Brep param pick the breps you created in step 2.
  6. Inside Grasshopper click on the button Push to Bake.
  7. You should have the breps created in step 2 in the Revit model.

Sample3

  1. Rhino window will open on top of Revit window.
  2. Create a surface on Rhino. (It is best if it is site size objects to start.)
  3. Run Grasshopper command.
  4. Open "Sample3.ghx" file in Grasshopper.
  5. Inside Grasshopper using the Surface param pick the breps you created in step 2.
  6. Inside Grasshopper click on the button Update Topography surface.
  7. You should have a Topography surface in Revit.