#1153 Add support for IfcAnnotationFillArea representation

This commit is contained in:
Dion Moult
2022-04-18 10:27:06 +10:00
parent ca502cc293
commit 9fc0baf175
3 changed files with 48 additions and 8 deletions
@@ -148,6 +148,11 @@ class TestGetPredefinedTypeIFC4(test.bootstrap.IFC4):
element.ObjectType = "FOOBAR"
assert subject.get_predefined_type(element) == "FOOBAR"
def test_getting_an_element_type_without_a_predefined_type_attribute(self):
element = ifcopenshell.api.run("root.create_entity", self.file, ifc_class="IfcAnnotation")
element.ObjectType = "FOOBAR"
assert subject.get_predefined_type(element) == "FOOBAR"
def test_getting_an_inherited_predefined_type(self):
element = ifcopenshell.api.run("root.create_entity", self.file, ifc_class="IfcWall")
element_type = ifcopenshell.api.run("root.create_entity", self.file, ifc_class="IfcWallType")