mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
Fixed test after 418444a
This commit is contained in:
@@ -177,7 +177,11 @@ class TestLoadPorts(NewFile):
|
|||||||
ifcopenshell.api.run("root.create_entity", ifc, ifc_class="IfcProject")
|
ifcopenshell.api.run("root.create_entity", ifc, ifc_class="IfcProject")
|
||||||
ifcopenshell.api.run("unit.assign_unit", ifc)
|
ifcopenshell.api.run("unit.assign_unit", ifc)
|
||||||
tool.Ifc().set(ifc)
|
tool.Ifc().set(ifc)
|
||||||
|
|
||||||
element = ifc.createIfcChiller()
|
element = ifc.createIfcChiller()
|
||||||
|
obj = bpy.data.objects.new("Object", None)
|
||||||
|
tool.Ifc.link(element, obj)
|
||||||
|
|
||||||
port = ifc.createIfcDistributionPort()
|
port = ifc.createIfcDistributionPort()
|
||||||
subject.load_ports(element, [port])
|
subject.load_ports(element, [port])
|
||||||
obj = tool.Ifc.get_object(port)
|
obj = tool.Ifc.get_object(port)
|
||||||
|
|||||||
Reference in New Issue
Block a user