New IFC to Brick class mapping utility

This commit is contained in:
Dion Moult
2022-01-10 15:35:37 +11:00
parent 8eccb1a5ed
commit 256f40ed44
3 changed files with 67 additions and 0 deletions
@@ -0,0 +1,11 @@
import pytest
import test.bootstrap
import ifcopenshell.util.brick as subject
class TestGetBrickTypeIFC4(test.bootstrap.IFC4):
def test_run(self):
element = self.file.createIfcAirTerminalBox()
assert subject.get_brick_type(element) == "TerminalUnit"
element.PredefinedType = "CONSTANTFLOW"
assert subject.get_brick_type(element) == "CAV"