From c214d255c95ffc4654329f6c6abf0f352357b4ab Mon Sep 17 00:00:00 2001 From: Bruno Postle Date: Sun, 29 Mar 2026 22:04:59 +0100 Subject: [PATCH] Fix api.boundary.assign_connection_geometry TypeError TypeError: attribute 'DirectionRatios' for entity 'IFC4.IfcDirection' is expecting value of type 'AGGREGATE OF DOUBLE', got 'ndarray' --- .../ifcopenshell/api/boundary/assign_connection_geometry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/boundary/assign_connection_geometry.py b/src/ifcopenshell-python/ifcopenshell/api/boundary/assign_connection_geometry.py index 8237b6f1e1..9d988a4e82 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/boundary/assign_connection_geometry.py +++ b/src/ifcopenshell-python/ifcopenshell/api/boundary/assign_connection_geometry.py @@ -127,7 +127,7 @@ class Usecase: return self.file.createIfcPlane( self.file.createIfcAxis2Placement3D( self.create_point(location), - self.file.createIfcDirection(axis), - self.file.createIfcDirection(ref_direction), + self.file.createIfcDirection(ifc_safe_vector_type(axis)), + self.file.createIfcDirection(ifc_safe_vector_type(ref_direction)), ) )