Yes, I already had a look, all the 2D linework is encapsulated inside an IfcAnnotation object. Inside, there is a...

Commenting post 100: Yes, I already had a look, all the 2D linework is encapsulated inside an IfcAnnotation object. Inside, there is a list of lines, polylines and circles. Should be pretty easy to retrieve. Actually I had no idea that IFC could host so much of those "basic" 2D stuff like lines, arrows, dimensions, texts, etc... But apparently it can, and the vector for that is the IfcAnnotation. IFC could also be a pretty decent 2D CAD format, amazing!

I'm currently rewriting the IFC importer/exporter of FreeCAD from scratch, because the latest developements in IfcOpenShell permitted to reduce the code to about 20% of what it was, with make things much clearer and easy to extend. That work is nearly done (I'll write a blog post about it too), then I'llhave a look at supporting such 2D objects.

Anyway, this is pretty interesting, and indeed seems a very good way to have things like details embedded inside the project file... Let's explore further!