IFC import, treat FreeCAD, King_merged
IFC import, treat FreeCAD, King_merged
Got that link http://www.digital210king.org/downloader.php?file=24 from someone. It is not a little ifc-modell . Just started to treat FreeCAD . It is 20 past 0 a clock. I guess it takes hours to import ... See you in 7 hours ... I'm curious about it.
Re: IFC import
25 past 6, 6 hours, FreeCAD is alive It is still importing that file, reading BREP data an generating shapes. See you ...
Re: IFC import
10 past 8, nearly 8 hours, here we are it's done FreeCAD has imported the model. Wow, FreeCAD really has the ability to import huge and complex ifc-models
@Yorik, Do you know some python snippets to get some statistics? How many importat objects, walls, windows etc
@Yorik, Do you know some python snippets to get some statistics? How many importat objects, walls, windows etc
Re: IFC import
Upps, trying to save the model to FreeCAD may be was mistake ... We'll see ... I'm gone let him time ...
- Attachments
-
- screen1.jpg (63.1 KiB) Viewed 5182 times
Re: IFC import
There are still many areas of the importer that need to be optimized, 10 hours to import a 30Mb model is way too much, there are IFC models out there that weight easily 400 or 500 Mb (a couple of Gb when you have all the HVAC and other stuff).
One area I saw that is pretty slow, is the passing of brep data between ifcopenshell and freecad... I'll do some tests with creating temp files instead, to see if there is any difference.
But at least it imported without failing, that's the most important
You mean statistics about the contents of the IFC file? The original python ifc parser I wrote some time ago can do that...
One area I saw that is pretty slow, is the passing of brep data between ifcopenshell and freecad... I'll do some tests with creating temp files instead, to see if there is any difference.
But at least it imported without failing, that's the most important
You mean statistics about the contents of the IFC file? The original python ifc parser I wrote some time ago can do that...
Code: Select all
import IfcReader
print IfcReader.__doc__
Re: IFC import
The zip has 30 MB. The ifc-file is allready 150MB so a pretty big modell. I don't care about Importtime. I'm interested in the import quality.yorik wrote:There are still many areas of the importer that need to be optimized, 10 hours to import a 30Mb model is way too much, there are IFC models out there that weight easily 400 or 500 Mb (a couple of Gb when you have all the HVAC and other stuff).
One area I saw that is pretty slow, is the passing of brep data between ifcopenshell and freecad... I'll do some tests with creating temp files instead, to see if there is any difference.
....
+1yorik wrote:... it imported without failing, that's the most important ...
No, of the imported model in freecad. How many ArchWalls, How many ArchStructuralMemeber, How many ArchWindows etc ...yorik wrote:... You mean statistics about the contents of the IFC file? ...
Re: IFC import
Hm no then there is no such thing ATM, but we could add that easily, keep track of things while importing and printing a nice report a the end.berndhahnebach wrote:No, of the imported model in freecad. How many ArchWalls, How many ArchStructuralMemeber, How many ArchWindows etc ...
Re: IFC import
The following would be really helpfull if one imports ifc-modells quite often.yorik wrote:Hm no then there is no such thing ATM, but we could add that easily, keep track of things while importing and printing a nice report a the end.
During import, print in the status line which object of all object is imported right now
objekt x of y Objects
After import, little report may be in python log.
found in ifc-file:
ifcstandardwallcase x
ifcbeam y
ifcslab z
...
created in freecad:
ArchWall x
ArchStructuralMember y
ArchWindow z
...
That would give en easy controll if FreeCAD has imported the modell properly since other software (Nemetschek Allplan does) prints a report after eport to ifc.
EDIT: I allready was playing a bit but I found no possibility to distingisch between the type of an ArchWall and ArchWallBody in python. They both are Part::Feature. Was I did was find a specifc object of which I know the type and compare all objects of the object list with this one make new lists and get the numbers with len(list)
Last edited by bernd on Thu Dec 12, 2013 3:09 pm, edited 4 times in total.
Re: IFC import
the first hing it already does. You must enable debug messages in Arch IFC preferences options
Re: IFC import
It took 28 minutes to save the model to fstd-file. New hardware is highly appriciated. 8Gb Ram, 7.9 full, 4 Gb swap , 3.5 full mhh ...
Ahh, more pictures (I left the size at the original one):
Ahh, more pictures (I left the size at the original one):
- Attachments
-
- screen1.jpg (493.93 KiB) Viewed 5141 times
-
- screen3.jpg (495.5 KiB) Viewed 5141 times
-
- screen4.jpg (492.85 KiB) Viewed 5141 times
Last edited by bernd on Thu Dec 12, 2013 10:02 pm, edited 2 times in total.