当我尝试在查看器中加载SVF2转换的SVF2模型的BIM卡环境时,房间不显示。
SVF2图片:SVF2 Viewer with rooms unhidden SVF图片:Viewer that has room volumes
已应用skipHiddenFragments:False:SVF2 With Fragment Override
发布于 2021-07-09 11:59:54
有几个原因可能会导致这种行为。
对于
// Method 1
bubbleNode.getDefaultGeometry(true); //!<<< get first master view
// ref: https://github.com/Autodesk-Forge/forge-dataviz-iot-react-components/blob/main/client/components/Viewer.jsx#L156
// Method 2
const root = viewerDocument.getRoot();
const viewables = root.search({'type':'geometry', 'role': '3d'});
console.log('Viewables:', viewables);
const phaseViews = viewables.filter(v => v.data.name === v.data.phaseNames && v.getViewableRootPath().includes('08f99ae5-b8be-4f8d-881b-128675723c10'));
console.log('Master Views:', phaseViews);v7.52之前,当使用Forge viewer加载SVF2视图时,房间默认处于隐藏状态。要使文件室可见,需要将viewer.loadDocumentNode设置为skipHiddenFragments: false
await this.viewer.loadDocumentNode(
doc,
masterViewBubble,
{
skipHiddenFragments: false
}
);更新9月17:使用v7.52及更高版本时,我们只需确保载入主视图编号即可查看Revit的房间。
await this.viewer.loadDocumentNode(
doc,
masterViewBubble
);参考:https://github.com/Autodesk-Forge/forge-bim360-assets.viewer#troubleshooting
https://stackoverflow.com/a/67775385/7745569:The
Revit Area and Volume Computations is not Areas and Volumeshttps://stackoverflow.com/questions/68292273
复制相似问题