ifc import error
ifc import error
OS: Ubuntu 16.04.5 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git)
Build type: None
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Has anybody had this happen?
Get it on two separate machines
Both running Ubuntu 16.04LTS
Have tried several IFC files, all import without problems in other software.
Also IFC files created from FC
Had to take a picture of Screen, cause FC Hangs...
regards
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git)
Build type: None
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Has anybody had this happen?
Get it on two separate machines
Both running Ubuntu 16.04LTS
Have tried several IFC files, all import without problems in other software.
Also IFC files created from FC
Had to take a picture of Screen, cause FC Hangs...
regards
-
- Veteran
- Posts: 5505
- Joined: Thu Apr 05, 2018 1:53 am
Re: ifc import error
pls find attached
thx
regards
- Attachments
-
- at_ARCH.ifc
- (41.42 KiB) Downloaded 98 times
-
- Veteran
- Posts: 5505
- Joined: Thu Apr 05, 2018 1:53 am
Re: ifc import error
You have installed ifcopenshell and where python can find it?
https://freecadweb.org/wiki/Import/Expo ... enShell/en
https://forum.freecadweb.org/viewtopic. ... 09#p137225
I was able to import the file, but I don't know how complete the import process was. It does not look entirely complete.
I got these messages in the report view:
https://freecadweb.org/wiki/Import/Expo ... enShell/en
https://forum.freecadweb.org/viewtopic. ... 09#p137225
I was able to import the file, but I don't know how complete the import process was. It does not look entirely complete.
I got these messages in the report view:
Code: Select all
Opening C:/Users/mwganson/Downloads/at_ARCH.ifc ...done.
Building relationships table...done.
Processing objects...
1 / 75 creating object # 38 : IfcWall (arch) 5 k []
2 / 75 creating object # 74 : IfcOpeningElement (arch) skipped.
3 / 75 creating object # 92 : IfcWall (arch) 5 k []
4 / 75 creating object # 95 : IfcOpeningElement (arch) skipped.
5 / 75 creating object # 109 : IfcWall (arch) 2 k []
6 / 75 creating object # 122 : IfcWall (arch) 7 k []
7 / 75 creating object # 125 : IfcOpeningElement (arch) skipped.
8 / 75 creating object # 139 : IfcWall (arch) 5 k []
9 / 75 creating object # 142 : IfcOpeningElement (arch) skipped.
10 / 75 creating object # 160 : IfcWall (arch) 5 k []
11 / 75 creating object # 163 : IfcOpeningElement (arch) skipped.
12 / 75 creating object # 181 : IfcWall (arch) 2 k []
13 / 75 creating object # 194 : IfcWall (arch) 24 k []
14 / 75 creating object # 197 : IfcOpeningElement (arch) skipped.
15 / 75 creating object # 229 : IfcOpeningElement (arch) skipped.
16 / 75 creating object # 261 : IfcOpeningElement (arch) skipped.
17 / 75 creating object # 293 : IfcOpeningElement (arch) skipped.
18 / 75 creating object # 325 : IfcOpeningElement (arch) skipped.
19 / 75 creating object # 343 : IfcWall (arch) 5 k []
20 / 75 creating object # 346 : IfcOpeningElement (arch) skipped.
21 / 75 creating object # 354 : IfcWall (arch) 5 k []
22 / 75 creating object # 357 : IfcOpeningElement (arch) skipped.
23 / 75 creating object # 371 : IfcWall (arch) 6 k []
24 / 75 creating object # 374 : IfcOpeningElement (arch) skipped.
25 / 75 creating object # 388 : IfcWall (arch) 6 k []
26 / 75 creating object # 391 : IfcOpeningElement (arch) skipped.
27 / 75 creating object # 405 : IfcWall (arch) 6 k []
28 / 75 creating object # 408 : IfcOpeningElement (arch) skipped.
29 / 75 creating object # 422 : IfcWall (arch) 5 k []
30 / 75 creating object # 425 : IfcOpeningElement (arch) skipped.
31 / 75 creating object # 439 : IfcWall (arch) 5 k []
32 / 75 creating object # 442 : IfcOpeningElement (arch) skipped.
33 / 75 creating object # 456 : IfcWall (arch) 6 k []
34 / 75 creating object # 459 : IfcOpeningElement (arch) skipped.
35 / 75 creating object # 473 : IfcWall (arch) 6 k []
36 / 75 creating object # 476 : IfcOpeningElement (arch) skipped.
37 / 75 creating object # 490 : IfcWall (arch) 6 k []
38 / 75 creating object # 493 : IfcOpeningElement (arch) skipped.
39 / 75 creating object # 507 : IfcWall (arch) 6 k []
40 / 75 creating object # 510 : IfcOpeningElement (arch) skipped.
41 / 75 creating object # 524 : IfcWall (arch) 6 k []
42 / 75 creating object # 527 : IfcOpeningElement (arch) skipped.
43 / 75 creating object # 541 : IfcWall (arch) 6 k []
44 / 75 creating object # 544 : IfcOpeningElement (arch) skipped.
45 / 75 creating object # 558 : IfcWall (arch) 6 k []
46 / 75 creating object # 561 : IfcOpeningElement (arch) skipped.
47 / 75 creating object # 575 : IfcWall (arch) 6 k []
48 / 75 creating object # 578 : IfcOpeningElement (arch) skipped.
49 / 75 creating object # 592 : IfcWall (arch) 6 k []
50 / 75 creating object # 595 : IfcOpeningElement (arch) skipped.
51 / 75 creating object # 609 : IfcWall (arch) 6 k []
52 / 75 creating object # 612 : IfcOpeningElement (arch) skipped.
53 / 75 creating object # 626 : IfcWall (arch) 6 k []
54 / 75 creating object # 629 : IfcOpeningElement (arch) skipped.
55 / 75 creating object # 643 : IfcWall (arch) 6 k []
56 / 75 creating object # 646 : IfcOpeningElement (arch) skipped.
57 / 75 creating object # 660 : IfcWall (arch) 6 k []
58 / 75 creating object # 663 : IfcOpeningElement (arch) skipped.
59 / 75 creating object # 677 : IfcWall (arch) 6 k []
60 / 75 creating object # 680 : IfcOpeningElement (arch) skipped.
61 / 75 creating object # 696 : IfcColumn (arch) 2 k []
62 / 75 creating object # 699 : IfcOpeningElement (arch) skipped.
63 / 75 creating object # 707 : IfcColumn (arch) 2 k []
64 / 75 creating object # 710 : IfcOpeningElement (arch) skipped.
65 / 75 creating object # 718 : IfcColumn (arch) 2 k []
66 / 75 creating object # 721 : IfcOpeningElement (arch) skipped.
67 / 75 creating object # 729 : IfcColumn (arch) 2 k []
68 / 75 creating object # 732 : IfcOpeningElement (arch) skipped.
69 / 75 creating object # 740 : IfcColumn (arch) 1 k []
70 / 75 creating object # 747 : IfcColumn (arch) 1 k []
71 / 75 creating object # 760 : IfcSlab (arch) 2 k []
72 / 75 creating object # 824 : IfcGrid (arch) no brep []
73 / 75 creating object # 825 : IfcSite (arch) no brep []
74 / 75 creating object # 827 : IfcBuilding (arch) no brep
75 / 75 creating object # 829 : IfcBuildingStorey (arch) no brep
Processing Struct relationships...done
Processing Arch relationships...adding 1 object(s) to Default Site
adding 1 object(s) to Default Building
adding 37 object(s) to Default Storey
done.
('Failed to rebuild a valid solid for object ', 'Axis_System')
Creating 2D geometry...done.
Finished importing.
- Attachments
-
- ifc_imported.FCStd
- (175.97 KiB) Downloaded 72 times
Re: ifc import error
Yepp, that is as expected.I was able to import the file, but I don't know how complete the import process was. It does not look entirely complete.
Don't think it really is a freecad issue.
Maybe some python config or other config on my machines, running Ubuntu 16.04 LTS.
Do not have these issue on other OS.
Really don't know where to dig
regards
Re: ifc import error
IFC is always a problematic subject, being with FreeCAD or not (people using Revit or ArchiCAD or Tekla will suffer just as much, if not more ).
What I would always recommend:
1) Make sure the IFC file you export from FreeCAD contains all the objects you want. FreeCAD will print in the output panel the number of objects it is writing to the file. By opening the file in IFC++ or any other IFC viewer, one can check if the objects number match.
2) Make sure all the geometry is okay in "intermediate" applications (viewers). Some BIM apps like Revit (or even FreeCAD, more rarely but it happens) choke on some IFC objects and don't render them correctly. However, if the file appears correctly in IFC++ and/or other viewers, you can assume the IFC file is correct, and the problem is in the application that imports it. That's already something.
3) Usually when I start working on a BIM model, I try to export it to IFC very early, and keep exporting from time to time. So if something goes wrong, I know it early. However IFC export in FreeCAD is becoming really stable, export problems are getting rare.
4) If some object gives geometric problems (ie. it is exported, but its geometry is wrong), it is very likely because the exporter tries to reproduce a complex situation that involves complex placement calculation (which can be pretty weird in IFC). Clones specially, give problems from time to time. A quick trick to"fix"it is to force the object to export as an IfcFacetedBrep object, which can be done in menu Arch->Utils->Toggle Brep flag. Then, the object gets exported as a solid made of faces instead of an extrusion or anything else. Some applications might like that less (Revit for ex. makes it less "editable"), but it is usually guaranteed to work.
What I would always recommend:
1) Make sure the IFC file you export from FreeCAD contains all the objects you want. FreeCAD will print in the output panel the number of objects it is writing to the file. By opening the file in IFC++ or any other IFC viewer, one can check if the objects number match.
2) Make sure all the geometry is okay in "intermediate" applications (viewers). Some BIM apps like Revit (or even FreeCAD, more rarely but it happens) choke on some IFC objects and don't render them correctly. However, if the file appears correctly in IFC++ and/or other viewers, you can assume the IFC file is correct, and the problem is in the application that imports it. That's already something.
3) Usually when I start working on a BIM model, I try to export it to IFC very early, and keep exporting from time to time. So if something goes wrong, I know it early. However IFC export in FreeCAD is becoming really stable, export problems are getting rare.
4) If some object gives geometric problems (ie. it is exported, but its geometry is wrong), it is very likely because the exporter tries to reproduce a complex situation that involves complex placement calculation (which can be pretty weird in IFC). Clones specially, give problems from time to time. A quick trick to"fix"it is to force the object to export as an IfcFacetedBrep object, which can be done in menu Arch->Utils->Toggle Brep flag. Then, the object gets exported as a solid made of faces instead of an extrusion or anything else. Some applications might like that less (Revit for ex. makes it less "editable"), but it is usually guaranteed to work.
Re: ifc import error
Did a fresh install of Linux Yesterday
problem persists
System Hangs
Also Attached IFC file produced from FreeCad
Same file imports ok in other programs,
Also it imports in Freecad running on Win
This problem persists, regardless of file size
Regards
OS: Ubuntu 18.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git)
Build type: None
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.15rc1
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
problem persists
System Hangs
Also Attached IFC file produced from FreeCad
Same file imports ok in other programs,
Also it imports in Freecad running on Win
This problem persists, regardless of file size
Regards
OS: Ubuntu 18.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git)
Build type: None
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.15rc1
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Re: ifc import error
There is probably a occt conflict between IfcOpenShell and FreeCAD.
It works for me with a self-compiled (new today) build and install of IfcOpenShell.
OS: Ubuntu 14.04.5 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14432 (Git)
Build type: None
Branch: master
Hash: 0252e491d5564e94ed8b1ba6d9b1e5b2a6c54483
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
OS: Ubuntu 14.04.5 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git)
Build type: None
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
"fight the good fight"
Re: ifc import error
Freecad hangs system when trying to import ifc file
Problem persists
Have a hunch it might have to do with locale settings?
Any ideas?
Code: Select all
OS: Ubuntu 18.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git)
Build type: None
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.15rc1
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Have a hunch it might have to do with locale settings?
Code: Select all
peter@peter-HP-Z400-Workstation:~$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=nb_NO.UTF-8
LC_TIME=nb_NO.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=nb_NO.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=nb_NO.UTF-8
LC_NAME=nb_NO.UTF-8
LC_ADDRESS=nb_NO.UTF-8
LC_TELEPHONE=nb_NO.UTF-8
LC_MEASUREMENT=nb_NO.UTF-8
LC_IDENTIFICATION=nb_NO.UTF-8
LC_ALL=
Last edited by cadgiru on Thu Sep 06, 2018 8:41 am, edited 1 time in total.
Re: ifc import error
Tried to follow https://github.com/IfcOpenShell/IfcOpenShell 2b)compiling oce
After roughly 1hour, I get a bunch of errors..
Next I found https://github.com/IfcOpenShell/IfcOpen ... eLists.txt for compiling on Ubuntu 18.04
cmake then gave me this:
Code: Select all
peter@peter-HP-Z400-Workstation:~/oce/build$ cmake ..
-- BINDIR: /usr/local/bin
-- INCLUDEDIR: /usr/local/include
-- LIBDIR: /usr/local/lib
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- system
-- program_options
-- regex
-- thread
-- date_time
-- chrono
-- atomic
-- Boost include files found in /usr/include
-- Boost libraries found in /usr/lib/x86_64-linux-gnu
-- Looking for Open CASCADE include files in: /usr/include/oce
CMake Error at CMakeLists.txt:180 (MESSAGE):
If anybody can make any sense of this, it would be much appreciated
regards
Last edited by cadgiru on Thu Sep 06, 2018 8:42 am, edited 1 time in total.