From: Vitaly SMETANNIKOV Date: Thu, 8 Jun 2017 09:20:48 +0000 (+0300) Subject: Issue #2196: Process "Auxiliary" attribute on lines update X-Git-Tag: V_2.7.1.1~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=22dd6d2b36bba0f6da11d487e4f34bf0b3bcbe37;p=modules%2Fshaper.git Issue #2196: Process "Auxiliary" attribute on lines update --- 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