From 22dd6d2b36bba0f6da11d487e4f34bf0b3bcbe37 Mon Sep 17 00:00:00 2001 From: Vitaly SMETANNIKOV Date: Thu, 8 Jun 2017 12:20:48 +0300 Subject: [PATCH] Issue #2196: Process "Auxiliary" attribute on lines update --- src/PythonAddons/macros/rectangle/feature.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PythonAddons/macros/rectangle/feature.py b/src/PythonAddons/macros/rectangle/feature.py index e6fc3578e..2407a4d11 100644 --- a/src/PythonAddons/macros/rectangle/feature.py +++ b/src/PythonAddons/macros/rectangle/feature.py @@ -180,6 +180,7 @@ class SketchPlugin_Rectangle(model.Feature): aEndPoint = GeomDataAPI.geomDataAPI_Point2D(self.attribute(self.END_ID())) aX = [aStartPoint.x(), aStartPoint.x(), aEndPoint.x(), aEndPoint.x()] aY = [aStartPoint.y(), aEndPoint.y(), aEndPoint.y(), aStartPoint.y()] + anAuxiliary = self.data().boolean(self.AUXILIARY_ID()).value() # Update coordinates of rectangle lines for i in range (0, aNbLines): @@ -188,6 +189,7 @@ class SketchPlugin_Rectangle(model.Feature): aLineEnd = GeomDataAPI.geomDataAPI_Point2D(aLine.attribute("EndPoint")) aLineStart.setValue(aX[i-1], aY[i-1]) aLineEnd.setValue(aX[i], aY[i]) + aLine.data().boolean("Auxiliary").setValue(anAuxiliary) def updateStartPoint(self): # Retrieving list of already created lines -- 2.39.2