This commit is contained in:
Andrej730
2024-12-23 11:35:48 +05:00
parent 6dfb25862c
commit 170b6fc67e
5 changed files with 38 additions and 104 deletions
+1 -1
View File
@@ -628,7 +628,7 @@ class file:
def __iter__(self) -> Generator[ifcopenshell.entity_instance, None, None]:
return iter(self[id] for id in self.wrapped_data.entity_names())
def assign_header_from(self, other):
def assign_header_from(self, other: ifcopenshell.file) -> None:
for k, vs in HEADER_FIELDS.items():
for v in vs:
setattr(getattr(self.header, k), v, getattr(getattr(other.header, k), v))