[IFC] Is there a way to convert ifc file to mermaid flowchart syntax?
I am quite interested if there is a simple way to convert an ifc file to mermaid flowchart syntax. So it would be possible to see in one big chart the ifc structure.
I saw also it is possible to create out of an mermaid flowchart a svg file.
Tagged:
Comments
Ha, that's a cool idea. :-D.
I remember seeing an A0 sized sheet where someone completely printed the Express-G diagram of IFC in PDF format.
Was so incredibly useful, can't find it anymore :-(
Hey @Martin156131


It's a cool idea. What I did some time ago was graph representation to Mermaid flowchart. It looked something like this:
The source code is actually somewhere there: https://github.com/paireks/Megarachne/blob/main/Megarachne/MegarachneEngine/Tools.cs
The issue is it worked for me well only for small graphs. That's why in the source code above you will find limitation to 100 edges. With bigger set of data the computing time I did with Markdown editors (that support Mermaid charts) was too long to render it + I believe it's hard to navigate such giant.
Also another thing good to mention is JSON Crack which converts JSONs into some sort of graph automatically: https://jsoncrack.com/. I did the tests with small .bim files, that looks like this:
You can view them there: https://github.com/paireks/dotbim/blob/master/DeveloperTips.md
But the issue was same thing: with large files loading it took too much time + navigation is difficult.
Indeed you could but as mentioned it might be a rather large graph. Use
ifc.traverse(element)
.@Martin156131 would this help? https://github.com/OpeningDesign/ifc-commenter
Creates commented out files like this. Shows the hierarchy of the various entities.