You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Model树显示组件与Instance Tree遍历结果不一致问题咨询

问题:获取与Model树层级一致的组件列表时遍历节点过多

我正在开发一项功能,需要获取与“Model”树显示层级完全一致的所有组件列表,目前使用以下JavaScript代码遍历Instance Tree:

tree.enumNodeChildren(
        rootId,
        function (dbId) {
          var traversingName = tree.getNodeName(dbId);
          var type = tree.getNodeType(dbId);
          console.log("Traversing Id", dbId, "Child Name", traversingName)
        },
        true
      );

但实际运行后发现,通过这段代码遍历返回的节点数量比Model树中显示的要多,截图显示Model树展示的节点数明显少于代码遍历输出的结果。恳请各位帮忙指导解决这个问题,谢谢!

内容的提问来源于stack exchange,提问作者Rahul K

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.18 05:01:06