assign default container on assigning IfcAnnotation class

Currently if you create a IfcAnnotation it might just get lost as it's not assigned anywhere. Also noticed this since previously we allowed using bim.add_reference_image without any specific drawings.
This commit is contained in:
Andrej730
2024-08-02 14:06:18 +05:00
parent 94e9e945d7
commit 143e094db8
+1 -1
View File
@@ -173,7 +173,7 @@ class Root(blenderbim.core.tool.Root):
@classmethod @classmethod
def is_containable(cls, element: ifcopenshell.entity_instance) -> bool: def is_containable(cls, element: ifcopenshell.entity_instance) -> bool:
return element.is_a("IfcElement") or element.is_a("IfcGrid") return element.is_a("IfcElement") or element.is_a("IfcAnnotation") or element.is_a("IfcGrid")
@classmethod @classmethod
def is_element_a(cls, element: ifcopenshell.entity_instance, ifc_class: str) -> bool: def is_element_a(cls, element: ifcopenshell.entity_instance, ifc_class: str) -> bool: