提取ifc对象

提取ifc对象数据

 

if(elementType==1) {
    BuildingStorey buildingStoreyObj = new BuildingStorey();
    buildingStoreyObj.setName(ifcObjName);
    buildingStoreyObj.setGlobalID(indexGlobalID);
    list_buildingStoreys.add(buildingStoreyObj);
}
else if(elementType==2){
    //IfcWallStandardCase
    WallStandardCase wallStandardCaseObj = new WallStandardCase();
    wallStandardCaseObj.setName(ifcObjName);
    wallStandardCaseObj.setGlobalID(indexGlobalID);
    list_walls.add(wallStandardCaseObj);
}else if(elementType==3){
    //IfcBeam
    Beam beamObj = new Beam();
    beamObj.setName(ifcObjName);
    beamObj.setGlobalID(indexGlobalID);
    list_beams.add(beamObj);
}else if(elementType==4){
    //IfcColumn
    Column columnObj = new Column();
    columnObj.setName(ifcObjName);
    columnObj.setGlobalID(indexGlobalID);
    list_columns.add(columnObj);
}else if(elementType==5){
    //IfcSlab
    Slab slabObj = new Slab();
    slabObj.setName(ifcObjName);
    slabObj.setGlobalID(indexGlobalID);
    list_slabs.add(slabObj);
}

 

 

############3

 

posted @ 2021-06-03 12:54  西北逍遥  阅读(147)  评论(0编辑  收藏  举报