Article From:https://segmentfault.com/q/1010000011707377
Question:

How do we get the component ID in the BIMFACE model?

Answer 0:

1、Acquisition of listening events through front-end Click
viewer.addEventListener(Glodon.Bimface.Viewer.Viewer3DEvent.ComponentsSelectionChanged,function(componentData){

if(componentData && componentData.objectId){
    console.log(componentData);
    console.log(componentData.objectId);

}})

2、Get through the back end interface

Get component list for file transformation

You can get a list of all components or filter the list of components you want based on parameters (component classification ID, family, family type)

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *