API Reference > imodeljs-backend > iModels > IModelDb > IModelDb.Views > setDefaultViewId setDefaultViewId Method Set the default view property the iModel setDefaultViewId(viewId: string): void Parameter Type Description viewId string The Id of the ViewDefinition to use as the default Returns - void Defined in core/backend/src/IModelDb.ts Line 2045 Last Updated: 11 June, 2024