Ways to hide subcategory in iModel viewer #948
|
Hi We are displaying imodel file into the imodel viewer. But when it comes to customization of subcategory thing it is not working for me. I want to make the subcategory invisible to true. Following is the code snippet that I am using After these steps listed above still, I am unable to hide the subcategories in my model. Can you please suggest some other way round or modifications in the steps so as to achieve the hiding of subcategory thing? Any help would be really appreciable |
Replies: 3 comments 9 replies
|
You have |
|
@pmconne Hi But when we add invisible: true or transp:99 to the JSON object it does not works and it removes the color as well, as if it is ignoring the request. Any solution to the same would be really appreciable. Note: we are using 2.13.0 version of imodeljs-frontend. |
|
I modified this sample which also uses ViewportComponent to try to reproduce your issue. In |






I modified this sample which also uses ViewportComponent to try to reproduce your issue. In
onViewOpencallback I query for all subcategories and make half of them invisible. This has the expected effect: geometry on those subcategories is not displayed in the viewport.