BH.oM.Adapters.Revit.Elements.IInstance¶
A base interface for BHoM wrapper classes that can wrap Revit elements.
Interface structure¶
Implemented interfaces and base types¶
The IInstance is inheriting from the following base type(s) and implements the following interfaces:
- BH.oM.Base.IBHoMObject
- BH.oM.Base.IObject
Classes implementing this interface¶
The following classes are implementing this interface:
- BH.oM.Adapters.Revit.Elements.DraftingInstance
- BH.oM.Adapters.Revit.Elements.ModelInstance
Properties¶
Defining properties¶
The following properties are defined on the interface
Name | Type | Description | Quantity |
---|---|---|---|
Properties | InstanceProperties | Information about family type of the instance. | - |
Location | IGeometry | Location of the instance in space. | - |
Orientation | Basis | Orientation of the instance in 2 or 3 dimensional space (depending on dimensionality of the instance). Applicable only to point-based instances. | - |
Code and Schema¶
C# implementation¶
Assembly: Revit_oM.dll
The C# interface 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/Elements/IInstance.json"
}
The JSON Schema is available on github here: