mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 03:33:48 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user