Skip to content

BH.oM.Adapters.Revit.RevitParameterDifference

Represents a difference in terms of RevitParameters found between a Previous and Following version of an object.

Class structure

Implemented interfaces and base types

The RevitParameterDifference 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 The name of the Parameter that is different. -
Description string A human-friendly description associated with this difference. -
PastValue object The older value of this RevitParameter (associated with the past version of the object). -
FollowingValue object The newer value of this RevitParameter (associated with the following version of the object). -
UnitType string Unit type of the Revit parameter. -
FullName string Full Name of the object's property that owns the RevitParameter that was different. -
DifferenceType RevitParameterDifferenceType Whether the RevitParameter that is Different was Modified, Removed or Added with respect to the old version of the owner object. Useful for filtering. -

Code and Schema

C# implementation

C#
public class RevitParameterDifference : BH.oM.Diffing.IPropertyDifference, 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/RevitParameterDifference.json"
}

The JSON Schema is available on github here: