IModelConnection.Models Class

The collection of loaded ModelState objects for an IModelConnection.

Implements

Methods

Name Description
[iterator](): Iterator<ModelState, any, undefined> An iterator over all currently-loaded models.  
filterLoaded(modelIds: Id64Arg): undefined | Id64Set Given a set of modelIds, return the subset of corresponding models that are not currently loaded.  
getLoaded(id: string): undefined | ModelState Find a ModelState in the set of loaded Models by ModelId.  
getProps(modelIds: Id64Arg): Promise<ModelProps[]> Get a batch of ModelProps given a list of Model ids.  
load(modelIds: Id64Arg): Promise<void> load a set of Models by Ids.  
query(queryParams: ModelQueryParams): AsyncIterableIterator<ModelProps> Asynchronously stream ModelProps using the specified ModelQueryParams.  
queryExtents(modelIds: string | string[]): Promise<ModelExtentsProps[]> For each GeometricModel specified by Id, attempts to obtain the union of the volumes of all geometric elements within that model.  
queryModelRanges(modelIds: Id64Arg): Promise<Range3dProps[]> Query for a set of model ranges by ModelIds.  
queryProps(queryParams: ModelQueryParams): Promise<ModelProps[]> Query for a set of ModelProps of the specified ModelQueryParams.  
updateLoadedWithModelProps(modelProps: ModelProps[]): Promise<void> Given an array of modelProps, find the class for each model and construct it.  

Properties

Name Type Description
repositoryModelId Accessor ReadOnly string The Id of the RepositoryModel.  

Defined in

Last Updated: 25 April, 2024