Class RevitJsonStorage<T>
Onbox's Revit Storage, it uses json to store and retrieve data classes
Inheritance
System.Object
RevitJsonStorage<T>
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Onbox.Revit.V8.ExtensibleStorage
Assembly: Onbox.Revit.dll
Syntax
public class RevitJsonStorage<T> : IRevitJsonStorage<T> where T : class, new()
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Improve this Doc View SourceRevitJsonStorage(IJsonService, RevitExtensibleStorageSettings)
Constructor
Declaration
public RevitJsonStorage(IJsonService jsonService, RevitExtensibleStorageSettings storageSettings)
Parameters
Type | Name | Description |
---|---|---|
IJsonService | jsonService | |
RevitExtensibleStorageSettings | storageSettings |
Methods
| Improve this Doc View SourceLoad(Element)
Retrieves data from this element's extensible storage
Declaration
public T Load(Element element)
Parameters
Type | Name | Description |
---|---|---|
Autodesk.Revit.DB.Element | element |
Returns
Type | Description |
---|---|
T |
Reset(Element)
Resets the extensible storage of this type for this element. This REQUIRES a transaction
Declaration
public void Reset(Element element)
Parameters
Type | Name | Description |
---|---|---|
Autodesk.Revit.DB.Element | element |
Save(Element, T)
Saves this data to this element's extensible storage. This REQUIRES a transaction
Declaration
public void Save(Element element, T data)
Parameters
Type | Name | Description |
---|---|---|
Autodesk.Revit.DB.Element | element | |
T | data |