IfcTester - Script for testing several IFCs with several IDS
Dear Community,
i have started to use IDS in a project of mine with blenderBIM and while it works the "manual" way using the UI of BBIM, I have 70 IFCs in that project that need to be checked by 6 different IDS (specific IFCs - not all 70).
I am not experienced with coding but tried to get anywhere with the help of chatgpt...which did not work out - propably because the specific commands of ifctester (and propably IfcOpenShell itself) are not known by chatgpt.
I tried to find a documentation for IfcTester or a code example and all I found was THIS which did not help me as much as I had hoped.
If there are more ressources or if someone could give me a code example it would be extremly welcome.
What I want to do:
Have three folders:
- Models
- IDS
- Reports
and test specific IFCs with specific IDS out of these folders and export all variants of reports (ODS, HTML and BCF) in the reports folder.
Help would be highly appreciated. I will go crazy if I have to test the IFCs manually every two weeks for the rest of the project ;)
Comments
@DavidE the latest BlenderBIM Add-on in the UI supports multiple IFCs and IDSes. You can bulk select IFC and IDS and it'll process them all in bulk and produce individual reports :) That might save you writing a script.
@Moult thanks thats great to hear! I will check it out as soon as I sucessfully installed the 0.7.11-alpha240724 on a Windows System (Blender 4.0.2) - which right now did not succeed.
For the future some documentation for IfcTester would be great, so if anyone can point me to one (or a video of using it outside of BBIM) it would be really nice.
You'll need Blender 4.2 for the latest builds. Keep your older version around for the moment because apart from IfcTester, the latest alpha builds are pretty unstable.
Most of the ah, docs, ah, are in the test suites :) We really do need to sit down and write docs.
Hello @DavidE
I am currently working with 'ifctester: web based app' . so it involves implementation of ifctester and integrating it with a backend:
you can see the code sample here:
https://github.com/horizenight/Gsoc24-IfcTester-WebApp/blob/main/Backend/App/ids/ids.py
I was able to generate reports for my sample.ifc files. against sample.ids files.
hope it helps : )