OS: openSUSE Leap 15.2 (KDE//usr/share/xsessions/default)
Word size of FreeCAD: 64-bit
Version: 0.20.Unknown
Build type: Release
Python version: 3.6.10
Qt version: 5.12.7
Coin version: 4.0.0
OCC version: 7.5.1
Locale: German/Germany (de_DE)
looking for a solution to import some provided FreeCAD *.ifc files into FC, I had a longer net research to find a solution for my used OS because the IfcOpenShell version [here: IfcOpenShell-python for python 3.6 64bit Linux] provided at http://ifcopenshell.org/python did not work.
Luckily I have ended up with IfcOpenShell which has to be provided in the openSUSE Leap 15.2 package version, which I've finally found in as an non-official openSUSE build repo.
I've carried out testing FreeCAD BIM WB with the installed IfcOpenShell.rpm against the online
viewer https://view.ifcopenshell.org/ with a total of 5 *.ifc files.
Unfortunately 2 of these *.ifc files show the following error message in the FreeCAD report
panel:
Code: Select all
12:38:31 Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib64/FreeCAD/Mod/Arch/importIFC.py", line 211, in open
doc = insert(filename, doc.Name, skip, only, root)
File "/usr/lib64/FreeCAD/Mod/Arch/importIFC.py", line 350, in insert
mattable = importIFCHelper.buildRelMattable(ifcfile)
File "/usr/lib64/FreeCAD/Mod/Arch/importIFCHelper.py", line 244, in buildRelMattable
for o in r.RelatedObjects:
<class 'TypeError'>: 'NoneType' object is not iterable
1) file does not open in FreeCAD
2) file opens correctly without error message on https://view.ifcopenshell.org/
Maybe view.ifcopenshell.org is using IfcOpenShell in the back-end, so it could be explained that the online viewer works fine.
I don't have an detailed idea how the BIM workbench cooperates with IfcOpenShell during *.ifc file import, apparently there is a problem in Python code, as the error message above shows.
==>
Does anyone have an idea what is running wrong in Ifc importer python script files:
Code: Select all
importIFC.py
importIFCHelper.py
...for the sake of completeness I would like to mention while all *.ifc files are opened online on https://view.ifcopenshell.org/
properly without any problems, 3 other *.ifc files show some different minor error messages in the FreeCAD report
panel:
Code: Select all
13:13:02 failed to compute placement
13:13:12 failed to compute placement
could not create roof
13:29:03 Failed to rebuild a valid solid for object Component039
13:29:03 Failed to rebuild a valid solid for object Component040
...
object color != material color for object: 752457
13:29:03 material color is used (most software uses shape color)