API Reference > imodeljs-backend > iModels > IModelDb.Models > getSubModel getSubModel Method Get the sub-model of the specified Element. See IModelDb.Elements.queryElementIdByCode for more on how to find an element by Code. getSubModel<T extends Model>(modeledElementId: Id64String | GuidString | Code): T extends Model throws IModelError if the sub-model is not found or cannot be loaded. see IModelDb.Models.tryGetSubModel Parameter Type Description modeledElementId Id64String | GuidString | Code Identifies the modeled element. Returns - T extends Model Defined in core/backend/src/IModelDb.ts Line 1520 Last Updated: 13 June, 2024