IFC import hangs if 'Detect extrusions' is checked.

This forum section is only for IFC-related issues
Post Reply
User avatar
Roy_043
Veteran
Posts: 8578
Joined: Thu Dec 27, 2018 12:28 pm

IFC import hangs if 'Detect extrusions' is checked.

Post by Roy_043 »

Importing the attached IFC (created from the file in this topic) causes FreeCAD to hang with a 'list index out of range' error.

Similar topic:
https://forum.freecadweb.org/viewtopic.php?t=16844

Code: Select all

OS: Windows 8.1 (6.3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22262 (Git)
Build type: Release
Branch: master
Hash: f56825c79f11b75648a7a0dcc8a9f52bb4574e61
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Dutch/Netherlands (nl_NL)
Attachments
DhFundament.ifc
(13.16 KiB) Downloaded 70 times
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC import hangs if 'Detect extrusions' is checked.

Post by bernd »

this file has problems too if this option is checked. https://forum.freecadweb.org/viewtopic. ... 94#p423241
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: IFC import hangs if 'Detect extrusions' is checked.

Post by vocx »

Roy_043 wrote: Tue Aug 25, 2020 8:56 am Importing the attached IFC (created from the file in this topic) causes FreeCAD to hang with a 'list index out of range' error.
It imports fine in my system.

Code: Select all

OS: Ubuntu 18.04.5 LTS (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22291 (Git)
Build type: Release
Branch: master
Hash: 30bc9fc6be5dd97bb1456d1c0c25c17fb3ffc551
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)

Code: Select all

>>> import ifcopenshell
>>> ifcopenshell.version
'0.6.0b0'
However, if you use IfcPlusPlus, the two groups of beams are imported in the same place.
Imported_FreeCAD.png
Imported_FreeCAD.png (58.1 KiB) Viewed 1378 times
Imported_IfcPlusPlus.png
Imported_IfcPlusPlus.png (24.96 KiB) Viewed 1378 times
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
User avatar
Roy_043
Veteran
Posts: 8578
Joined: Thu Dec 27, 2018 12:28 pm

Re: IFC import hangs if 'Detect extrusions' is checked.

Post by Roy_043 »

vocx wrote: Tue Aug 25, 2020 4:18 pm It imports fine in my system.
I still have the problem after upgrading. Only if I uncheck 'Detect extrusions' (see topic title) can I import the file.

Code: Select all

OS: Windows 8.1 (6.3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22284 (Git)
Build type: Release
Branch: master
Hash: bf1e8e48389f5e9e25bd77b67fe98da4213e797c
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Dutch/Netherlands (nl_NL)
User avatar
Roy_043
Veteran
Posts: 8578
Joined: Thu Dec 27, 2018 12:28 pm

Re: IFC import hangs if 'Detect extrusions' is checked.

Post by Roy_043 »

bernd wrote: Tue Aug 25, 2020 9:59 am this file has problems too if this option is checked. https://forum.freecadweb.org/viewtopic. ... 94#p423241
That is correct. But with that file FreeCAD does not hang.
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: IFC import hangs if 'Detect extrusions' is checked.

Post by vocx »

Roy_043 wrote: Tue Aug 25, 2020 4:53 pm I still have the problem after upgrading. Only if I uncheck 'Detect extrusions' (see topic title) can I import the file.
Unchecked "Detect extrusions".
Import_unchecked.png
Import_unchecked.png (32.26 KiB) Viewed 1358 times
Import_unchecked_solid.png
Import_unchecked_solid.png (37.25 KiB) Viewed 1358 times
Checked "Detect extrusions". The direction of the extrusion is different. I assume this could be improved.
Import_checked_extrusion.png
Import_checked_extrusion.png (27.8 KiB) Viewed 1358 times
Import_checked_extrusion_solid.png
Import_checked_extrusion_solid.png (41.84 KiB) Viewed 1358 times
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Post Reply