From b3ef69a907070fc696f90ce5b953f934a3526166 Mon Sep 17 00:00:00 2001 From: Jan Brouwer Date: Wed, 23 Oct 2024 20:19:54 +0200 Subject: [PATCH] Fix IfcBuildingStorey elevation --- src/bt_ifcmanager/lib/lib_ifc/entity_builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bt_ifcmanager/lib/lib_ifc/entity_builder.rb b/src/bt_ifcmanager/lib/lib_ifc/entity_builder.rb index c552152..f1e99ef 100644 --- a/src/bt_ifcmanager/lib/lib_ifc/entity_builder.rb +++ b/src/bt_ifcmanager/lib/lib_ifc/entity_builder.rb @@ -281,7 +281,7 @@ def assign_entity_attributes(ifc_entity, placement_parent) # could be better set from within IfcBuildingStorey? return unless ifc_entity.is_a?(@ifc_module::IfcBuildingStorey) - return unless ['IFC 4x3', 'IFC4X3_ADD2'].include?(Settings.ifc_version_compact) + return unless %w[IFC2X3 IFC4].include?(Settings.ifc_version_compact) elevation = @objectplacement.ifc_total_transformation.origin.z ifc_entity.elevation = Types::IfcLengthMeasure.new(@ifc_model, elevation)