Skip to content

CheckIFC fails #807

@MDHering

Description

@MDHering

We tried the bim2sim workflow with a simple .ifc-File that was created from scratch and drawn in bonsaibim. Loading this file in bim2sim gives an error in the check_ifc function:

[DEV-ERROR] - 2025-05-28 09:17:38,464 bim2sim.Playground.run_task: Task '<Task (CheckIfcBPS)>' failed!
Traceback (most recent call last):
File "C:\Users\DominikHering\Git\bim2sim\bim2sim\tasks\base.py", line 110, in run_task
result = task.run(**read_state)
File "C:\Users\DominikHering\Git\bim2sim\bim2sim\tasks\common\check_ifc.py", line 89, in run
self.error_summary_sub_inst = self.check_inst(
File "C:\Users\DominikHering\Git\bim2sim\bim2sim\tasks\common\check_ifc.py", line 228, in check_inst
error = validation_function(inst)
File "C:\Users\DominikHering\Git\bim2sim\bim2sim\tasks\common\check_ifc.py", line 786, in validate_sub_inst
self.apply_validation_function(self._check_segments(bound),
File "C:\Users\DominikHering\Git\bim2sim\bim2sim\tasks\common\check_ifc.py", line 1096, in _check_segments
return (s.is_a('IfcCompositeCurveSegment') for s in bound.ConnectionGeometry.SurfaceOnRelatingElement.
OuterBoundary.Segments)
TypeError: 'NoneType' object is not iterable

The function assumes an IFCCompositeCurveSegment, however the walls drawn in bonsaibim have no segments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions