mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 13:04:49 +00:00
Minor fix. See #1547.
This commit is contained in:
@@ -13,11 +13,11 @@ class Usecase:
|
|||||||
def execute(self):
|
def execute(self):
|
||||||
self.settings["person"] = ifcopenshell.api.owner.settings.get_person(self.file)
|
self.settings["person"] = ifcopenshell.api.owner.settings.get_person(self.file)
|
||||||
self.settings["organisation"] = ifcopenshell.api.owner.settings.get_organisation(self.file)
|
self.settings["organisation"] = ifcopenshell.api.owner.settings.get_organisation(self.file)
|
||||||
|
application = ifcopenshell.api.owner.settings.get_application(self.file)
|
||||||
if self.file.schema != "IFC2X3":
|
if self.file.schema != "IFC2X3":
|
||||||
if not self.settings["person"] or not self.settings["organisation"]:
|
if not self.settings["person"] or not self.settings["organisation"] or not application:
|
||||||
return
|
return
|
||||||
user = self.get_user()
|
user = self.get_user()
|
||||||
application = ifcopenshell.api.owner.settings.get_application(self.file)
|
|
||||||
return self.file.create_entity(
|
return self.file.create_entity(
|
||||||
"IfcOwnerHistory",
|
"IfcOwnerHistory",
|
||||||
**{
|
**{
|
||||||
|
|||||||
Reference in New Issue
Block a user