Minor fix

This commit is contained in:
Massimo Fabbro
2023-11-13 21:28:07 +01:00
committed by Massimo Fabbro
parent cf65612a96
commit b792673f88
+2 -2
View File
@@ -670,9 +670,9 @@ class Spatial(blenderbim.core.tool.Spatial):
relating_type = tool.Ifc.get().by_id(int(relating_type_id))
ifc_class = relating_type.is_a()
instance_class = ifcopenshell.util.type.get_applicable_entities(ifc_class, tool.Ifc.get().schema)[0]
bpy.ops.bim.assign_class(obj=obj.name, ifc_class=instance_class)
bpy.ops.bim.assign_class(obj = obj.name, ifc_class = instance_class)
element = tool.Ifc.get_entity(obj)
blenderbim.core.type.assign_type(tool.Ifc, tool.Type, element=element, type=relating_type)
tool.Ifc.run("type.assign_type", related_object = element, relating_type = relating_type)
@classmethod
def assign_relating_type_to_element(cls, ifc, Type, element, relating_type):