From b6fa1759effabf5486cd53ee5539658ff8dafdae Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 4 Sep 2025 18:48:11 +0500 Subject: [PATCH] sqlite_entity - define `file` --- src/ifcopenshell-python/ifcopenshell/sql.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ifcopenshell-python/ifcopenshell/sql.py b/src/ifcopenshell-python/ifcopenshell/sql.py index fc7f7f8fa9..f73bb11cff 100644 --- a/src/ifcopenshell-python/ifcopenshell/sql.py +++ b/src/ifcopenshell-python/ifcopenshell/sql.py @@ -449,6 +449,10 @@ class sqlite_entity(entity_instance): info.update(self.sqlite_wrapper.attribute_cache) return info + @property + def file(self) -> sqlite: + return self.sqlite_wrapper.file + class sqlite_wrapper: def __init__(self, id: int, ifc_class: str, file: sqlite):