changeModelDisplay Method

Deprecated  in 5.16.0 - will not be removed until after 2027-12-03. Use viewedModels.

Add or remove a set of models from those models currently displayed in this viewport.

changeModelDisplay(models: Id64Arg, display: boolean): boolean

@returns false if this Viewport is not viewing a SpatialViewState

@note This function only works if the viewport is viewing a SpatialViewState, otherwise it does nothing.

@note If display is true, any of the supplied models that are not yet loaded are loaded asynchronously; their graphics display once loading completes.

@see addViewedModels for a similar function that returns a promise that resolves once the requested models are loaded.

Parameter Type Description
models Id64Arg  
display boolean Whether or not to display the specified models in the viewport.

Returns - boolean

false if this Viewport is not viewing a SpatialViewState

Defined in

Last Updated: 03 December, 2026