From aebc073416bd66b9890dff64fca9f9be52eef93c Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 28 Feb 2024 14:06:02 +0500 Subject: [PATCH] fix pass-valid-selected-enumeration.ifc after 5270045 .ifc was failing during test_validate.py 1) Changed schema to rc2 as rc3-4 doesn't have IfcBridgePart 2) PredefinedType and UsageType were mixed up 3) With just `.DECK.` it was failing with error below ``` With attribute: | | | | )>> Value: DECK Not valid ``` --- .../fixtures/validate/pass-valid-selected-enumeration.ifc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/test/fixtures/validate/pass-valid-selected-enumeration.ifc b/src/ifcopenshell-python/test/fixtures/validate/pass-valid-selected-enumeration.ifc index dd602ab58b..3e27143e0b 100644 --- a/src/ifcopenshell-python/test/fixtures/validate/pass-valid-selected-enumeration.ifc +++ b/src/ifcopenshell-python/test/fixtures/validate/pass-valid-selected-enumeration.ifc @@ -2,10 +2,10 @@ ISO-10303-21; HEADER; FILE_DESCRIPTION(('ViewDefinition [CoordinationView]'),'2;1'); FILE_NAME('','2023-04-13T10:27:43',(),(),'IfcOpenShell v0.7.0-198fa67cc','IfcOpenShell v0.7.0-198fa67cc',''); -FILE_SCHEMA(('IFC4X3_RC4')); +FILE_SCHEMA(('IFC4X3_RC2')); ENDSEC; DATA; -#1=IFCBRIDGEPART('0DYKeUG9993PtW$2icoR4v',$,$,$,$,$,$,$,$,.LATERAL.,.DECK.); +#1=IFCBRIDGEPART('0DYKeUG9993PtW$2icoR4v',$,$,$,$,$,$,$,$,IFCBRIDGEPARTTYPEENUM('DECK'),.LATERAL.); #2=IFCPROJECT('3BXOBpFEDFqgWztkubS_w3',$,'My Project',$,$,$,$,$,$); #3=IFCRELAGGREGATES('3BXOBpFEDFqgWztkubS_w4',$,$,$,#2,(#1)); ENDSEC;