set set/get_description, add view_definitions & tests

This commit is contained in:
Geert Hesselink
2025-04-21 18:43:41 +01:00
committed by Thomas Krijnen
parent cbe8fc1ebd
commit d401e4c948
3 changed files with 40 additions and 19 deletions
+1 -3
View File
@@ -471,10 +471,8 @@ class file:
def mvd(self):
if not LARK_AVAILABLE:
return None
file_description = self.wrapped_data.header.file_description
return MvdInfo(
get_description=lambda: file_description.description,
set_description=lambda d: setattr(file_description, "description", tuple(d))
self.header
)
def __getattr__(self, attr) -> Union[Any, Callable[..., ifcopenshell.entity_instance]]: