Big size of result IFC file
Hello, team! There is am IFC file from Civil 3D that has size of 11 MB. After import and export the only one object of this file using xBim I get IFC file of 20 MB. If I do this to whole model, I get 160 MB IFC file. MyIFC.zip
Please help to understand the reason of such difference in file sizes. Thank you!
It looks like
- You've lost the Maps (IfcMappedItems). That means all the shared geometry is lost, and now replicated per item
- You're defining a StyledByItem (and a graph of duplicated data such as IFCCOLOURRGB) for every RepresentationItem. Some of the items are represented by 80 meshs, and you're styling each one. See how many references to IfcColourRGB there are in the MyIFC.ifc containing one element (83) vs the original file containing the whole scene (20).
The combination of these two things will increase the size, especially here where you have complex tesselations.
I suspect Issue 2 accounts for 11MB =>20MB, while Issue 1 means the whole model => 160MB
Thanks for your answer!
Is there any way to attach one color element to whole group of IfcShellBasedSurfaceModel? Maybe it's possible to attach color to IfcShapeRepresentation or IfcProductDefinitionShape?
If you reintroduce the IfcMappedItem you can just style that single element. https://standards.buildingsmart.org/IFC/DEV/IFC4_2/FINAL/HTML/link/ifcshaperepresentation.htm