B
by bernd on 4 Apr 2024, edited 5 Apr 2024
#
Attached a screen from a TreeView. Is it somehow possible to change the order "IfcClass"/"Name" of an object in TreeView, or even omit the "IfcClass" totally and only show the Name in Tree View?
Has it been ever disscussesd to add another container for the IfcClass unter the Storey and put the objects inside them? Some Viewers work that way and IMHO it is helpful.

B
by bernd on 4 Apr 2024, edited 4 Apr 2024
#
it is hard coded ... https://github.com/IfcOpenShell/IfcOpenShell/blob/5c365990b9248b6a0443f54b0ead734affab1235/src/blenderbim/blenderbim/tool/loader.py#L70 ... but just changing it there results in a mix because there are a lot objects which do not use this method
like this https://github.com/IfcOpenShell/IfcOpenShell/blob/5c365990b9248b6a0443f54b0ead734affab1235/src/blenderbim/blenderbim/bim/import_ifc.py#L1112 or https://github.com/IfcOpenShell/IfcOpenShell/blob/5c365990b9248b6a0443f54b0ead734affab1235/src/blenderbim/blenderbim/bim/import_ifc.py#L788 ... and many more
seach for "new(" in code file import_ifc
M
by Moult on 4 Apr 2024
#
Unfortunately yes it is a legacy aspect of the code (it was there since day 1). It is slowly being stripped out into its own function for exactly the reasons you mention. If you help continue refactoring it that would be much appreciated.
The second aspect you mention is the ability to have a custom collection hierarchy. Yes, this is actually already half built but it needs more testing and development. In advanced mode there are decomposition modes you can choose from. At the moment only a couple are implemented but it is agnostic so more can be implemented in the future. Again, this is a legacy aspect and the intention is to change, but it's never been a high enough priority to focus on.
B
by bernd on 4 Apr 2024
#
thanks for the information ...
Just realized linked models do not have the tree. ATM I mainly use the linked models because of multiple ifc loading. For the moment I will continue to use BBIM ... Before starting to hack on something I need to find my way through all this BBIM to know what is most important for me
B
by bernd on 5 Apr 2024, edited 5 Apr 2024
#
@Moult said:
If you help continue refactoring it that would be much appreciated.
how about this ... https://github.com/IfcOpenShell/IfcOpenShell/pull/4517