Description
Short summary describing the issue. (3-5 sentences)
Creating an instance of XbimPlacementTree results in a key not found error. Specifically on line 80 in XbimPlacementTree.cs, if the localPlacement.PlacementRelTo is not an instance of IfcLocalPlacement (in my case IfcLinearPlacement) the exception is thrown.
Which assemblies/packages and their versions are known to be affected. E.g. Xbim.Essentials 4.0.29
Minimal file to reproduce the issue:
This repo includes an IFC4x3 file (Viadotto Acerno.ifc) : https://github.com/buildingSMART/IFC4.x-IF/blob/main/IFC-files/ACCA/Bridge-for-MINnD/Viadotto%20Acerno.zip
*Optional, details of the root cause if known.
I was able to get around this issue by modifying the class to parse IfcObjectPlacement instead, and hacking together two extra constructors for XbimPlacementNode that take an IIfcLinearPlacement and an IIfcGridPlacement.
I'm aware this is probably less a bug than it is an item still left as a TODO (Xbim Toolkit Core - v6.0) but I thought it was important nonetheless to report the issue. Thanks in advance!