# How to Load a Specific Part of a Model Instead of the Full Model in SCZ/SCS?

**URL:** <https://forum.techsoft3d.com/t/how-to-load-a-specific-part-of-a-model-instead-of-the-full-model-in-scz-scs/4730>\
**Category:** HOOPS Visualize Web\
**Tags:** knowledge-base, how-to, learn\
**Created:** [June 18, 2025, 5:49am UTC](https://forum.techsoft3d.com/t/how-to-load-a-specific-part-of-a-model-instead-of-the-full-model-in-scz-scs/4730 "2025-06-18T05:49:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shubham.suryawanshi](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@shubham.suryawanshi](https://forum.techsoft3d.com/u/shubham.suryawanshi)\
**Post date:** [June 18, 2025, 5:49am UTC](https://forum.techsoft3d.com/t/how-to-load-a-specific-part-of-a-model-instead-of-the-full-model-in-scz-scs/4730/1 "2025-06-18T05:49:26Z")

</div>

Hi everyone,

I’m currently working with Navisworks `.nwd` files and using them to generate:

- `.scz` files for SSR (Server Side Rendering)
- `.scs` files for CSR (Cilent Side Rendering)

Right now, my workflow involves loading the entire model and then selectively hiding/showing parts of it. However, this approach is not optimal in terms of performance, especially for large assemblies.

**Question:**  
Is there any way to load **only a specific part** of the model directly—without loading the whole model first and hiding the rest?

For example, if I know the node ID or path of the component I want, can I load **just that component** directly into SSR or CSR using SCZ or SCS?

Any guidance or tips on how to achieve this would be greatly appreciated.

Thanks in advance!

---

<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:** [June 18, 2025, 12:36pm UTC](https://forum.techsoft3d.com/t/how-to-load-a-specific-part-of-a-model-instead-of-the-full-model-in-scz-scs/4730/2 "2025-06-18T12:36:55Z")

</div>

Hello @shubham.suryawanshi,

You have a couple of options in terms of having more control on what is loaded in the viewer.

The server allows for different [streaming modes](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/enum/StreamingMode.html#streamingmode). Most relevant to your situation is `OnDemand`. There is an example available as part of the [quickstart](https://docs.techsoft3d.com/communicator/latest/overview/quickstart.html#quickstart) module. To view this example, please do the following:

- Launch the server by double-clicking _HOOPS\_Communicator\_2025.X.0\quick\_start\start\_server.bat_
- View the example in the Web Viewer by clicking this URL:  
[http://localhost:11180/streaming\_modes.html?viewer=csr](http://localhost:11180/streaming_modes.html?viewer=csr)

Worth noting is that while it is possible to request to load specific nodes, there is no option to unload them. So this means that controlling visibility may still me needed.

Another option — if the model is comprised of different standalone Stream Cache sub-assembly files — is to leverage the different variants of [loadSubtreeFrom\*](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/Model.html#Model.loadSubtreeFromModel) function. That is, you can load specific Stream Cache files instead of the entire master assembly.

Thanks,  
Tino

---

<div class="post-metadata">

**Author:** ![shubham.suryawanshi](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@shubham.suryawanshi](https://forum.techsoft3d.com/u/shubham.suryawanshi)\
**Post date:** [June 19, 2025, 9:14am UTC](https://forum.techsoft3d.com/t/how-to-load-a-specific-part-of-a-model-instead-of-the-full-model-in-scz-scs/4730/3 "2025-06-19T09:14:57Z")

</div>

I went with the **second approach** — using **shattered Stream Cache sub-assemblies** along with the `loadSubtreeFromSCSFile()` functions.  
To do this, I used this GitHub repo:  
🔗 [GitHub - toshi-bata/shattered: This sample creates shattered assembly from a monolithic assembly file using HOOPS Exchange and LibConverter of HOOPS Communicator.](https://github.com/toshi-bata/shattered)

This allowed me to split the model into `.scs` and `.png` files and load them on demand. However:

- **Drawback:** The shattering process is quite time-consuming, even for a 5 MB model.
- **Current bottleneck:** Preparing the `.scs`, `.scz`, and image assets takes significantly more time than expected.
- **Future concern:** My models may range from **100 MB to 5 GB** , so optimization is critical to keep processing time manageable.

* * *

### My question:

Is there any **faster or more optimized way** to generate these sub-assemblies (SCS + PNG) — especially for smaller and mid-sized models?

Also can you provide example to code for how to use loadSubtreeFromModel() function?

Thanks again, Tino, for the guidance!

Best regards,

---

<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:** [June 19, 2025, 1:48pm UTC](https://forum.techsoft3d.com/t/how-to-load-a-specific-part-of-a-model-instead-of-the-full-model-in-scz-scs/4730/4 "2025-06-19T13:48:51Z")

</div>

Generating PNGs file will increase the conversion time, as will including other output files. Our recommendation here is to first generate the SCS in one conversion operation and the PNG (and other output files) in another. This won’t reduce overall processing time but being more judicious can still yield benefits.

[As stated in our docs, SCS files are less than ideal for large(r) files](https://docs.techsoft3d.com/communicator/latest/prog_guide/servers/servers.html#scs-single-file-based-rendering). Regular SC/SCZ may be more appropriate.

An example of assembly building using `loadSubtreeFromModel` is available in the quickstart module. To view this example, please do the following:

- Launch the server by double-clicking _HOOPS\_Communicator\_2025.X.0\quick\_start\start\_server.bat_
- View the example in the Web Viewer by clicking this URL:  
[http://localhost:11180/assembly\_building.html?viewer=csr](http://localhost:11180/assembly_building.html?viewer=csr)
