Interface IModelProvider
Interface defining a provider of IModels that can be used to Create, Open and persist model data
Assembly: Xbim.Common.dll
Syntax
public interface IModelProvider
Properties
|
Improve this Doc
View Source
Capabilities
Describes the capabilities of the underlying model store(s)
Declaration
StoreCapabilities Capabilities { get; }
Property Value
|
Improve this Doc
View Source
EntityFactoryResolver
Declaration
Func<XbimSchemaVersion, IEntityFactory> EntityFactoryResolver { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Close(IModel)
Closes a model and releases any resources
Declaration
Parameters
Type |
Name |
Description |
IModel |
model |
|
|
Improve this Doc
View Source
Create(XbimSchemaVersion, String)
Creates a new empty persistent model with the provided path
Declaration
IModel Create(XbimSchemaVersion ifcVersion, string dbPath)
Parameters
Returns
|
Improve this Doc
View Source
Create(XbimSchemaVersion, XbimStoreType)
Creates a new empty model, backed by the requested type
Declaration
IModel Create(XbimSchemaVersion ifcVersion, XbimStoreType storageType)
Parameters
Returns
|
Improve this Doc
View Source
GetLocation(IModel)
Gets the location any persisted backing store for the Model
Declaration
string GetLocation(IModel model)
Parameters
Type |
Name |
Description |
IModel |
model |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetXbimSchemaVersion(String)
Declaration
XbimSchemaVersion GetXbimSchemaVersion(string modelPath)
Parameters
Type |
Name |
Description |
System.String |
modelPath |
|
Returns
|
Improve this Doc
View Source
Open(Stream, StorageType, XbimSchemaVersion, XbimModelType, XbimDBAccess, ReportProgressDelegate, Int32)
Opens a model from the provided System.IO.Stream
Declaration
IModel Open(Stream stream, StorageType dataType, XbimSchemaVersion schemaVersion, XbimModelType modelType, XbimDBAccess accessMode = XbimDBAccess.Read, ReportProgressDelegate progDelegate = null, int codePageOverride = -1)
Parameters
Returns
|
Improve this Doc
View Source
Open(String, XbimSchemaVersion, Nullable<Double>, ReportProgressDelegate, XbimDBAccess, Int32)
Opens a model from the given path
Declaration
IModel Open(string path, XbimSchemaVersion schemaVersion, double? ifcDatabaseSizeThreshHold = null, ReportProgressDelegate progDelegate = null, XbimDBAccess accessMode = XbimDBAccess.Read, int codePageOverride = -1)
Parameters
Returns
|
Improve this Doc
View Source
Persist(IModel, String, ReportProgressDelegate)
Saves the current model to a persistent store
Declaration
void Persist(IModel model, string fileName, ReportProgressDelegate progDelegate = null)
Parameters