如何 select 指定类型的所有对象,例如 IfcWallStandardCase?
How to select all objects for specified type, for example, IfcWallStandardCase?
如何select属于特定类型的所有对象,例如所有门或所有windows?
谢谢。
最简单的方法是使用 viewer.search
(文档 here),然后 select 返回 dbid。请注意,搜索是异步的,结果以数字数组的形式提供:
viewer.search('keyword', function(dbids){
if(dbids instanceof Array && dbids.length)
viewer.select(dbids)
})
如何select属于特定类型的所有对象,例如所有门或所有windows? 谢谢。
最简单的方法是使用 viewer.search
(文档 here),然后 select 返回 dbid。请注意,搜索是异步的,结果以数字数组的形式提供:
viewer.search('keyword', function(dbids){
if(dbids instanceof Array && dbids.length)
viewer.select(dbids)
})