-
Notifications
You must be signed in to change notification settings - Fork 14
Revit Adapter basics
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:
- Set up the Revit_Adapter in Revit
- Set up the Revit_Adapter in one or more of the UIs:
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.
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.
There is a range of settings that can be specified in RevitSettings
for each adapter instance. These are:
-
ConnectionSettings
- socket connection settings for Revit Adapter -
FamilyLoadSettings
- Revit family load settings for Revit Adapter -
MappingSettings
- relationships between property names of BHoM types and parameter names of correspondent Revit elements as well as relationships between Revit family names and BHoM types to explicitly convert them to on Pull -
DistanceTolerance
- used in geometry processing -
AngleTolerance
- used in geometry processing
If RevitSettings
are not set, default settings will be used (which should be perfectly fine in most cases).
Code mechanics of the Revit_Adapter is explained in Adapter Details section.
-
Overview:
What is Revit_Toolkit for?
Code structure
Building from source and debugging
License
Sample scripts -
Adapter:
Basics
Revit <-> BHoM conversion
BHoM vs Revit identity
Handling of Parameters
Conventions
Setup in Revit
Setup in Grasshopper
Setup in Dynamo
Setup in Excel
Details -
Pull:
Basics
Requests and filtering
Pull of Geometry and Representation
Pull from Links
Pull in Grasshopper
Pull in Dynamo
Pull in Excel
Examples
Explicit family vs type mapping
Details -
Push:
Basics
Push modes
Updating Revit types
FamilyLibrary
Push in Grasshopper
Push in Dynamo
Push in Excel
Examples
Details -
Remove:
Basics
Remove in Grasshopper
Remove in Dynamo
Remove in Excel
Examples
Details -
References:
BHoM Wiki
BHoM Adapter