removeHitsFrom Method


removeHitsFrom(sourceId, iModelRef) @beta

Search through list and remove any hits that contain a specified element id displayed through the specified reference.

removeHitsFrom(sourceId: string, iModelRef: IModelDisplayReference): boolean

Parameter Type Description
sourceId string  
iModelRef IModelDisplayReference  

Returns - boolean



removeHitsFrom(sourceId)

Search through list and remove any hits that contain a specified element id.

removeHitsFrom(sourceId: string): boolean

@note Distinct display references (e.g., linked iModels) may contain elements with colliding Ids; this removes hits from all of them. Use the overload accepting an IModelDisplayReference to remove hits from only one.

Parameter Type Description
sourceId string  

Returns - boolean


Defined in

Last Updated: 03 December, 2026