Skip to content

Commit c214d25

Browse files
committed
Fix api.boundary.assign_connection_geometry TypeError
TypeError: attribute 'DirectionRatios' for entity 'IFC4.IfcDirection' is expecting value of type 'AGGREGATE OF DOUBLE', got 'ndarray'
1 parent 0d8ba71 commit c214d25

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ifcopenshell-python/ifcopenshell/api/boundary/assign_connection_geometry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def create_plane(
127127
return self.file.createIfcPlane(
128128
self.file.createIfcAxis2Placement3D(
129129
self.create_point(location),
130-
self.file.createIfcDirection(axis),
131-
self.file.createIfcDirection(ref_direction),
130+
self.file.createIfcDirection(ifc_safe_vector_type(axis)),
131+
self.file.createIfcDirection(ifc_safe_vector_type(ref_direction)),
132132
)
133133
)

0 commit comments

Comments
 (0)