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: string | SelectionScopeProps | SelectionScope): Promise<KeySet> Parameter Type Description imodel IModelConnection ids Id64Arg Element IDs to compute selection for scope string | SelectionScopeProps | SelectionScope Selection scope to apply Returns - Promise<KeySet> Defined in presentation/frontend/src/presentation-frontend/selection/SelectionScopesManager.ts Line 65 Last Updated: 11 June, 2024