Skip to content

Revit Adapter basics

Pawel Baran edited this page Sep 23, 2021 · 21 revisions

Introduction

Adapter is the heart of information 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 and to Revit, which is being triggered on the fly - it is highly recommended to read this section carefully in order to understand all aspects of this process.

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

Details

Code mechanics of the Revit_Adapter is explained in Adapter Details section.

Clone this wiki locally