revit-ifc
revit-ifc copied to clipboard
PR: invalid type and occurrence class
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