setDefaultViewId Method
Deprecated in 4.2.0 - might be removed in next major version. Avoid setting this property - it is not practical for one single view to serve the needs of the many applications
that might wish to view the contents of the iModel.
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
- backend/src/IModelDb.ts Line 3474
Last Updated: 03 August, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.