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
- core/frontend/src/HitDetail.ts Line 712
Last Updated: 03 December, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.