Elements missing when importing IFC model with FreeCAD

This forum section is only for IFC-related issues
Post Reply
l_pereztato
Posts: 17
Joined: Thu Mar 22, 2018 8:28 am
Contact:

Elements missing when importing IFC model with FreeCAD

Post by l_pereztato »

My FreeCAD details:

OS: Ubuntu 20.04.3 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.
Build type: Release
Branch: unknown
Hash: 8585149ab4ee0c165c5c443e84915741968d5624
Python version: 3.8.10
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English/United Kingdom (en_GB)

Concerning IfcOpenShell I've updated and compiled the v0.6.0 branch this morning.

When importing an IFC file, some elements are missing. In the report view, there is a possibly related message "failed to compute placement"

If I use https://view.ifcopenshell.org/ there are not missing elements.

Any thoughts?
elements_missing_importing_ifc_model.png
elements_missing_importing_ifc_model.png (556.53 KiB) Viewed 5025 times
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Elements missing when importing IFC model with FreeCAD

Post by thomas-neemann »

l_pereztato wrote: Fri Dec 17, 2021 2:15 pm ....

When importing an IFC file, some elements are missing. ...
if you need a quick solution you could import it into blender, export it as a dae and open it in freecad
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
l_pereztato
Posts: 17
Joined: Thu Mar 22, 2018 8:28 am
Contact:

Re: Elements missing when importing IFC model with FreeCAD

Post by l_pereztato »

Thank you very much (and sorry for the late reply).

I'll try this solution.
l_pereztato
Posts: 17
Joined: Thu Mar 22, 2018 8:28 am
Contact:

Re: Elements missing when importing IFC model with FreeCAD

Post by l_pereztato »

Hi, there.

This works, but all the metadata are lost.

I've found some related questions (I don't know why I didn't find them before):
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Elements missing when importing IFC model with FreeCAD

Post by bernd »

would you provide the file or would you provide a file which only has a few of this missing objects?

IfcOpenShel is not the newest in FreeCAD. You could try to use a newer version from IfcOpenBot or compile IfcOpenShell yourself.
l_pereztato
Posts: 17
Joined: Thu Mar 22, 2018 8:28 am
Contact:

Re: Elements missing when importing IFC model with FreeCAD

Post by l_pereztato »

Hi Bernd. Thanks for your reply.

The IFC file is not mine, so I can't share it here; I can send it by mail.

Concerning the IfcOpenShell library, I compile it myself (0.6.0 branch) from the sources in GitHub. If I type "locate libIfc" on my system, I get:

/home/luis/prg/build/IfcOpenShell/libIfcGeom.a
/home/luis/prg/build/IfcOpenShell/libIfcGeom_ifc2x3.a
/home/luis/prg/build/IfcOpenShell/libIfcGeom_ifc4.a
/home/luis/prg/build/IfcOpenShell/libIfcGeom_ifc4x1.a
/home/luis/prg/build/IfcOpenShell/libIfcGeom_ifc4x2.a
/home/luis/prg/build/IfcOpenShell/libIfcGeom_ifc4x3_rc1.a
/home/luis/prg/build/IfcOpenShell/libIfcGeom_ifc4x3_rc2.a
/home/luis/prg/build/IfcOpenShell/libIfcGeom_ifc4x3_rc3.a
/home/luis/prg/build/IfcOpenShell/libIfcGeom_ifc4x3_rc4.a
/home/luis/prg/build/IfcOpenShell/libIfcParse.a
/home/luis/prg/build/ifcplusplus/Release/libIfcPlusPlus.a
/usr/local/lib/libIfcGeom.a
/usr/local/lib/libIfcGeom_ifc2x3.a
/usr/local/lib/libIfcGeom_ifc4.a
/usr/local/lib/libIfcGeom_ifc4x1.a
/usr/local/lib/libIfcGeom_ifc4x2.a
/usr/local/lib/libIfcGeom_ifc4x3_rc1.a
/usr/local/lib/libIfcGeom_ifc4x3_rc2.a
/usr/local/lib/libIfcGeom_ifc4x3_rc3.a
/usr/local/lib/libIfcGeom_ifc4x3_rc4.a
/usr/local/lib/libIfcParse.a
/usr/local/lib/libIfcPlusPlus.a

So, if I'm not wrong, there are no other IfcOpenShell versions installed.
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Elements missing when importing IFC model with FreeCAD

Post by thomas-neemann »

l_pereztato wrote: Fri Dec 17, 2021 2:15 pm ...
When importing an IFC file, some elements are missing....
as a quick transition solution you could convert it to a stp file.

example:

https://forum.freecadweb.org/viewtopic. ... 67#p559867

download
http://ifcopenshell.org/ifcconvert
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
l_pereztato
Posts: 17
Joined: Thu Mar 22, 2018 8:28 am
Contact:

Re: Elements missing when importing IFC model with FreeCAD

Post by l_pereztato »

Thank you, Thomas. I'll try.
Post Reply