选择单个楼层时使用selectFloor 参数1:楼层数组的index,参数2:是否需要平滑过渡的动画 viewer.getExtension("Autodesk.AEC.LevelsExtension").floorSelector.selectFloor(0,true) 想要同时选择多个楼层 var floorExtension = viewer.getExtension("Autodesk.AEC.LevelsExtension"); var floors = floorExtension.floorSelector._floors; floorExtension.floorSelector._applyFloorSection(floors[0].zMin,floors[1].zMax) 此方法无动画效果,若需要动画则需要自己编写函数,函数可参照_moveToFloor函数改写floorExtension.floorSelector._moveToFloor(floorIndex)
选择单个楼层时使用selectFloor 参数1:楼层数组的index,参数2:是否需要平滑过渡的动画
想要同时选择多个楼层
此方法无动画效果,若需要动画则需要自己编写函数,函数可参照_moveToFloor函数改写floorExtension.floorSelector._moveToFloor(floorIndex)