API Reference > presentation-frontend > UnifiedSelection > SelectionScopesManager > computeSelection computeSelection Method Computes keys that need to be added to logical selection based on provided selection scope. computeSelection(imodel: IModelConnection, ids: Id64Arg, scope: SelectionScope | string): Promise<KeySet> Parameter Type Description imodel IModelConnection ids Id64Arg Element IDs to compute selection for scope SelectionScope | string Selection scope to apply Returns - Promise<KeySet> Defined in presentation/frontend/src/selection/SelectionScopesManager.ts Line 65 Last Updated: 13 June, 2024