# HOOPS stream caching XML loading mode, how to set up to load only the part that can be seen？

**URL:** <https://forum.techsoft3d.com/t/hoops-stream-caching-xml-loading-mode-how-to-set-up-to-load-only-the-part-that-can-be-seen/3314>\
**Category:** HOOPS Visualize Web\
**Created:** [March 1, 2024, 3:13am UTC](https://forum.techsoft3d.com/t/hoops-stream-caching-xml-loading-mode-how-to-set-up-to-load-only-the-part-that-can-be-seen/3314 "2024-03-01T03:13:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rui.Zhang03](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@Rui.Zhang03](https://forum.techsoft3d.com/u/Rui.Zhang03)\
**Post date:** [March 1, 2024, 3:13am UTC](https://forum.techsoft3d.com/t/hoops-stream-caching-xml-loading-mode-how-to-set-up-to-load-only-the-part-that-can-be-seen/3314/1 "2024-03-01T03:13:40Z")

</div>

We have a very large assembly, the original count model is over 50GB, now we use stream cache mode + memory limit + [setStreamCutoffScale](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/Communicator.WebViewer.html#setstreamcutoffscale) (2.0), to do the optimization, but it still loads the internal model and stops loading it when it reaches the memory limit, and the whole appearance of the model can’t be loaded all the way through

---

<div class="post-metadata">

**Author:** ![Rui.Zhang03](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@Rui.Zhang03](https://forum.techsoft3d.com/u/Rui.Zhang03)\
**Post date:** [March 1, 2024, 3:19am UTC](https://forum.techsoft3d.com/t/hoops-stream-caching-xml-loading-mode-how-to-set-up-to-load-only-the-part-that-can-be-seen/3314/3 "2024-03-01T03:19:35Z")

</div>

How to parameterize the model so that the exterior is loaded first and the interior details are loaded only when they are visible

---

<div class="post-metadata">

**Author:** ![Rui.Zhang03](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@Rui.Zhang03](https://forum.techsoft3d.com/u/Rui.Zhang03)\
**Post date:** [March 1, 2024, 3:25am UTC](https://forum.techsoft3d.com/t/hoops-stream-caching-xml-loading-mode-how-to-set-up-to-load-only-the-part-that-can-be-seen/3314/4 "2024-03-01T03:25:08Z")

</div>

We do this by loadingSubtreeFromXmlFile, the xml file contains the Transformation for each node,ExternalModel,BoundingBox，We only provide BoundingBox for nodes of Part type, nodes of assembly type are not provided with BoundingBox，Is this the right thing to do?

---

<div class="post-metadata">

**Author:** ![tino](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@tino](https://forum.techsoft3d.com/u/tino)\
**Post date:** [March 5, 2024, 5:17pm UTC](https://forum.techsoft3d.com/t/hoops-stream-caching-xml-loading-mode-how-to-set-up-to-load-only-the-part-that-can-be-seen/3314/5 "2024-03-05T17:17:45Z")

</div>

Hello @Rui.Zhang03,

It looks like you had asked a similar question. Our response is likewise similar:

> [@Loading stream model with cutoffscale](https://forum.techsoft3d.com/t/loading-stream-model-with-cutoffscale/3320/3):
>
> Hello @Rui.Zhang03, It is okay to only provide the bounding box information at the part level – if you’d rather not convert the assembly in order to better manage hardware resources such as RAM. For clarity, the part in question in this case is the one referenced with \<ExternalModel/\> as stated in [point #10 in our docs](https://docs.techsoft3d.com/communicator/latest/prog_guide/viewing/data_model/stream_cache/shattered-workflows.html#xml-format). If you find that using cutoff scale is not working as expected, our recommendation would be to create a support ticket in our portal. As it is likely that we will need the so…

Thanks,  
Tino
