changeModelDisplay Method

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

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

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

note This function does not load any models. If display is true and any of the supplied models refers to a model that has not been loaded, no graphics will be loaded+displayed in the viewport for that model.

see Viewport.addViewedModels for a similar function that also ensures the requested models are loaded.

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

Returns - false if this Viewport is not viewing a SpatialViewState

Defined in

Last Updated: 08 January, 2020