## Creating Rhino.Inside.Revit Plugins

To access Rhino and Grasshopper APIs, reference latest RhinoCommon and Grasshopper NuGet packages in your project.

Currently Rhino.Inside.Revit does not have a NuGet package that you can reference in your plugin project. However, if you have Rhino.Inside.Revit installed, you can directly reference the RhinoInside.Revit.dll file under: - %PROGRAMDATA%\Autodesk\Revit\Addins\20XX\RhinoInside.Revit\, or - %APPDATA%\Autodesk\Revit\Addins\20XX\RhinoInside.Revit\

This will give you access to the types defined in this library.

## Accessing Revit Context

To use Revit API, you would need access to the Revit context. Once you have added the RhinoInside.Revit.dll reference to your plugin project, you can use the RhinoInside.Revit.Revit static type to get access to Revit context and documents:

## Install Locations

Once your Grasshopper plugin project is compiled into a .gha, you should install it in a way that only load within Rhino.Inside.Revit environment. This is necessary for plugins that required access to the Revit API as these plugins will fail loading on a stand-alone Rhino.

To install Grasshopper plugins for Rhino.Inside.Revit, place the .gha files under paths shown here. 20XX is the version of Revit that you would want your Grasshopper plugin to load:

• All Users: %PROGRAMDATA%\Grasshopper\Libraries-Inside-Revit-20XX
• Current User: %APPDATA%\Grasshopper\Libraries-Inside-Revit-20XX

Any .gha or .ghlink file that is stored there is loaded in the correct Revit version when Rhino.Inside.Revit is loaded.