繁体   English   中英

查看器使用IFC文件中的attributeNames搜索

[英]Viewer search with attributeNames from an IFC file

当使用从IFC文件转换的文件时,使用viewer.search()搜索并使用attributeNames时,attributeNames太笼统。 代替例如ifcDescription的attributeName,几乎所有IFC attributeNames都是LcIFCProperty:IFCString。

我可以使用displayCategory,displayName或displayValue来缩小搜索范围吗? 还是将来有计划制作更具体的attributeNames?

attributeName:"LcIFCProperty:IFCString"
displayCategory:"IFC"
displayName:"DESCRIPTION"
displayValue:"Supply air device"

这是两个不同的属性,都具有LcIFCProperty:IFCString作为attributeName。

attributeName:"LcIFCProperty:IFCString"
displayCategory:"MagiCAD Pset_AirTerminal"
displayName:"PartType"
displayValue:"Supply air device"

没错,viewer.search()方法将搜索限制在attributeNames数组上指定的属性上 如果要在任何地方搜索,只需使用null即可。

按照2.11版本更改日志viewer.getProperties()现在将同时返回attributeName和displayName(如果可用)。 attributeName可以用作viewer.search()调用的过滤器。

暂无
暂无

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

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