I can't get the IfcOpenShell serializer to work for IFC export.
According to the wiki:
I have IfcOpenShell version 0.6.0b0 in my FreeCAD installation but if I activate the setting "Use IfcOpenShell serializer if available" in the IFC export preferences, and try to export a shape, I get this python exception:However, IfcOpenShell v0.5 or above feature a serializer, which must be enabled in the Import/Export → IFC preferences. If enabled, this serializer is able to export very complex curved objects such as those based on NURBS, and thus avoid triangulated faces.
Code: Select all
Traceback (most recent call last):
File "<string>", line 4, in <module>
File "C:\Users\user\Downloads\FreeCAD_0.19.19591_x64_Conda_Py3QT5-WinVS2015\Mod\Arch\exportIFC.py", line 375, in export
preferences=preferences
File "C:\Users\user\Downloads\FreeCAD_0.19.19591_x64_Conda_Py3QT5-WinVS2015\Mod\Arch\exportIFC.py", line 1911, in getRepresentation
p = geom.serialise(sh.exportBrepToString())
<class 'TypeError'>: _() missing 1 required positional argument: 'string'
Is this IFC export broken or do I miss some kind of dependency/wrong setting?
Code: Select all
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19591 (Git)
Build type: Release
Branch: master
Hash: 27771fc6ee93170b6ecb978ff4da438a5b9cfe97
Python version: 3.7.3
Qt version: 5.12.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Greek/Greece (el_GR)