Skip to content

Introduction to the Revit Adapter

The Revit Adapter is the heart of the data exchange process between BHoM and Revit. No interaction can happen without it, therefore activating it should be the first step to take when working with Revit_Toolkit. In order to activate, you need to:

Both ends of the Adapter communicate with each other based on Sockets - it is important to set same socket ports on both ends (otherwise they will not see each other). There should be only one Revit instance open per each port couple, therefore, if one wants to work with more than one instance of Revit at the same time, it is recommended to change ports. In case of only one Revit instance running, default ports (14128, 14129) are suggested.

Adapter actions

Once the Adapter is successfully set up, adapter actions can be performed:

Push and Pull include conversion from Revit and to Revit, which is being triggered on the fly.

Settings

There is a range of settings that can be specified in RevitSettings for each adapter instance. These are:

If RevitSettings are not set, default settings will be used (which should be perfectly fine in most cases).