queryDefaultViewId Method

Deprecated  in 4.2. Create a ViewState to your own specifications.

Query the Id of the default ViewDefinition, if any, stored in this iModel's property table. The default view is typically chosen by the application (such as a connector) that created the iModel. There is no guarantee that this view will be suitable for the purposes of any other applications. Most applications should ignore the default view and instead create a ViewState that fits their own requirements using APIs like ViewCreator3d.

queryDefaultViewId(): Promise<string>

@returns the Id of the default view as defined in the iModel's property table, or an invalid ID if no default view is defined.

Returns - Promise

the Id of the default view as defined in the iModel's property table, or an invalid ID if no default view is defined.

Defined in

Last Updated: 03 May, 2024