简体   繁体   English

锻造 Api - 搜索

[英]Forge Api - Search

I am showing multiple IFC files in my forge viewer.我在我的 forge 查看器中显示了多个 IFC 文件。 Till here everything is fine.到这里一切都很好。 What I am struggling with is that I want to find values of an attribute say for name from all the ifc files in the viewer with the values I also need to to that this value has come from which ifc file.我正在苦苦挣扎的是,我想从查看器中的所有 ifc 文件中找到一个属性的值,比如 name ,我还需要这些值来证明这个值来自哪个 ifc 文件。

Thanks & Regards感谢和问候

Get the model reference and then call getProperties获取 model 参考,然后调用 getProperties

for (const model of viewer.getVisibleModels()) {
  viewer.isolate(null, model);
}
Model.prototype.getProperties = function(dbId, onSuccessCallback, onErrorCallback) 
{...}

We have a multimodal refresher blog, please refer here我们有一个多模式复习博客,请参考这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM