SpatialIModelDisplayReferences Interface @beta
The collection of iModels displayed by a SpatialViewState and interactable with via a Viewport. A spatial view always has exactly one "primary" iModel reference, which cannot be changed. Any number of additional iModel references can be freely linked to and unlinked from the view. The primary iModel determines the coordinate system for the view; the contents of all linked iModels are transformed into the primary iModel's coordinate space. By default, Tools only interact with the primary iModel, but they can opt in to receiving HitDetails from linked iModels using allowExternalIModels.
Extends
Methods
| Name | Description | |
|---|---|---|
| link(args: LinkSpatialIModelArgs): SpatialIModelDisplayReference | Add an iModel reference to the view. | |
| unlink(ref: IModelDisplayReference): void | Remove a previously-linked iModel reference from the view. |
Properties
| Name | Type | Description | |
|---|---|---|---|
| is2d Readonly | undefined | undefined | Allows apps to discriminate between spatial and 2d IModelDisplayReferences. | |
| isSpatial Readonly | "true" | Allows apps to discriminate between spatial and 2d IModelDisplayReferences. | |
| linked Readonly | Iterable<SpatialIModelDisplayReference> | The set of additional iModels that have been added to the view. | |
| onLinked Readonly | BeEvent<(ref: SpatialIModelDisplayReference) => void> | Event dispatched just after ref is linked to the view. |
|
| onUnlinked Readonly | BeEvent<(ref: SpatialIModelDisplayReference) => void> | Event dispatched just after ref is unlinked from the view. |
|
| primary Readonly | SpatialIModelDisplayReference | The reference to the primary iModel displayed in the view. |
Inherited properties
| Name | Type | Inherited from | Description |
|---|---|---|---|
| defaultFeatureAppearance Inherited | FeatureAppearance | BaseIModelDisplayReferences | The default feature appearance inherited by references without their own override. |
| iModels Readonly Inherited | Iterable<IModelConnection> | BaseIModelDisplayReferences | The set of iModels displayed by this view (only one, in its present implementation). |
| onDefaultFeatureAppearanceChanged Readonly Inherited | BeEvent<() => void> | BaseIModelDisplayReferences | Event dispatched just after assignment to defaultFeatureAppearance. |
| onTimePointChanged Readonly Inherited | BeEvent<() => void> | BaseIModelDisplayReferences | Event raised when the value of timePoint changes. |
| timePoint Inherited | number | undefined | BaseIModelDisplayReferences | The point in time currently reflected by the view, expressed in seconds in the Unix epoch. |
Defined in
Last Updated: 26 November, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.