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