This commit is contained in:
Andrej730
2025-09-10 13:12:56 +05:00
parent 1e9239b352
commit 10e805b3f1
3 changed files with 8 additions and 8 deletions
@@ -107,7 +107,7 @@ def _add_segment_to_layout(file: ifcopenshell.file, layout: entity_instance, seg
y = float(end[1, 3]) / unit_scale
dx = float(end[0, 0])
dy = float(end[1, 0])
zero_length_segment.DesignParameters.StartPoint.Coordinates = (x,y)
zero_length_segment.DesignParameters.StartPoint.Coordinates = (x, y)
zero_length_segment.DesignParameters.StartDirection = dy / dx
elif zero_length_segment.DesignParameters.is_a("IfcAlignmentVerticalSegment"):
y = float(end[1, 3]) / unit_scale