You can now add ports to distribution elements in Blender.

This commit is contained in:
Dion Moult
2022-02-01 19:16:13 +11:00
parent f9ce0903f7
commit 10138e28c9
12 changed files with 182 additions and 12 deletions
+17
View File
@@ -29,6 +29,18 @@ class TestImplementsTool(NewFile):
assert isinstance(subject(), blenderbim.core.tool.System)
class TestCreateEmptyAtCursorWithElementOrientation(NewFile):
def test_run(self):
ifc = ifcopenshell.file()
tool.Ifc().set(ifc)
obj = bpy.data.objects.new("Object", None)
element = ifc.createIfcWall()
tool.Ifc.link(element, obj)
bpy.context.scene.cursor.matrix.translation[0] = 5
obj = subject.create_empty_at_cursor_with_element_orientation(element)
assert obj.matrix_world.translation[0] == 5
class TestDeleteElementObjects(NewFile):
def test_run(self):
ifc = ifcopenshell.file()
@@ -164,6 +176,11 @@ class TestLoadPorts(NewFile):
assert list(obj.location) == [0, 0, 0]
class TestRunAssignClassOperator(NewFile):
def test_nothing(self):
pass
class TestSelectElements(NewFile):
def test_run(self):
ifc = ifcopenshell.file()