ACC Viewer无法可视化显示IFCSpace的技术问题咨询
Solutions for IFCSpace Not Visible in ACC Viewer
1. Validate IFC Translation Settings in ACC
- When uploading IFC files to ACC, confirm the "Include Spaces" option was enabled during translation. This setting is sometimes disabled by default, which would exclude IFCSpace elements from the converted model.
- To check: Navigate to the ACC project's Documents tab, locate the IFC file, view its translation details, and verify spaces were processed. If not, re-translate the file with this option enabled.
2. Force Visibility via Targeted Viewer API Calls
Instead of relying on showAll(), target IFCSpace elements directly using the Viewer instance (NOP_VIEWER):
- Wait for the model to fully load before modifying visibility:
NOP_VIEWER.addEventListener(Autodesk.Viewing.GEOMETRY_LOADED_EVENT, () => { // Get the "Spaces" category from the model const spaceCategory = NOP_VIEWER.model.getInstanceTree().getCategoryMap().get('Spaces'); if (spaceCategory) { // Show all elements in the Spaces category NOP_VIEWER.setVisibility(spaceCategory.dbIdArray, true); // Refresh the viewer to apply changes NOP_VIEWER.impl.invalidate(true); } });
- If you know specific IFCSpace dbIds, target them directly:
NOP_VIEWER.setVisibility([spaceDbId1, spaceDbId2], true); NOP_VIEWER.impl.invalidate(true);
3. Check Layer and Filter Settings
- Open the Layers panel in ACC Viewer and ensure the layer containing IFCSpace elements is set to visible.
- Clear any active property filters in the Filters panel that might be excluding IFCSpace elements.
4. Confirm IFCSpace Elements Exist in the Model
Use the Viewer API to verify IFCSpace elements are present and attempt to show them:
NOP_VIEWER.model.getInstanceTree().enumNodeChildren(NOP_VIEWER.model.getRootId(), (dbId) => { NOP_VIEWER.model.getProperties(dbId, (props) => { if (props.type === 'IFCSpace') { console.log('IFCSpace found:', dbId, props.name); NOP_VIEWER.setVisibility(dbId, true); } }); }, true);
- If no IFCSpace elements are logged, the issue lies with the IFC translation process (return to step 1).
5. Reset Viewer Rendering Settings
- Clear any cut planes or clipping that might hide spaces:
NOP_VIEWER.setCutPlanes([]);
- Reset to default lighting to ensure elements aren't obscured:
NOP_VIEWER.setLightPreset(0);
内容的提问来源于stack exchange,提问作者FunkyPenguin
相关产品推荐
相关产品推荐

