Skip to content

BH.oM.Adapters.Revit.Settings.MappingSettings

An entity holding information about the enforced convert relationships between Revit families and BHoM types on Pull as well as mapping between Revit parameters and BHoM object properties on Push/Pull.

Class structure

Implemented interfaces and base types

The MappingSettings is inheriting from the following base type(s) and implements the following interfaces:

Properties

Defining properties

The following properties are defined on the class

Name Type Description Quantity
ParameterMaps List<ParameterMap> A collection of entities defining relationships between property names of BHoM types (or RevitParameters attached to objects of these types) and parameter names of correspondent Revit elements. -
FamilyMaps List<FamilyMap> A collection of entities defining relationships between Revit families and BHoM types, to which these families are meant to be converted on Pull. -
TagsParameter string Name of the Revit parameter to be used as a source (on Pull) and target (on Push) of information for BHoM tags. -
MaterialGradeParameter string Name of the Revit parameter to be used as a source of information about material grade of a Revit element. -

Inherited properties

The following properties are inherited from the base class of the object

Name Type Description Quantity
BHoM_Guid Guid - -
Name string - -
Fragments FragmentSet - -
Tags HashSet<string> - -
CustomData Dictionary<string, object> - -

Code and Schema

C# implementation

C#
public class MappingSettings : BH.oM.Base.BHoMObject, BH.oM.Base.IBHoMObject, BH.oM.Base.IObject

Assembly: Revit_oM.dll

The C# class definition is available on github:

All history and changes of the class can be found by inspection the history.

JSON Schema implementation

The object is defined as a JSON schema. You can validate a JSON instance against this schema by reference. To do this, use the schema reference below in a validator like this one.

JSON Schema
{
 "$ref" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/Revit_oM/Settings/MappingSettings.json"
}

The JSON Schema is available on github here: