diff --git a/src/ifcopenshell-python/ifcopenshell/file.py b/src/ifcopenshell-python/ifcopenshell/file.py index b8c6f86cf0..45869dd600 100644 --- a/src/ifcopenshell-python/ifcopenshell/file.py +++ b/src/ifcopenshell-python/ifcopenshell/file.py @@ -690,3 +690,6 @@ class file: @staticmethod def from_pointer(v) -> "file": return file_dict.get(v)() + + def to_string(self) -> str: + return self.wrapped_data.to_string()