From 3a754c8eccc00eed21a2c7771a0c43180333d986 Mon Sep 17 00:00:00 2001 From: Jesusbill Date: Tue, 1 Jun 2021 16:33:47 +0200 Subject: [PATCH] fix of the fix n add_pset --- src/ifcopenshell-python/ifcopenshell/api/pset/add_pset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/pset/add_pset.py b/src/ifcopenshell-python/ifcopenshell/api/pset/add_pset.py index e9cd52ddf6..0953b4a162 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/pset/add_pset.py +++ b/src/ifcopenshell-python/ifcopenshell/api/pset/add_pset.py @@ -44,7 +44,7 @@ class Usecase: return pset elif self.settings["product"].is_a("IfcMaterialDefinition"): for definition in self.settings["product"].HasProperties or []: - if definition.Name == self.settings["Name"]: + if definition.Name == self.settings["name"]: return definition return self.file.create_entity(