Skip to content

BH.oM.Adapters.Revit.Parameters.RevitParameter

A BHoM wrapper class for a Revit parameter.

Class structure

Implemented interfaces and base types

The RevitParameter 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
Name string Name of the Revit parameter as seen in the UI. -
Value object Value of the Revit parameter. Enums are converted to strings, ElementIds to integers. -
UnitType string Unit type of the Revit parameter. -
IsReadOnly bool Whether the parameter is read only or modifiable by the Revit user. -

Derived properties

The following properties are defined as extension methods in one of the BHoM_Engines

Name Type Description Quantity Engine
HashString string Computes the Hash string for a Revit Parameter. This will then be used by the Hash algorithm to compute the overall Hash of an object owning Revit Parameters. - Revit_Engine

Code and Schema

C# implementation

C#
public class RevitParameter : 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/Parameters/RevitParameter.json"
}

The JSON Schema is available on github here: