mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Minor fix
This commit is contained in:
committed by
Massimo Fabbro
parent
cf65612a96
commit
b792673f88
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user