FreeCAD IFC import

I finally got the freecad 0.19 nightly snapshots for fedora (from this copr repository ) working by setting QT_QPA_PLATFORM=xcb in my environment. I also built ifcopenshell 0.6.0, is this the recommended version for freecad snapshots?
Just for the record, this 4.4MB IFC project took three hours to import and uses 3GB RAM, otherwise looks fine:

Jesusbillpaullee

Comments

  • edited May 2020

    You mean 4.4MB or 4.4GB? 3 hours seems quite long :)

    BTW, I use AppImage on Fedora31 - No need to compile, better / latest version of OCC, and it seems I do not need to compile IFCopenshell any more since that (not sure )

  • @paullee 4.4MB, it could be that my IFC files are particularly adversarial. I'm a sometime fedora contributor, so I try to create packages when I can, maybe another contributor will clean it up and commit to maintaining it.

  • edited May 2020

    Maybe there are redundant geometries or something. Here a 10.2MB IFC file. http://openifcmodel.cs.auckland.ac.nz/Model/Details/331
    It took 4 min 7 sec to import in FreeCAD 0.19

    OS: Windows 10 (10.0)
    Word size of OS: 64-bit
    Word size of FreeCAD: 64-bit
    Version: 0.19.21049 (Git)
    Build type: Release
    Branch: master
    Hash: 9c27f1078e5ec516fe882aac1a27f5c6c6174554
    Python version: 3.8.2
    Qt version: 5.12.5
    Coin version: 4.0.0
    OCC version: 7.4.0
    Locale: English/United States (en_US)

  • Ping @yorik - it doesn't seem right. @brunopostle can you provide a test file?

  • @Moult @yorik I've zipped and attached it (can the forum be adjusted to allow IFC uploads?).
    This is one of my home-rolled IFC projects, so it is entirely possible I have done something wrong.
    I have a question about ifcopenshell: there is a 0.6.0 release on the website, but the 0.6.0 branch is being actively developed, what is going on here?

  • @brunopostle I didn't see an option for changing upload types - will dig deeper.

    The 0.6.0 branch is where all the work is being done, and there is an IfcOpenBot account on Github which creates builds. I'd say the bot builds are the best place to get IfcOpenShell packages, and certainly is what I use when I distribute the BlenderBIM Add-on.

  • @Moult I try to initially avoid pre-built binaries - as much because I'm part of the system for getting these things into fedora as anything else, so figuring out how to compile it is useful work, rather than just plain crazy. Do you know if the ifcopenshell 0.6.0 zip archive is a development snapshot? or 0.6.0 has been 'released', but development continues on the 0.6.0 branch for some reason? I ask because the zip file fails to build with GCC 10.1.1, but is ok with GCC 9.3.1
    @bitacovir your 10mb test file imports in a few minutes, but with lots of errors.

  • edited May 2020

    @brunopostle said:
    @bitacovir your 10mb test file imports in a few minutes, but with lots of errors.

    Yes. I know. But that means your FreeCAD installation works similar to pre-compiled version...
    Anyway, I downloaded your file and It took 14 min to import (with my laptop Asus ROG i7).

  • It took me about 19min on my i3 to import (browsing etc. in parallel)... with lots of
    " ...
    Failed to rebuild a valid solid for object Component239
    Failed to rebuild a valid solid for object Component254
    Failed to rebuild a valid solid for object Component260 ..."

    Amazing model w/ such details in only a few mB of IFC !


  • @paullee thanks for testing. I guess my laptop isn't up to the job, it was also taking about a minute for the display to refresh.
    The IFC file is small because the code is specialised to describe just this sort of building, and all the assets (doors etc..) are low poly meshes.

  • Hi all, 4 hours is definitely wrong... I'll open the file to test too.
    There is something to keep in mind in FreeCAD, with the default settings, all objects in the IFC file as recreated as editable (ie. their extrusions are recreated, etc). This is very inefficient, and usually not needed for every object. You can change that by going to Edit -> Preferences -> IFC import -> Change "Parametric Arch objects" to "Non parametric" (a bit faster) or "Part shapes" (much faster), this will already speed things up a lot.
    We've been discussing this on the FreeCAD side, maybe always by default make fast imports, and find a way to turn objects editable on demand... Usually when working with IFC files, you only need to edit very few objects

    basweinbitacovir
Sign In or Register to comment.