JavaScript SDK版本3.6.227
2022-12-14
// 构造区域剖切对象
let sectionRegionConfig = new Glodon.Bimface.Plugins.Section.SectionRegionConfig();
// 配置剖切区域边界、高度、Viewer对象等参数
sectionRegionConfig.boundary = boundary;
sectionRegionConfig.height = 50.0;
sectionRegionConfig.viewer = viewerGIS;
// 设置参与剖切的对象筛选条件
sectionRegionConfig.filter = [
{layerId:'layer_151367034813'},
{layerId:'layer_151367034814',objectIds:["11","22"]},
{layerId:'layer_151367034815',objectData:[{levelName:"F01"}]}
];
// 构造剖切区域
sectionRegion = new Glodon.Bimface.Plugins.Section.SectionRegion(sectionRegionConfig);
// 清空筛选条件,即所有图层(地图/地形除外)均参与剖切
scetionRegion.clearFilter();
优化了测量类接口中,退出测量和暂停测量与测量数据显隐的关系;若设置了测量数据,当调用暂停测量switchOff()时,测量数据依然显示,当调用退出测量exit()时,测量数据隐藏并退出测量功能。
支持了rvt模型轴网的捕捉。
优化了多模型房间编辑时的显示效果。
// 获取当前图纸的浏览状态,用于保存后恢复图纸状态
State = viewer2D.getState();
// 保存当前视图为用户Home视图
viewer2D.recordCustomHomeview(State);
// 获取用户Home视图
viewer2D.getCustomHomeview()
BIMFACE智能客服
7*24提供专业的BIMFACE使用支持与帮助