怎么獲取BIMFACE模型中的構(gòu)件id?
怎么獲取BIMFACE模型中的構(gòu)件id?
動漫人物
2019-02-14 18:38:08
TA貢獻(xiàn)1799條經(jīng)驗(yàn) 獲得超8個(gè)贊
1、通過前端點(diǎn)擊的監(jiān)聽事件獲取
viewer.addEventListener(Glodon.Bimface.Viewer.Viewer3DEvent.ComponentsSelectionChanged,function(componentData){
if(componentData && componentData.objectId){
console.log(componentData);
console.log(componentData.objectId);
}})
2、通過后端接口獲取
可以獲取所有構(gòu)件列表 或者根據(jù)參數(shù)(構(gòu)件分類ID、族、族類型)篩選自己想要的構(gòu)件列表
舉報(bào)