【问题标题】:How to hide reference models in forgeHow to hide reference models in forge
【发布时间】:2022-12-01 22:25:40
【问题描述】:

https://forge.autodesk.com/en/docs/model-derivative/v2/tutorials/translate-source-file-containing-xref/task3-translate-source-file/ With using this tutorial I have translated reference linked model. Now I want to hide reference models in forge viewer, or want to show the only selected linked moldes not all. How can I implement this? I've read the blogs on Hiding element, where we can use dbId of the elements but here how I'm got getting the dbId of the linked models as well as levels.

I tried NOP_VIEWER.model.getDocumentNode().getAECdata(), from this I can see linked files but I find document Id and traverse Id of this. How can I get the dbId using this?

【问题讨论】:

    标签: autodesk-forge autodesk-viewer autodesk forge autodesk-model-derivative


    【解决方案1】:

    I'm afraid the Model Derivative service does not carry this kind of information into the output SVF format, so the viewer won't be able to automatically tell which elements are referenced.

    If this kind if functionality is critical for your use case, you could consider translating the designs individually, and then aggregate them in the viewer on demand. For example, in this demo, instead of translating a single Navisworks file with many references, the referenced designs are translated separately, and you can load/unload them in the viewer during runtime using the checkboxes on the right side.

    【讨论】:

      猜你喜欢
      • 2022-02-24
      • 2023-02-24
      • 2022-12-27
      • 2021-12-30
      • 2022-12-02
      • 2022-12-28
      • 2022-12-02
      • 2022-12-26
      • 2022-12-26
      相关资源
      最近更新 更多