problems with IFC import

This forum section is only for IFC-related issues
User avatar
bernd
Posts: 9026
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: problems with IFC import

Postby bernd » Wed Jan 08, 2020 6:26 pm

Renato wrote:
Wed Jan 08, 2020 8:59 am
thank you
But sorry I didn't understand anything …
How does Freecad work to open this file correctly?
just use the latest 0.19 dev version
hlg
Posts: 23
Joined: Fri Jul 12, 2019 10:11 am

Re: problems with IFC import

Postby hlg » Fri Jan 10, 2020 8:25 am

hlg wrote:
Tue Jan 07, 2020 7:03 pm
I think the fix could be improved: https://github.com/FreeCAD/FreeCAD/comm ... t-36696448. Shall I make a pull request?
We are now using the right trigonometric functions, such that all combinations of positive/negative are handled: https://github.com/FreeCAD/FreeCAD/pull/2878. No complicated distinction of cases necessary. The only corner case is invalid IFC with direction ratios 0,0 for true north, where the direction is acutally indeterminate, but even that would not make the application crash.
User avatar
bernd
Posts: 9026
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: problems with IFC import

Postby bernd » Tue Jan 14, 2020 5:44 am

:D
Renato
Posts: 58
Joined: Fri Apr 24, 2015 10:14 am
Location: Italy (Tuscany)

Re: problems with IFC import

Postby Renato » Tue Jan 14, 2020 3:02 pm

So, i have used the last revision of freecad 0.19 (not conda)

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19263 (Git)
Build type: Release
Branch: master
Hash: c4ca00a1d5b7922ef1d2ae3e820bb34ffdb64d9f
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)

The file IFC now is opened, but there are problems. The columns are not in the right place
Attachments
import ifc 0.19 new.JPG
import ifc 0.19 new.JPG (274.42 KiB) Viewed 183 times
Renato
Posts: 58
Joined: Fri Apr 24, 2015 10:14 am
Location: Italy (Tuscany)

Re: problems with IFC import

Postby Renato » Tue Jan 14, 2020 4:31 pm

and I have tested opening the ifc file (with reinforcing rods) in other programs (intellicad and pcon planner) and it opens well and quickly (especially in the second case)
Attachments
import ifc pcon planner.JPG
import ifc pcon planner.JPG (304.98 KiB) Viewed 173 times
import ifc intellicad.JPG
import ifc intellicad.JPG (567.74 KiB) Viewed 173 times
Renato
Posts: 58
Joined: Fri Apr 24, 2015 10:14 am
Location: Italy (Tuscany)

Re: problems with IFC import

Postby Renato » Tue Jan 14, 2020 4:35 pm

I tested opening the ifc file with reinforcing rods with Freecad 0.19 and it opens incorrectly and slowly

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19263 (Git)
Build type: Release
Branch: master
Hash: c4ca00a1d5b7922ef1d2ae3e820bb34ffdb64d9f
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)
Attachments
import ifc 0.19 new steel.JPG
import ifc 0.19 new steel.JPG (367.53 KiB) Viewed 171 times
User avatar
bernd
Posts: 9026
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: problems with IFC import

Postby bernd » Tue Jan 14, 2020 9:47 pm

IFC importer in FreeCAD is slow this is a known restriction and could be improved but no one has ever really started it. One main reason is the huge ammount of objects in an ifc. FreeCAD is not optimized to handle thousands of objects in his tree. Neverless it can do it but it is slow. Furthermore the importer is pure python and uses tmp files for parsing geometry. Parsing the geometry in C++ dirctly as occt class would be blind fast.
User avatar
bernd
Posts: 9026
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: problems with IFC import

Postby bernd » Tue Jan 14, 2020 9:50 pm

as in any case post a simple file with the problem and someone might have a look at it and makes a fix.
User avatar
bernd
Posts: 9026
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: problems with IFC import

Postby bernd » Tue Jan 14, 2020 10:07 pm

Renato wrote:
Tue Jan 14, 2020 3:02 pm
So, i have used the last revision of freecad 0.19 (not conda)
works here on

OS: Debian GNU/Linux 10 (buster) (KDE//usr/share/xsessions/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19253 (Git)
Build type: Unknown
Branch: master
Hash: 74847380445a1cc59caf47fa3f7834f157fb80d6
Python version: 3.7.3
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Switzerland (de_CH)


Screenshot_20200114_230539.png
Screenshot_20200114_230539.png (538.75 KiB) Viewed 148 times
User avatar
bernd
Posts: 9026
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: problems with IFC import

Postby bernd » Tue Jan 14, 2020 10:30 pm

For the reinforcement model try to use non-parametric arch objects and deactivate the extrusions setting. Both in ifc import prefs.