使用 IFC 文件中的 attributeNames 进行查看器搜索
Viewer search with attributeNames from an IFC file
用viewer.search()搜索,在使用IFC文件转换的文件时使用attributeNames,attributeNames过于笼统。而不是 attributeName 例如 IfcDescription 几乎所有的 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 array 上指定的属性。如果您想到处搜索,只需使用 null 即可。
根据 2.11 version change log:viewer.getProperties() 现在将 return attributeName 和 displayName(如果可用)。 attributeName 可用作 viewer.search() 调用的过滤器。
用viewer.search()搜索,在使用IFC文件转换的文件时使用attributeNames,attributeNames过于笼统。而不是 attributeName 例如 IfcDescription 几乎所有的 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 array 上指定的属性。如果您想到处搜索,只需使用 null 即可。
根据 2.11 version change log:viewer.getProperties() 现在将 return attributeName 和 displayName(如果可用)。 attributeName 可用作 viewer.search() 调用的过滤器。