Ideally, while in viewer, goal would be to load/unload linked model in the viewer. This way, different engineering layers (structure/water/electricity/...) can be shown/hidden at will.
For this, I tried several options, but none is completely suited (up to my knowledge).
I tried to upload everythin from zip file. Upload linked Revit models for Forge Viewer https://forge.autodesk.com/cloud_and_mobile/2016/07/translate-referenced-files-by-derivative-api.html This is ok, for models such as [rst_advanced_sample_project.rvt+Technical_school-current_m.rvt] or Forge-Test-Harness-Node.js/Revit.zip.
This way leaves me 2 issues:
- I cannot load/unload links
- Update of single link requires full zip upload
I tried creating references manually https://developer.autodesk.com/en/docs/model-derivative/v2/reference/http/urn-references-POST/
- In progress, currently, I cannot see if my link is taken into account, but I expect same as above.
Aggregate models https://forge.autodesk.com/blog/aggregate-multi-models-sequence-forge-viewer
Elements are separated, some alignement might be needed, but all is displayed. Drawback is element info, especially model browser show irrelevant things.
Whatever the solution, is there a way to unload a model/link in viewer?
Thank you