]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2196: Process "Auxiliary" attribute on lines update
authorVitaly SMETANNIKOV <vitaly.smetannikov@opencascade.com>
Thu, 8 Jun 2017 09:20:48 +0000 (12:20 +0300)
committerVitaly SMETANNIKOV <vitaly.smetannikov@opencascade.com>
Thu, 8 Jun 2017 09:20:48 +0000 (12:20 +0300)
src/PythonAddons/macros/rectangle/feature.py

index e6fc3578e8853f3cb86c5e2a68d027ac6c453319..2407a4d114a8421a6d4b69bbbda24d0c5abfc0bc 100644 (file)
@@ -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