Integration of BlenderBIM Features : FreeCAD Arch/BIM - Native IFC

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: Integration of BlenderBIM Feaures : FreeCAD Arch/BIM - Native IFC

Post by paullee »

Tested the latest update, works as in github readme :)

Noted there are 3 options on opening / importing:
  1. IFC
  2. IFC Native
  3. IFC BIM WB
Wondering what is the difference of the 3rd from the fomer 2 ?

Thanks.
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Integration of BlenderBIM Feaures : FreeCAD Arch/BIM - Native IFC

Post by yorik »

IFC is the old one.
BIM IFC is a work in progress I began, to transfer the IFC importer/exporter to the BIM WB. That would allow people to stay updated more easily. Currently it's almost the same as the "old" IFC
NativeIFC is the new one from NativeIFC

Indeed it's confusing... Ideally there would be only one.

What we could do:

1) If the BIM WB is installed, the BIM WB importer is used, transparently, without the user having to do anything. I see no reason why someone would want to use the older one, if the newer one is available.

2) The NativeIFC I don't know... I can imagine someone would still want to go back to the "classical" import for any reason. Maybe we still keep both, classical and native?

About shape and mesh modes... I'm actually in the process of removing the mesh mode. This will simplify everything a lot. Simply, there will be only one object type (shape-based) but you will have the possibility to switch the shape on or off (if off, only the coin representation is updated)
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: Integration of BlenderBIM Feaures : FreeCAD Arch/BIM - Native IFC

Post by paullee »

Thanks for the description. Indeed seems 2 options are enough, one does conversion, the another which is native does not :)
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Integration of BlenderBIM Feaures : FreeCAD Arch/BIM - Native IFC

Post by bernd »

I am late to the party ... But it is never to late ... This is something I have been dreaming for years. Use FreeCAD for native IFC including the viewer ...

Actually I have done this for years allready. Open a IFC in FreeCAD by parsing it by IfcOpenShell to have it in the python console and do some nice stuff. With this I have the viewer as well.

This is a game changer ... Great stuff yorik ... really fast ... Especially since I have tried Blender far from the first lines of BlenderBIM but never got happy with Blender ... I came back to FreeCAD all the time ... May be because I am an engineer and not a designer or architect :mrgreen: ...
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Integration of BlenderBIM Feaures : FreeCAD Arch/BIM - Native IFC

Post by bernd »

It is that fast, I can use FreeCAD as IFC-Viewer ... can not belive it ... :D

BTW: If FEM_ClippingPlaneAdd is used there are really fast cutting planes available in FreeCAD too ...


screen.png
screen.png (130.68 KiB) Viewed 2636 times
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Integration of BlenderBIM Feaures : FreeCAD Arch/BIM - Native IFC

Post by bernd »

just installed latest native IFC and get an error on save ...

Code: Select all

16:38:35  Traceback (most recent call last):
16:38:35    File "C:\Users\BHA\AppData\Roaming\FreeCAD\Mod\FreeCAD-NativeIFC\.\ifc_viewproviders.py", line 180, in save
16:38:35      ifc_tools.save_ifc(self.Object)
16:38:35    File "C:\Users\BHA\AppData\Roaming\FreeCAD\Mod\FreeCAD-NativeIFC\.\ifc_tools.py", line 627, in save_ifc
16:38:35      ifcfile = ifc_tools.get_ifcfile(obj)
16:38:35  NameError: name 'ifc_tools' is not defined
https://github.com/yorikvanhavre/FreeCA ... ls.py#L627

should be

Code: Select all

        ifcfile = get_ifcfile(obj)


just for those who would like to use it before yorik has fixed it.
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Integration of BlenderBIM Feaures : FreeCAD Arch/BIM - Native IFC

Post by bernd »

How can the ifcopenshell file object of a ifc opened with native IFC be accessed in FreeCAD Python console to interact with the opened IFC in Pythonconsole?
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: Integration of BlenderBIM Feaures : FreeCAD Arch/BIM - Native IFC

Post by paullee »

bernd wrote: Fri Feb 17, 2023 3:26 pm BTW: If FEM_ClippingPlaneAdd is used there are really fast cutting planes available in FreeCAD too ...
Wow! Hidden gem in FEM! :D

This should be in Arch/BIM wb! or even in View Menu?

Can it be an object in Tree, so user can adjust, e.g. its size, angle more precisely if desirable !


Screenshot from 2023-02-18 01-53-19.png
Screenshot from 2023-02-18 01-53-19.png (282.25 KiB) Viewed 2561 times
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Integration of BlenderBIM Feaures : FreeCAD Arch/BIM - Native IFC

Post by bernd »

paullee wrote: Fri Feb 17, 2023 5:56 pm This should be in Arch/BIM wb! or even in View Menu?
Years ago it started as a workaround because normal clipping plane does block the FreeCAD Gui. It was really needed to select solids inside solids. Thus I put it in FEM as very simple clipping plane.


paullee wrote: Fri Feb 17, 2023 5:56 pm Can it be an object in Tree, so user can adjust, e.g. its size, angle more precisely if desirable !
Not at the moment, but it would be possible. Needs development
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Integration of BlenderBIM Feaures : FreeCAD Arch/BIM - Native IFC

Post by bernd »

bernd wrote: Fri Feb 17, 2023 4:11 pm How can the ifcopenshell file object of a ifc opened with native IFC be accessed in FreeCAD Python console to interact with the opened IFC in Pythonconsole?
select the main native ifc object in tree ...

Code: Select all

 App.ActiveDocument.ActiveObject.Proxy.ifcfile

Code: Select all

>>> 
>>> App.ActiveDocument.ActiveObject.Proxy.ifcfile
<ifcopenshell.file.file object at 0x0000014896D73520>
>>> 
Post Reply