Skip to content

Query and Emphasise spatial containments #12

Answered by navneetk897
yibodong2001 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi yibodong2001,

To implement this feature you first need to query the iModel to get the properties of element such as it's ECInstanceID.
You can learn about writing ECSQL queries from here https://www.itwinjs.org/learning/ecsqltutorial/

After having the ECInstanceIDs of the element you can highlight it by adding it in the iModelConnection's SelectionSet https://www.itwinjs.org/reference/core-frontend/selectionset/selectionset/ adding element into this set highlight the element.
This perhaps only work if wantSyncWithSelectionSet property set to true in HiliteSet.

Note: You could also directly add the ECInstanceIDs of the element into the iModelConnection's HiliteSet https://www.itwinjs.or…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yibodong2001
Comment options

Answer selected by yibodong2001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants