LOD with Documents and Libraries
Hi all,
As a followup of https://community.osarch.org/discussion/comment/24846#Comment_24846 here is a proposal to use documents and libraries applied to IFC files within a project.
First I have created a Document Libraries panel that closely mimics the Document panel. The reason behind is that they are very similar:
- IFC Document: IfcDocumentInformation, IfcDocumentReference, IfcRelAssociatesDocument, IfcDocumentInformationRelationship
- IFC Library: IfcLibraryInformation, IfcLibraryReference, IfcRelAssociatesLibrary
Document and Library
So except for the IfcDocumentInformationRelationship, the rest has a similar object behaviour.
I have also added two ways to see how objects and documents/libraries are RelAssociated:
1. Project Overview - Project Setup panel - Documents/Document Libraries. For a given document/library (of both information or reference) you can see the objects assigned to it:
2. Object Information - Misc - Documents/Document Libraries. For the selected object you can see the documents/Libraries (both information or reference) assigned to it:
In the case that a location has been provided to the document/library, then you have the posibility to either open it in a web browser or it it is an IFC file to open it in an independent blender instance
Finally there is a context menu that whn you right click when a single object is selected, provides a quick submenu with the documents/libraries assigned to it
With all that in place. It is possible to do some level of organization of a project in differente LODs (or in general divide the project in different files linked between them with docs/libraries in ifc).
Example:
With this file structure and some files:
Here is a small video:
Please let me know your feedback so if the community agrees I can submit the corresponding PR.
Thanks!
Comments
Sorry, I got a little confused and couldn't follow.
I could understand how it works, but I couldn't understand the goal.
Are you using "documents" instead of "IFC link" to federate the models?
Is that the goal?
Can you make a simple video from the beginning? So I can better understand what the proposal is.
Can you show how to use it with libraries?
Thanks
@walpa Let me write some documentation about it to explain better.
The goal is as you say, use IfcDocumentInformation, IfcDocumentReference, IfcRelAssociatesDocument, IfcDocumentInformationRelationship and IfcLibraryInformation, IfcLibraryReference, IfcRelAssociatesLibrary to hold "federated" information using the IFC schema available resources. That is something that already is available in IfcOpenshell and in some Bonsai menus. This is just added UI aids to help speed up the workflow to attach references/information to external located docs/libraries (both in ifc format or other).
As a usecase of that document/library referencing possibility you can do a simple LOD implementation
The IFC Link in Bonsai is in fact using IfcDocumentInformation: 'BBIM_Linked_Models' and within that you have IfcDocumentReference for each model that you link. AFAIK The IfcDocumentInformation is at root level, without possibility to IfcRelAssociatesDocument to particular objects.
So I would say that this complements the Bonsai IFC Link functionality by allowing you to establish a user defined tree of IfcDocumentInformation, IfcDocumentReference, IfcRelAssociatesDocument, IfcDocumentInformationRelationship and IfcLibraryInformation, IfcLibraryReference, IfcRelAssociatesLibrary for both IFC and non IFC files.
Cheers
@falken10vdl, Understood! Thank you very much. My vote for the PR.
I have redone the UI to be consistent with the "tree like" structure of groups. I have applied the same idea to documents and libraries.
Please find below a small video of them in action .
and attached the relevant documentation as a single html file (zipped).
Please provide your feedback.
Thanks!