From 241f7679b00782955a1cfa3d9898b1d1d5b41111 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 30 Apr 2025 14:23:45 +0500 Subject: [PATCH] create_axis_curve - fix typo --- .../ifcopenshell/api/grid/create_axis_curve.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/grid/create_axis_curve.py b/src/ifcopenshell-python/ifcopenshell/api/grid/create_axis_curve.py index 5bbfa5a8ea..8aedf889ef 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/grid/create_axis_curve.py +++ b/src/ifcopenshell-python/ifcopenshell/api/grid/create_axis_curve.py @@ -70,10 +70,11 @@ def create_axis_curve( grid = [i for i in file.get_inverse(grid_axis) if i.is_a("IfcGrid")][0] grid_matrix_i = np.linalg.inv(ifcopenshell.util.placement.get_local_placement(grid.ObjectPlacement)) grid_axis.AxisCurve = file.create_entity( - "IfcPolyline"( + "IfcPolyline", + ( file.create_entity("IfcCartesianPoint", ifc_safe_vector_type(grid_matrix_i @ p1)), file.create_entity("IfcCartesianPoint", ifc_safe_vector_type(grid_matrix_i @ p2)), - ) + ), ) if existing_curve: