IFC export workaround and question

This forum section is only for IFC-related issues
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

IFC export workaround and question

Post by thomas-neemann »

paullee asked me to create this theme.
a problem is described here with a workaround. the question is whether it goes as expected?

https://forum.freecadweb.org/viewtopic. ... 30#p530663
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: IFC export workaround and question

Post by thomas-neemann »

here is a workaround with which you can even continue working in the ifc file, which is often desired, but does not correspond to the bim idea. where it can make sense is in proposals for breakthroughs

https://www.youtube.com/watch?v=7d0dE9vcEVM

phpBB [video]




OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.28929 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 6f24fd3)
Hash: 6f24fd3053a89a5fb12ab765f9df93ec04deeac1
Python 3.9.12, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: German/Germany (de_DE)
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: IFC export workaround and question

Post by paullee »

Thanks for testing.

You may try in Preference, to Disable IfcRectangleProfileDef, or use Brep in export.
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: IFC export workaround and question

Post by thomas-neemann »

paullee wrote: Mon May 30, 2022 12:36 am Thanks for testing.

You may try in Preference, to Disable IfcRectangleProfileDef, or use Bref in export.
unfortunately neither works for me
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC export workaround and question

Post by bernd »

No problems here, at least not the ones which breaks the export ...

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.0.31917 (Git)
Build type: Release
Branch: master
Hash: 4639283b459f9ff9093e289908cc003db8745b82
Python 3.10.9, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: German/Switzerland (de_CH)
Installed mods: 
  * 3dfindit
  * A2plus
  * animation
  * BCFPlugin 1.0.0
  * BIM
  * BIMStatik
  * bimtester
  * bimtesterdata
  * BOLTSFC
  * Cubus
  * ETHcasDIGITAL_1819
  * FEMExamples
  * FEMToolBox
  * flamingo
  * FreeCAD-NativeIFC 2022.10.20
  * geoosm
  * hfcMystran
  * IFCToolBox
  * lattice2 1.0.0
  * Macros
  * MinWB
  * MyWB
  * MyWorkBench
  * Octahedron
  * PartFromWeb
  * PropertyToolBox
  * Raumbuch
  * README.md
  * Rebar
  * rebar2
  * Reinforcement
  * smartbim
  * SwissNPK
  * timber
  * trails


screen1.png
screen1.png (67.73 KiB) Viewed 4567 times

screen2.png
screen2.png (150.61 KiB) Viewed 4567 times

screen3.png
screen3.png (199.5 KiB) Viewed 4567 times
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: IFC export workaround and question

Post by paullee »

Thanks for testing Bernd, seems something on upper roof floor are missing :)
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: IFC export workaround and question

Post by thomas-neemann »

bernd wrote: Wed Feb 22, 2023 2:44 pm No problems here, ....
Thank you for your work, but I can't do it with your settings either.


Bildschirmfoto_2023-02-22_18-04-44.png
Bildschirmfoto_2023-02-22_18-04-44.png (25.26 KiB) Viewed 4515 times

Code: Select all

OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31917 (Git) AppImage
Build type: Release
Branch: master
Hash: 4639283b459f9ff9093e289908cc003db8745b82
Python 3.10.9, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods: 
  * 3D_Printing_Tools
  * Curves 0.6.6
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC export workaround and question

Post by bernd »

We will find it if you would help. If you use my prefs debug is on. Would you post the output of report console?

We need to find the object which does make the problem. A FreeCAD file with just this object should be our target.
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: IFC export workaround and question

Post by thomas-neemann »

bernd wrote: Wed Feb 22, 2023 7:30 pm We will find it if you would help. If you use my prefs debug is on. Would you post the output of report console?

We need to find the object which does make the problem. A FreeCAD file with just this object should be our target.
here it is. I haven't installed the bim workbench, is it necessary?

Code: Select all

20:45:32  Traceback (most recent call last):
  File "<string>", line 8, in <module>
  File "/tmp/.mount_31917-DA7Spy/usr/Mod/Arch/exportIFC.py", line 546, in export
    product = createProduct(
  File "/tmp/.mount_31917-DA7Spy/usr/Mod/Arch/exportIFC.py", line 2399, in createProduct
    product = getattr(ifcfile,"create"+ifctype)(**kwargs)
  File "/tmp/.mount_31917-DA7Spy/usr/lib/python3.10/site-packages/ifcopenshell/file.py", line 276, in create_entity
    e[idx] = arg
  File "/tmp/.mount_31917-DA7Spy/usr/lib/python3.10/site-packages/ifcopenshell/entity_instance.py", line 190, in __setitem__
    method = self.method_list[idx]
<class 'IndexError'>: list index out of range
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC export workaround and question

Post by bernd »

How about the lines before. Do you see on which object it breaks? Are you able to extract only this object into one FreeCAD document export this object only and get the same errormessage.
Post Reply