diff --git a/Calepinage.FCMacro b/Calepinage.FCMacro index 49980fd..fa8463a 100755 --- a/Calepinage.FCMacro +++ b/Calepinage.FCMacro @@ -77,11 +77,12 @@ class WindowDialog(): __obj__.insert(0, __O__) maxY = boundingBox.YLength if boundingBox.YLength > maxY else maxY __obj__[0].Placement=App.Placement(App.Vector(0,0,0), App.Rotation(App.Vector(1,0,0),0), App.Vector(0,0,0)) + if currentX == 0.0: - __obj__[0].Placement.Base = FreeCAD.Vector(currentX, currentY, 0.0) + __obj__[0].Placement.Base = FreeCAD.Vector(-boundingBox.XMin + currentX, -boundingBox.YMin + currentY, 0.0) currentX += boundingBox.XLength else: - __obj__[0].Placement.Base = FreeCAD.Vector(currentX + spacing, currentY, 0.0) + __obj__[0].Placement.Base = FreeCAD.Vector(-boundingBox.XMin + currentX + spacing, -boundingBox.YMin + currentY, 0.0) currentX += boundingBox.XLength + spacing copy_sketchList.pop(index)