From a353ef93076e08e96c7f2e1cc58082b2eb1a56fb Mon Sep 17 00:00:00 2001 From: jffmichi <> Date: Fri, 29 Aug 2025 03:58:53 +0200 Subject: [PATCH] CAM: use dict constructor for Command in VCarve --- src/Mod/CAM/Path/Op/Vcarve.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/CAM/Path/Op/Vcarve.py b/src/Mod/CAM/Path/Op/Vcarve.py index 4224f6122c..98cb771225 100644 --- a/src/Mod/CAM/Path/Op/Vcarve.py +++ b/src/Mod/CAM/Path/Op/Vcarve.py @@ -485,10 +485,10 @@ class ObjectVcarve(PathEngraveBase.ObjectOp): # raise and reposition the head only if new wire starts further than 0.5 mm # from current head position if not canSkipRepositioning(currentPosition, newPosition): - path.append(Path.Command("G0 Z{}".format(obj.SafeHeight.Value))) + path.append(Path.Command("G0", {"Z": obj.SafeHeight.Value})) path.append( Path.Command( - "G0 X{} Y{} Z{}".format(newPosition.x, newPosition.y, obj.SafeHeight.Value) + "G0", {"X": newPosition.x, "Y": newPosition.y, "Z": obj.SafeHeight.Value} ) ) @@ -496,7 +496,7 @@ class ObjectVcarve(PathEngraveBase.ObjectOp): vSpeed = obj.ToolController.VertFeed.Value path.append( Path.Command( - "G1 X{} Y{} Z{} F{}".format(newPosition.x, newPosition.y, newPosition.z, vSpeed) + "G1", {"X": newPosition.x, "Y": newPosition.y, "Z": newPosition.z, "F": vSpeed} ) ) for e in wire: