append_asset - fix duplicated applications/organizations/pao

Noticed when starting new project with demo library it had 29 duplicated IfcApplications...
This commit is contained in:
Andrej730
2025-03-28 15:27:42 +05:00
parent 81b5fc30c7
commit c58b84ddb5
3 changed files with 138 additions and 5 deletions
@@ -151,6 +151,7 @@ class LibraryGenerator:
application = ifcopenshell.api.owner.add_application(
self.file, application_full_name="Bonsai", application_identifier="Bonsai"
)
# Override Bonsai methods for duration of the script.
ifcopenshell.api.owner.settings.get_user = lambda x: user
ifcopenshell.api.owner.settings.get_application = lambda x: application