IModelHandler Class

Beta

Handler for managing HubIModel instance. Use IModelHubClient.IModel to get an instance of this handler.

note Use IModelHubClient.IModels if multiple iModels per context are supported.

Methods

Name Description
create(requestContext: AuthorizedClientRequestContext, contextId: string, name: string, createOptions?: IModelCreateOptions): Promise<HubIModel> Create an iModel from given seed file.  
delete(requestContext: AuthorizedClientRequestContext, contextId: string): Promise<void> Delete an iModel from a context.  
download(requestContext: AuthorizedClientRequestContext, contextId: string, path: string, progressCallback?: (progress: ProgressInfo) => void): Promise<void> Method to download the seed file for iModel.  
get(requestContext: AuthorizedClientRequestContext, contextId: string): Promise<HubIModel> Get iModel that belong to the specified context.  
getInitializationState(requestContext: AuthorizedClientRequestContext, contextId: string): Promise<InitializationState> Get the InitializationState for the specified iModel.  
update(requestContext: AuthorizedClientRequestContext, contextId: string, imodel: HubIModel): Promise<HubIModel> Update iModel's name and/or description  

Defined in

Last Updated: 10 September, 2019