IFC import in Linux mint doesn't work.

This forum section is only for IFC-related issues
User avatar
regis
Posts: 751
Joined: Sun Jul 12, 2015 8:17 am
Contact:

Re: IFC import in Linux mint doesn't work.

Post by regis »

paullee wrote: Sun Dec 10, 2017 6:26 pm some progress in Fedora, no more complain on compiling.
It worked right outside the box for you? withiout any code playing or strange installations?
paullee
Veteran
Posts: 5136
Joined: Wed May 04, 2016 3:58 pm

Re: IFC import in Linux mint doesn't work.

Post by paullee »

regis wrote: Sun Dec 10, 2017 9:11 pm
paullee wrote: Sun Dec 10, 2017 6:26 pm some progress in Fedora, no more complain on compiling.
It worked right outside the box for you? withiout any code playing or strange installations?
Kind of... found cmake-gui help.

Bernd's post more than one year ago and IfcOpenShell README.md :-
https://forum.freecadweb.org/viewtopic. ... f&start=10
https://github.com/IfcOpenShell/IfcOpenShell

Seem my problem somehow at some earlier point was similar to sergiobini (freezing) but now seem different - a problem between Linux Mint and Fedora? I am checking IfcOpenShell, not much on Fedora in fact...

See screencapture on the setting in cmake-gui... hope it helps.
Screenshot from 2017-12-12 02-07-48.png
Screenshot from 2017-12-12 02-07-48.png (165.33 KiB) Viewed 1808 times
User avatar
sergiobini
Posts: 17
Joined: Thu Nov 23, 2017 3:49 pm
Location: Italy
Contact:

Re: IFC import in Linux mint doesn't work.

Post by sergiobini »

Sorry,
this is the file i was talking about
Attachments
kitchen_cabinet_58x60x90_classic_line_0.ifc
(63.34 KiB) Downloaded 124 times
paullee
Veteran
Posts: 5136
Joined: Wed May 04, 2016 3:58 pm

Re: IFC import in Linux mint doesn't work.

Post by paullee »

sergiobini wrote: Tue Dec 12, 2017 11:41 am Sorry,
this is the file i was talking about
I just used the ifcopenshell 0.5.0-preview2 and compile
(EDIT: note again i am on Fedora - problem may be platform specific)

I am not sure the above make some difference - my attempt to export and reimport a simple wall and window still have problem - only window is re-imported...

But i try your file, the cabinet is there (though not shown in the Equipment object, but need to turn on the underlying shape object)

BTW, any recommendation on ifcviewer in linux?
Screenshot from 2017-12-13 04-18-34.png
Screenshot from 2017-12-13 04-18-34.png (185.55 KiB) Viewed 1769 times
paullee
Veteran
Posts: 5136
Joined: Wed May 04, 2016 3:58 pm

Re: IFC import in Linux mint doesn't work.

Post by paullee »

As I said in last post, I just used the ifcopenshell 0.5.0-preview2 and compile - in Fedora 25 which have oce.

I also get AppImage to my understanding use occ kind of 'built-in'.


My attempt to export and reimport a simple wall and window still have problem - only window is re-imported.


Need to have an IFCviewer on linux to see if export always have problem.

Thanks for any idea?

Screenshot from 2017-12-13 04-25-01.png
Screenshot from 2017-12-13 04-25-01.png (194.67 KiB) Viewed 1767 times
Screenshot from 2017-12-13 04-25-40.png
Screenshot from 2017-12-13 04-25-40.png (199.72 KiB) Viewed 1767 times

AppImage

OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12802 (Git)
Build type: None
Branch: master
Hash: 91bb7ed0c51ba47f011199af7bc0a3a2964cf5be
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)


Fedora Przemof Repo
OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12435 (Git)
Build type: Unknown
Branch: master
Hash: 725a5b6545e41654595ed54ed2b9f4a55aa6ca1b
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.8.0.oce-0.17
Locale: English/UnitedStates (en_US)
Attachments
Test_ Arch Wall & Window Opening_17_ Linux_ Wall with openings_ use 0.50rc_ 3 _0.17_PrzemofRepo_oce.ifc
(8.7 KiB) Downloaded 59 times
Test_ Arch Wall & Window Opening_16_ Linux_ Wall with openings_ use 0.50rc_ 2.ifc
(8.87 KiB) Downloaded 126 times
Test _ Ifc export import_ Wall & Window_ 01.fcstd
(12.79 KiB) Downloaded 124 times
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: IFC import in Linux mint doesn't work.

Post by yorik »

The IFC viewer I use on linux if ifcplusplus, works pretty well. Usually if a file imports in it without error, then it's a good file.
Indeed a first important step is to look if the IFC file has a problem, or the FreeCAD IFC importer.
paullee
Veteran
Posts: 5136
Joined: Wed May 04, 2016 3:58 pm

Re: IFC import in Linux mint doesn't work.

Post by paullee »

yorik wrote: Wed Dec 13, 2017 1:34 pm The IFC viewer I use on linux if ifcplusplus, works pretty well. Usually if a file imports in it without error, then it's a good file.
Indeed a first important step is to look if the IFC file has a problem, or the FreeCAD IFC importer.
Thanks!

This site right? - https://github.com/ifcquery/ifcplusplus
Seems needs to try compile again :)


BTW, I visited site below some time ago http://www.ifcwiki.org/index.php/Open_Source- they have the ifcplusplus 'outdated' http://www.ifcplusplus.com/. I thought the software no longer exist as it lead to some japanese website.



Thanks anyway.
Screenshot from 2017-12-13 21-52-44.png
Screenshot from 2017-12-13 21-52-44.png (217.91 KiB) Viewed 1744 times
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: IFC import in Linux mint doesn't work.

Post by Kunda1 »

paullee wrote: Wed Dec 13, 2017 1:57 pm BTW, I visited site below some time ago http://www.ifcwiki.org/index.php/Open_Source- they have the ifcplusplus 'outdated' http://www.ifcplusplus.com/. I thought the software no longer exist as it lead to some japanese website.
Seems like there is still activity on the ifcplusplus repo though: https://github.com/ifcquery
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
paullee
Veteran
Posts: 5136
Joined: Wed May 04, 2016 3:58 pm

Re: IFC import in Linux mint doesn't work.

Post by paullee »

Yes, i found the correct / updated site. Thanks.


p.s.
Off-topic info for reference, hope it helps:

- I try to compile on Fedora 25 the source from IfcPlusPlus:
> It failed as it require CMake3.9.4, QT etc. etc., F25 only have something like 3.9.4
. (force install 3.9.4 ok, but can't do with QT etc.)

- Then I find Bernd's thread and repo https://forum.freecadweb.org/viewtopic. ... &start=100:
> Which fail too with some log... will try harder


...
-- Linux OS --> Qt4 is used
CMake Error at /usr/share/cmake/Modules/FindQt4.cmake:1318 (message):
Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
SimpleViewerExample/CMakeLists.txt:18 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/home/paullee/IfcPlusPlus-master_Bernd-repo/build/CMakeFiles/CMakeOutput.log".
paullee
Veteran
Posts: 5136
Joined: Wed May 04, 2016 3:58 pm

Re: IFC import in Linux mint doesn't work.

Post by paullee »

Hi, with help from Twohot and Bernd, ifc++ 'kind of' works!

Found the files I test output + input = already have no wall! (Reading the content of file also find no word about 'wall'). Only windows as they were imported in FreeCAD.

So as of now, for my Fedora 25:-

- Export works only for window object only (?), wall sort of disappear
- Seem import (the) window and sergiobini's cabinet are both okay
- Import ifc++ IfcOpenHouse.ifc: have apparently roof not working
- Would test more

Linux Mint
- Seem import not yet ok(?)

Screenshot from 2017-12-15 01-42-16.png
Screenshot from 2017-12-15 01-42-16.png (75.83 KiB) Viewed 1696 times
Screenshot from 2017-12-15 02-00-43.png
Screenshot from 2017-12-15 02-00-43.png (187.3 KiB) Viewed 1696 times
Post Reply