mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Minor fix
This commit is contained in:
@@ -670,9 +670,9 @@ class Spatial(blenderbim.core.tool.Spatial):
|
|||||||
relating_type = tool.Ifc.get().by_id(int(relating_type_id))
|
relating_type = tool.Ifc.get().by_id(int(relating_type_id))
|
||||||
ifc_class = relating_type.is_a()
|
ifc_class = relating_type.is_a()
|
||||||
instance_class = ifcopenshell.util.type.get_applicable_entities(ifc_class, tool.Ifc.get().schema)[0]
|
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)
|
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
|
@classmethod
|
||||||
def assign_relating_type_to_element(cls, ifc, Type, element, relating_type):
|
def assign_relating_type_to_element(cls, ifc, Type, element, relating_type):
|
||||||
|
|||||||
Reference in New Issue
Block a user