diff --git a/src/ifcopenshell-python/ifcopenshell/api/owner/add_organisation.py b/src/ifcopenshell-python/ifcopenshell/api/owner/add_organisation.py index 6635fdcb8a..8e5583f0c3 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/owner/add_organisation.py +++ b/src/ifcopenshell-python/ifcopenshell/api/owner/add_organisation.py @@ -9,4 +9,7 @@ class Usecase: self.settings[key] = value def execute(self): - return self.file.create_entity("IfcOrganization", **self.settings) + if self.file.schema == "IFC2X3": + self.settings["Id"] = self.settings["Identification"] + del self.settings["Identification"] + return self.file.create_entity("IfcOrganization", **self.settings) \ No newline at end of file diff --git a/src/ifcopenshell-python/ifcopenshell/api/owner/add_person.py b/src/ifcopenshell-python/ifcopenshell/api/owner/add_person.py index f136af8d16..d19e98adfe 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/owner/add_person.py +++ b/src/ifcopenshell-python/ifcopenshell/api/owner/add_person.py @@ -10,4 +10,7 @@ class Usecase: self.settings[key] = value def execute(self): - return self.file.create_entity("IfcPerson", **self.settings) + if self.file.schema == "IFC2X3": + self.settings["Id"] = self.settings["Identification"] + del self.settings["Identification"] + return self.file.create_entity("IfcPerson", **self.settings) \ No newline at end of file