Graph viewer of IFC structure in Bonsai: Interested? Features?
Hi Community,
I am updating my suite of educational tools to teach uni students about open BIM concepts,
Among them I have created
https://github.com/jakob-beetz/ifcopenshell-notebooks
https://github.com/jakob-beetz/IfcOpenShellScriptingTutorial/
and other stuff over the years.
As I had used have been using Blender(BIM) in education for a long time and am thinking of rolling all of this into Bonsai.
Such a graph viewer comes in handy to understand and debug models, get insights etc.
I am not sure how interesting this might be to you.
If it is, I will clean the code, add some features and put it in a separate repo (it creates additional dependencies, and I'd rather not pollute Bonsai with a PR with it...)
Things on my agenda:
- Interaction (click on a node, get the selection in Blender)
- All attributes and on the node labels
- auto-focus
- UI elements for graph recursion depth, ENTITY blacklists etc.
Any thoughts?
Thanks for any comments and suggestions
Jakob
Comments
I still consider myself a novice with IFC, so such a tool would be great!
um, awesome.
This is a good visualization of the fact that IFC is an entity relationship model.
I have used this software to visualize IFC files. Since it is open source, I will introduce it to you. Please translate as it is in Japanese.
https://github.com/kiyuka829/ifc-graph-viewer
This tool as another tab in the WebUI? How about it?
Thanks, this is a really good idea
I want it!
Hi guys thanks for the feedback!
Here is a first draft. Let me know if this works for you. Not sure about the installation on other platforms http://graphviz.org must be installed on your platform.
https://github.com/jakob-beetz/bonsaiGraph
fantastic!
@Jakob I just give your graph tool a try - really nice.
I had to tweak the code for an IFC4x3 model, otherwise, no issues at all. Super cool feature.
Thanks
Hi @Rick_Brice , thanks a lot for the feedback!
I'd be very happy to learn more about and incorporate your IFC4x3 tweaks. I have a few (cosmetic) updates and could add your modifications. Pull Request or some snippets here ... whatever works best for you. I also had a brief conversation with @dionmoult discussing some options to add this to the debug panel in bonsai itself and/or createing a WebUI panel with some nicer SVG rendering, interactivity etc. as @walpa suggested.
Jakob
@Jakob all i did was change the hard coded IFC4 to IFC4X3 in init.py
I think the ‘ifcopenshell.file.schema’ property gives the schema of the open file so maybe this works instead of hard coding. I haven’t tried it yet.