Exporting to IFC with non-ASCII names broken?

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
BIM Bo
Posts: 40
Joined: Sun Nov 22, 2020 3:55 pm

Exporting to IFC with non-ASCII names broken?

Post by BIM Bo »

(still) 0.19 23141 AppImg here.

Trying to export a very simple BIM project to IFC. Maybe (educated guess here) it's the ěščřřžýáí and the like in the object and group names, but the export fails pretty quick and pretty terse - see screenshots.
Attachments
freecad_bim_structure.png
freecad_bim_structure.png (100.62 KiB) Viewed 1003 times
export_failed.png
export_failed.png (23.67 KiB) Viewed 1003 times
BIM Bo
Posts: 40
Joined: Sun Nov 22, 2020 3:55 pm

Re: Exporting to IFC with non-ASCII names broken?

Post by BIM Bo »

BIM Bo wrote: Fri Apr 30, 2021 11:23 am ...
I can actually be more precise after peeking in the console:

Code: Select all

Traceback (most recent call last):
  File "<string>", line 6, in <module>
  File "/tmp/.mount_FreeCAzWi0hZ/usr/Mod/Arch/exportIFC.py", line 1550, in export
    ifcfile.write(filename)
  File "/tmp/.mount_FreeCAzWi0hZ/usr/lib/python3.8/site-packages/ifcopenshell/ifcopenshell_wrapper.py", line 1458, in write
    return _ifcopenshell_wrapper.file_write(self, fn)
<class 'RuntimeError'>: wstring_convert::to_bytes
Maybe it helps...
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Exporting to IFC with non-ASCII names broken?

Post by thomas-neemann »

BIM Bo wrote: Fri Apr 30, 2021 11:23 am
can you upload a test file?
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: Exporting to IFC with non-ASCII names broken?

Post by Syres »

I don't think those characters are allowed by the IFC standard based on this https://github.com/IfcOpenShell/IfcOpen ... ssues/1322
Post Reply