Skip to content

BH.oM.Adapters.Revit.Parameters.ParameterValueSource

Object pointing at a Revit parameter as the source of a value to extract.

Class structure

Implemented interfaces and base types

The ParameterValueSource 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
ParameterName string Name of the parameter to extract the value from. -
FromType Nullable<bool> If true, the value to be extracted from the underlying type, not the instance.
If set to null, first instance will be checked for the parameter with given name, and if not found then same will be done with its type.
-

Derived properties

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

Name Type Description Quantity Engine
IValueSourceLabel string Generates a human readable label for a value source based on provided value condition reporting config. - Verification_Engine

Code and Schema

C# implementation

C#
public class ParameterValueSource : BH.oM.Verification.Conditions.IValueSource, 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/ParameterValueSource.json"
}

The JSON Schema is available on github here: