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):