What's the best way to generate sc master for all sub-assembly and share the same sc files of parts?

There are 16 sub-assemblies in this MOTO assembly.

I can create 16 sc master files for every sub-assembly, but it’s very time cost, and it will generate duplicate sc files for parts.

The question is: can I reuse the sc files of every individual parts when create shattered files from topo MOTO assembly when creating sc master files for every sub-assembly?

Hello @drawmindmap,

This should already be available in the shattered approach as described in the our docs. Once you create a master model (–-output_sc_master) for the topmost assembly node, you will just need to load that master model.

Thanks,
Tino

Thank you for the quick response.

Yes, I can create sc master for the top assembly(_MOTO_X).
But I also want to create master model for all sub-assemblies(there are 16) too, then I can only show those sub-assemblies on web page.

Yes, I believe this is possible. Once you have all the unique parts shattered, you can reassemble the model by loading the XML subtree using loadSubtreeFromXmlFile* on the client web viewer.

You will need to use prepare_shattered_xml in Converter to generate the XML for each subassembly. So in this sense, you are not loading separate shattered subassemblies (which may have duplicate part references) via the master model – but instead loading the corresponding shattered XML file for the subassembly.

Thank you, I’ll try.