[英]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.