Autodesk / revit-ifc

IFC for Revit and Navisworks (2019+)
485 stars 196 forks source link

PR: invalid type and occurrence class #797

Open Moult opened 3 months ago

Moult commented 3 months ago

Problem Description

Our projects make heavy use of the Export Type to IFC As parameter (and Type IFC Predefined Type). I've been noticing that quite often, we will get scenarios where we might have a relating type of an IfcRoofType, and a related element of an IfcSlab. Or an IfcCurtainWallType and an IfcWindow, for example.

I haven't dug much into how to reproduce this, but it seems to only occur in those particular elements in IFC where IFC has specified use of aggregates (roofs, stairs, curtain walls).

Just to clarify, this bug is not about IfcRelAggregates (e.g. aggregating a slab into a roof, which is OK). This bug is about IfcRelDefinesByType (e.g. IfcSlab being an IfcRoofType).

Revit Version

2023.1.x

IFC for Revit Addon Version

24.x.x

Windows Version

11 22H2

AngelVelezSosa commented 3 months ago

I am currently investigating a few "hardwired" cases where it may be possible to get a mismatch of an instance and type respond differently to the IFC Export As parameter. If you have any sample Revit model with the "wrong" cases, I'd definitely include that in my investigation.