简体   繁体   中英

Viewer search with attributeNames from an IFC file

Searching with viewer.search() and using attributeNames when using an file converted from an IFC file, the attributeNames are too general. Instead of attributeName being for example IfcDescription almost all IFC attributeNames are LcIFCProperty:IFCString.

Can I use displayCategory, displayName or displayValue to narrow down the search? Or is there any plans to make more specific attributeNames in the future?

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

These are two different properties, both have LcIFCProperty:IFCString as the attributeName.

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

That's correct, the viewer.search() method will restrict the search to attribute specified on the attributeNames array . If you want to search everywhere, just use null instead.

As per 2.11 version change log : viewer.getProperties() will now return both attributeName and displayName (if available). The attributeName can be use as a filter for viewer.search() calls.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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