From 9ce3a35bc8dc6867a419f4cf2d7fd315493aaa2e Mon Sep 17 00:00:00 2001 From: Furgo <148809153+furgo16@users.noreply.github.com> Date: Thu, 10 Jul 2025 14:16:51 +0200 Subject: [PATCH] Import: DXF, correctly transfer Draft.Line points to make them editable --- src/Mod/Draft/importDXF.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Mod/Draft/importDXF.py b/src/Mod/Draft/importDXF.py index 44a32e9c5d..b67a0f7fbf 100644 --- a/src/Mod/Draft/importDXF.py +++ b/src/Mod/Draft/importDXF.py @@ -4518,6 +4518,13 @@ class DxfDraftPostProcessor: # property. new_obj.Shape = part_obj.Shape Draft.Wire(new_obj) # Attach the Python proxy. It will find Shape, Placement. + + # Manually transfer the parametric data from the Part::Line primitive + # to the new Draft.Wire's 'Points' property. + start_point = FreeCAD.Vector(part_obj.X1.Value, part_obj.Y1.Value, part_obj.Z1.Value) + end_point = FreeCAD.Vector(part_obj.X2.Value, part_obj.Y2.Value, part_obj.Z2.Value) + new_obj.Points = [start_point, end_point] + obj_type_str = "Line" elif part_obj.isDerivedFrom("Part::Circle"):