IFC improvements

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

IFC improvements

Post by yorik »

I have started working on 2 features:

Redesigning the properties system https://github.com/yorikvanhavre/BIM_Wo ... /issues/81 and
Native IFC support https://github.com/yorikvanhavre/BIM_Wo ... /issues/94

So far, there is now a new IFC importer in the BIM WB. Just make sure Edit -> Preferences -> import/export -> IFC -> multicore is above 0. Then it's just a matter of selecting the IFC BIMWB importer in the list. If you use latest master code, the BIM WB importer is automatically detected and used (if using multicore) so there is nothing else to do.

What it does so far:

- It creates an entry in the document Meta storing a reference to the original IFC file
- Misc fixes and improvements here and there
- IFC properties are now imported and mapped to real FreeCAD properties. This is the biggest change and I'd like some feedback on it, if anyones fancies testing. To me it looks pretty cool and I see no real performance difference... But if it turns out to be bulky or heavy or impractical, we see another solution
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: IFC improvements

Post by thomas-neemann »

yorik wrote: Thu Sep 15, 2022 2:59 pm ... multicore is above 0. ...
it sounds like the import is significantly faster. Marvelous. Many Thanks
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: IFC improvements

Post by yorik »

On my older computer (intel i7), multicore didn't work very well, I had to leave it on 1 (even so, it's much faster than the basic importer). With the new one (amd ryzen 9) multicore works and it improves speed even more (up to 4. Above that, it doesn't really make much difference)..
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: IFC improvements

Post by thomas-neemann »

yorik wrote: Fri Sep 16, 2022 10:32 am ..
factor 4 should be better than commercial cad programs
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
proghettolab
Posts: 52
Joined: Sat Jun 27, 2020 3:09 pm

Re: IFC improvements

Post by proghettolab »

WB BIM version 2021.12.0 - FreeCAD 0.20.1
On 11th Gen Intel® Core™ i7-11700 @ 2.50GHz × 16 - Ram 64 GB
From 1 to 16 core the result is:
Finished importing 3.1 Mb in 00:11 s, or 3 s/Mb
0 core > it doesn't work.
User avatar
HenriqueReis
Posts: 34
Joined: Tue Mar 23, 2021 4:57 pm
Location: São Paulo - SP
Contact:

Re: IFC improvements

Post by HenriqueReis »

I performed the update and configuration, with multicore at 1. I opened 5 IFC files in a matter of seconds. A curiosity that I really liked is that it generated the Global ID in the objects.
Screenshot from 2022-09-19 13-07-19.png
Screenshot from 2022-09-19 13-07-19.png (16.7 KiB) Viewed 1139 times
OS: Ubuntu Core 20 (Budgie:GNOME/budgie-desktop)
Word size of FreeCAD: 64-bit
Asus - Core i5 3rd Gen - 8GB Ram
Version: 0.20.1.29177 +233 (Git) Snap 245
Build type: Release
Branch: tag: 0.20.1
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.3, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: Portuguese/Brazil (pt_BR)
* BIM 2021.12.0
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: IFC improvements

Post by yorik »

This makes me wonder if "IFC" and "IFC Attributes" groups shouldn't become one...
Post Reply