Modelling for IFC export

This forum section is only for IFC-related issues
User avatar
sgrogan
Posts: 5644
Joined: Wed Oct 22, 2014 5:02 pm

Re: Modelling for IFC export

Postby sgrogan » Sat Sep 29, 2018 6:22 pm

Yes, cmake-gui is my friend. On Kubuntu 14.04 mine looks like this after setting some paths
ifc.png
ifc.png (99.85 KiB) Viewed 255 times
Some highlights are the source dir is the cmake sub directory.
The other key is to get the occt paths right. Notice on Ubuntu the .libs are in the multi-arch directory.
paullee
Posts: 2150
Joined: Wed May 04, 2016 3:58 pm

Re: Modelling for IFC export

Postby paullee » Sat Sep 29, 2018 11:44 pm

sgrogan wrote:
Sat Sep 29, 2018 6:22 pm
Yes, cmake-gui is my friend. On Kubuntu 14.04 mine looks like this after setting some paths
ifc.png

Some highlights are the source dir is the cmake sub directory.
The other key is to get the occt paths right. Notice on Ubuntu the .libs are in the multi-arch directory.
Thanks, the build-all.py (with change aothms /IfcOpenShell suggested) finally run on my Fedora 27.

It is huge - ~ 21-22G !!! The IfcOpenShell-Python downloaded is only 16.8M - There is almost 21G I do not need !?


So I do not need to run build-all.py script and run cmake-gui directly ?
paullee
Posts: 2150
Joined: Wed May 04, 2016 3:58 pm

Re: Modelling for IFC export

Postby paullee » Sat Sep 29, 2018 11:51 pm

I remember I should have one time use this cmake-gui..... for ifcPlusPlus?

I locate the 'source code' as you do, guess I should press Configure...

... then there is Error message ' unable to find header files, aborting'

... maybe opening/digging out another thread on IfcOpenShell compilation for further discussion.
Screenshot from 2018-09-30 07-47-54.png
Screenshot from 2018-09-30 07-47-54.png (127.78 KiB) Viewed 248 times
paullee
Posts: 2150
Joined: Wed May 04, 2016 3:58 pm

Re: Modelling for IFC export

Postby paullee » Sun Sep 30, 2018 12:00 am

yorik wrote:
Sat Sep 29, 2018 2:41 pm

The case of "complex" sketches is complicated. Internally, an Arch wall built on such a complex sketch will build a wall on each wire found in the sketch, then union those wires. So the IFC exporter doesn't have a 2D profile to extrude. Maybe as a quick workaround we could force-export these walls as breps. But I am still not sure what would be a better solution...
I thought I have pressed 'submit' on below earlier but it is not here...so re-post...


I am more interested in this case - I attempt to look at the IfcExport.py and failed to understand of cos :oops:

Just thinking if this make sense:-
- ArchWall seems generate base 2d profiles for each wires it get (getExtursion) ... then union them for extrusion
- So can IfcExport just export those 2d profiles one by one (with same extrusion)
- I look at the *.ifc file withe the 'simple' sketch : it seem there is a complete 'polyline' description
paullee
Posts: 2150
Joined: Wed May 04, 2016 3:58 pm

Re: Modelling for IFC export

Postby paullee » Sun Sep 30, 2018 1:43 am

sgrogan wrote:
Sat Sep 29, 2018 6:22 pm
Yes, cmake-gui is my friend. On Kubuntu 14.04 mine looks like this after setting some paths
ifc.png
After hours of build_all.py, there seems no Python 2.7.6 only Python-2.7.12 version compiled...

EDIT:
seem copying _ifcopenshell_wrapper.so ifcopenshell_wrapper.py does not work

Console just return IfcOpenShell is not available...

OK, turn out the folder need to be all lowercase 'ifcopenshell', it works now. Thanks :)
User avatar
yorik
Site Admin
Posts: 11701
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Modelling for IFC export

Postby yorik » Mon Oct 01, 2018 3:12 pm

paullee wrote:
Sun Sep 30, 2018 12:00 am
- ArchWall seems generate base 2d profiles for each wires it get (getExtursion) ... then union them for extrusion
- So can IfcExport just export those 2d profiles one by one (with same extrusion)
Actually I just had a better look, it does that already. But there is some weird behaviour that doesn't union the faces correctly... Needs some further investigation
paullee
Posts: 2150
Joined: Wed May 04, 2016 3:58 pm

Re: Modelling for IFC export

Postby paullee » Mon Oct 01, 2018 5:51 pm

yorik wrote:
Mon Oct 01, 2018 3:12 pm
Actually I just had a better look, it does that already. But there is some weird behaviour that doesn't union the faces correctly... Needs some further investigation
Thanks, hope I can understand more of the code myself later :)