BIM Workbench

A forum dedicated to the Draft, Arch and BIM workbenches development.
alex_V
Posts: 17
Joined: Wed Aug 08, 2018 5:25 pm

Re: BIM Workbench

Postby alex_V » Sat Jul 13, 2019 1:59 pm

yorik wrote:
Fri Jul 12, 2019 2:36 pm
What server?
Sorry, I mean a external server, like BIM Server or similar that could manage this process trough a FreeCAD api or similar.
User avatar
dimitar
Posts: 125
Joined: Thu Jun 13, 2019 6:10 am
Location: UK
Contact:

Re: BIM Workbench

Postby dimitar » Sun Jul 14, 2019 10:41 pm

alex_V wrote:
Tue Jul 09, 2019 9:42 pm
hi guys,
What do you think is the best solution to deal with the size of the files? Currently I am able to connect to my BIM Server (1.5) and keep the session open, then select my project and the revision that I want to download. (I divided the process in 3 steps since FreeCAD crashes dealing with big projects). But my main problem is importing the IFC file, sometimes it takes a really long time, so if I have 2 or more architects working on the same project it would take ages to download, convert to IFC, import the IFC to FreeCAD, and then the other way around.

I really don't know how we can have a single file (project) that could be shared with the users. I thought BIM and IFC could be the answer but i am a little bit lost about how to do it, what do you guys think?
Slightly sidetracking (sorry), but how do you set up bimserver and or other collaborative environments in freecad?

And a noob question - can IFC files be directly linked into Freecad?
User avatar
Kunda1
Posts: 4778
Joined: Thu Jan 05, 2017 9:03 pm

Re: BIM Workbench

Postby Kunda1 » Mon Jul 15, 2019 11:01 am

@yorik, just FYI when running test framework on the below FC appimage this is what I see when it opens the BIM WB:
Image

OS: Manjaro Linux (XFCE/xfce)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17349 (Git) AppImage
Build type: Release
Branch: master
Hash: 7eccda34d090ab641b29fa4be24c515cfa39c601
Python version: 3.7.3
Qt version: 5.9.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
bernd
Posts: 8035
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: BIM Workbench

Postby bernd » Mon Jul 15, 2019 3:06 pm

yorik wrote:
Thu Jul 11, 2019 3:19 pm
Actually that's another point to optimize, the giant parsing operation that starts at https://github.com/FreeCAD/FreeCAD/blob ... FC.py#L340 is inefficient and takes a lot of time. We could optimize that a lot by using the inverse attributes of IFC objects, that IfcOpenShell now supports very well
Yorik, would it be possible to give a short example how this works ? You may be did already but I can not find it.

bernd
User avatar
bernd
Posts: 8035
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: BIM Workbench

Postby bernd » Mon Jul 15, 2019 3:09 pm

bernd wrote:
Mon Jul 15, 2019 3:06 pm
yorik wrote:
Thu Jul 11, 2019 3:19 pm
Actually that's another point to optimize, the giant parsing operation that starts at https://github.com/FreeCAD/FreeCAD/blob ... FC.py#L340 is inefficient and takes a lot of time. We could optimize that a lot by using the inverse attributes of IFC objects, that IfcOpenShell now supports very well
Yorik, would it be possible to give a short example how this works ? You may be did already but I can not find it.

bernd
https://forum.freecadweb.org/viewtopic. ... 60#p291601 I really need to play with this ...
User avatar
yorik
Site Admin
Posts: 11385
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: BIM Workbench

Postby yorik » Mon Jul 15, 2019 8:58 pm

Basically at the moment we have many for...in... loops that scan the whole IFC file contents to extract relationships. However, IFC object can inform themselves of their relationships, thanks to inverse attributes. So the idea would be to, for example, for each of the relationships dictionaries created at file opening, find each place where they are used in the code, and replace with the appropriate relationship attribute.
Kunda1 wrote:
Mon Jul 15, 2019 11:01 am
@yorik, just FYI when running test framework on the below FC appimage this is what I see when it opens the BIM WB:
Oh right... we now have a test that activates each installed workbench... I'll see what can be done there
User avatar
yorik
Site Admin
Posts: 11385
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: BIM Workbench

Postby yorik » Sun Jul 21, 2019 10:03 pm

Ok this should be solved now
User avatar
Kunda1
Posts: 4778
Joined: Thu Jan 05, 2017 9:03 pm

Re: BIM Workbench

Postby Kunda1 » Mon Jul 22, 2019 12:05 pm

yorik wrote:
Sun Jul 21, 2019 10:03 pm
Ok this should be solved now
Will test when new appimage comes out (~1 week from now)
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features