Hey, I've tried IfcBlender for 2.7x and it works great, but since I've
switched to 2.8 now, is there a version somewhere where basic import will
work? If so, how do I install it?
I've converted another much smaller addon to 2.8 and it was quite a lot of
work to search for all the changes in the API, but if it's not available
and noone working on it, I might just try to do it and make a pull request.
Nice, yes it worked on some sample .IFC files I found. Unfortunately when I imported one building from work, it took over 30 minutes.. It did import fine though. 6000 objects. But something must be wrong when it takes so long. I'm not a very good python programmer but I will try to add some timers and see if I can debug it for fun. :)
Ok I timed the code and it seems like 90% of the time is when Iterator.Next() is called so I don't think there's anything to do about the Blender code.. Actually creating the meshes is very fast. It's somewhere deeper.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yeah, it's just an interface to the native C++ code, which is single threaded. Multi-threading will likely arrive within weeks/months. Other performance improvements will likely arrive as part of hybrid geometry handling between CGAL and Open CASCADE.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hmm, I tried IfcConvert.exe (0.4.0) to Collada on the same file and it took 16 seconds instead of 30 minutes for the Blender importer. Shouldn't that do basically the same thing?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I got the ifc tools you provide for Blender 2.8x , but it appears the available Blender 2.80b is still off the 2.7 branch and your export add-on does not accept this build as 2.8x... Any suggestions?
I used the latest build from above with 2.8 and it works fine.
A workflow question that maybe somebody can help me with: how can I replace the imported file with a new updated one? Deleting the geometry and reimporting doesnt work well, some instance data still remains in the project file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I imported an IFC from revit, deleted all visible geometry and reimported a new IFC where the windows had been changed. The hole in the wall updated correctly but the window geometry appeared as in the first IFC import.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What is Dion Moult doing? (BlenderBim.org)
What are the guys from FreeCAD doing? Bernd, Yorick and co.
I hope you share each other your progress and issues?
Multithreading the import would be great...
Good Luck an continuation,
And many, many 1000-thanks for your efforts.
Lukas
Last edit: lukas 2019-11-15
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey, I've tried IfcBlender for 2.7x and it works great, but since I've
switched to 2.8 now, is there a version somewhere where basic import will
work? If so, how do I install it?
I've converted another much smaller addon to 2.8 and it was quite a lot of
work to search for all the changes in the API, but if it's not available
and noone working on it, I might just try to do it and make a pull request.
Thanks, Erik
Hi,
Some work has recently been done wrt 2.8 https://github.com/IfcOpenShell/IfcOpenShell/commits/master/src/ifcblender/io_import_scene_ifc
I think the recent version might work with 2.8, but I'm not entirely certain https://github.com/IfcOpenBot/IfcOpenShell/commit/12e9f7b941e0fca8d4f5ee97e5204c2c5c9eb30c#commitcomment-33953852
Any help is welcome. Also wrt to new features or enhancements.
Kind regards,
Thomas
Nice, yes it worked on some sample .IFC files I found. Unfortunately when I imported one building from work, it took over 30 minutes.. It did import fine though. 6000 objects. But something must be wrong when it takes so long. I'm not a very good python programmer but I will try to add some timers and see if I can debug it for fun. :)
Also because it only uses 20% CPU now, thinking maybe importing could be made multithreaded? Using the technique from this example: https://docs.blender.org/api/blender2.8/info_gotcha.html#strange-errors-using-threading-module
//Erik
Ok I timed the code and it seems like 90% of the time is when Iterator.Next() is called so I don't think there's anything to do about the Blender code.. Actually creating the meshes is very fast. It's somewhere deeper.
Yeah, it's just an interface to the native C++ code, which is single threaded. Multi-threading will likely arrive within weeks/months. Other performance improvements will likely arrive as part of hybrid geometry handling between CGAL and Open CASCADE.
Hmm, I tried IfcConvert.exe (0.4.0) to Collada on the same file and it took 16 seconds instead of 30 minutes for the Blender importer. Shouldn't that do basically the same thing?
Hard to say. One thing you can try is a recent version of v0.6.0 and try with and without
--orient-shells
https://github.com/IfcOpenBot/IfcOpenShell/commit/12e9f7b941e0fca8d4f5ee97e5204c2c5c9eb30c#commitcomment-33953852 Fixing face orientations on very detailed polyhedra can be very time consuming. I believe this is enabled in IfcBlender and not enabled by default in IfcConvert.Hi, I got the ifc tools you provide for Blender 2.8x , but it appears the available Blender 2.80b is still off the 2.7 branch and your export add-on does not accept this build as 2.8x... Any suggestions?
Where exactly did you get the addon from then?
Try this https://github.com/IfcOpenBot/IfcOpenShell/commit/12e9f7b941e0fca8d4f5ee97e5204c2c5c9eb30c#commitcomment-33953852
Hi,
I used the latest build from above with 2.8 and it works fine.
A workflow question that maybe somebody can help me with: how can I replace the imported file with a new updated one? Deleting the geometry and reimporting doesnt work well, some instance data still remains in the project file.
Can you explain what happens precisely? Are there errors or invalid results reimporting a file?
Hi, there's invalid results reimporting the file.
I imported an IFC from revit, deleted all visible geometry and reimported a new IFC where the windows had been changed. The hole in the wall updated correctly but the window geometry appeared as in the first IFC import.
Yes indeed, this makes sense. I created an issue https://github.com/IfcOpenShell/IfcOpenShell/issues/661 for this because it should be addressed.
By purging orphaned meshes I can import an updated geometry without problems.
By purging orphaned meshes I can import an updated geometry without problems.
What is Dion Moult doing? (BlenderBim.org)
What are the guys from FreeCAD doing? Bernd, Yorick and co.
I hope you share each other your progress and issues?
Multithreading the import would be great...
Good Luck an continuation,
And many, many 1000-thanks for your efforts.
Lukas
Last edit: lukas 2019-11-15