-
Notifications
You must be signed in to change notification settings - Fork 14
Conventions
Revit_Toolkit follows the BHoM unit conventions. All Revit units are being converted to BHoM SI units with BH.Revit.Engine.Core.Convert.FromSI
and BH.Revit.Engine.Core.Convert.ToSI
methods. Please note that in order to account for the breaking changes in unit handling in Revit API, it is recommended to use the following to work with Revit units in BHoM to avoid applying preprocessor directives:
Action | Revit 2020 and below | Revit 2021 and above |
---|---|---|
Get unit type of parameter Definition | BH.Revit.Engine.Core.Query.GetSpecTypeId |
Autodesk.Revit.DB.Definition.GetSpecTypeId |
Get display unit type of Parameter | BH.Revit.Engine.Core.Query.GetUnitTypeId |
Autodesk.Revit.DB.Parameter.GetUnitTypeId |
Get unit type by name | BH.Revit.Engine.Core.SpecTypeId |
Autodesk.Revit.DB.SpecTypeId |
Get display unit type by name | BH.Revit.Engine.Core.UnitTypeId |
Autodesk.Revit.DB.UnitTypeId |
-
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