BIM2SIM / bim2sim

A python tool to create simulation models for different domains based on BIM IFC models.
https://bim2sim.github.io/bim2sim/
GNU Lesser General Public License v3.0
43 stars 7 forks source link

AttributeErrors in different BIM files #486

Open FWuellhorst opened 1 year ago

FWuellhorst commented 1 year ago

Using BIM2SIM, I have found an error. It occurs with TEASER and EP as export options for the latest dev. If necessary, I can provide the BIM IFC files. It occurs for three different files, so it seems to be an important property / often used property.

Error:

  File "...bim2sim\bim2sim\kernel\ifc2python.py", line 232, in <genexpr>
    item.RelatingPropertyDefinition.Name == property_set_name), None)
  File "...\ifcopenshell\entity_instance.py", line 122, in __getattr__
    raise AttributeError(
AttributeError: entity instance of type 'IFC2X3.IfcRelDefinesByType' has no attribute 'RelatingPropertyDefinition'
veronikarichter commented 1 year ago

Have you tried it using IFC4 files? @FWuellhorst

FWuellhorst commented 1 year ago

@veronikarichter Not yet, as I only received the .ifc files. Does the creator of the ifc-file need to export it as ifc4? Or can I convert it somehow?

veronikarichter commented 1 year ago

@veronikarichter Not yet, as I only received the .ifc files. Does the creator of the ifc-file need to export it as ifc4? Or can I convert it somehow?

I have no experience in converting files, but probably some commercial tools may help here. I would just ask for a new IFC4 export that includes 2ndLevel Space Boundaries. Without 2ndLevel Space Boundaries, our methods are not applicable.