BIM: Support for NativeIFC in BimViews

This commit is contained in:
Yorik van Havre
2024-08-09 15:34:51 +02:00
committed by Yorik van Havre
parent 6d733f15ff
commit b09de64543
4 changed files with 66 additions and 6 deletions

View File

@@ -132,7 +132,7 @@ def autogroup(obj):
if Gui.ActiveDocument.ActiveView.getActiveObject("NativeIFC") is not None:
# NativeIFC handling
try:
import ifc_tools
from nativeifc import ifc_tools
parent = Gui.ActiveDocument.ActiveView.getActiveObject("NativeIFC")
if parent != active_group:
ifc_tools.aggregate(obj, parent)