mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 11:24:19 +00:00
set set/get_description, add view_definitions & tests
This commit is contained in:
committed by
Thomas Krijnen
parent
cbe8fc1ebd
commit
d401e4c948
@@ -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]]:
|
||||
|
||||
Reference in New Issue
Block a user