Assigning a parametric layer type (for walls for now) now attempts to switch from non parametric to parametric geometry.

This commit is contained in:
Dion Moult
2021-10-22 15:43:04 +11:00
parent f19e334cd5
commit 9ffe92eae5
9 changed files with 108 additions and 65 deletions
+2 -5
View File
@@ -103,12 +103,9 @@ class TestGetIfcRepresentationClass(NewFile):
ifc.createIfcRelAssociatesMaterial(
RelatingMaterial=ifc.createIfcMaterialLayerSetUsage(), RelatedObjects=[element]
)
assert (
subject.get_ifc_representation_class(element)
== "IfcExtrudedAreaSolid/IfcExtrudedAreaSolid/IfcArbitraryProfileDefWithVoids"
)
assert subject.get_ifc_representation_class(element) == "IfcExtrudedAreaSolid/IfcArbitraryProfileDefWithVoids"
def test_returning_null_for_non_parametric_represntations(self):
def test_returning_null_for_non_parametric_representations(self):
ifc = ifcopenshell.file()
assert subject.get_ifc_representation_class(ifc.createIfcColumn()) is None