]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Auxiliary rectangle
authornds <nds@opencascade.com>
Thu, 5 May 2016 07:13:23 +0000 (10:13 +0300)
committernds <nds@opencascade.com>
Thu, 5 May 2016 07:13:49 +0000 (10:13 +0300)
src/PythonAddons/macros/rectangle/feature.py

index 350276f0a4d88421cf6e068f8352e21a2df3895f..8ce3a4b4fc5a85a53d536ff0494ff72bfc904ce0 100644 (file)
@@ -141,6 +141,15 @@ class SketchPlugin_Rectangle(model.Feature):
               self.updateLines()
             else:
               self.updateStartPoint()
+        if theID == self.AUXILIARY_ID():
+            anAuxiliary = self.data().boolean(self.AUXILIARY_ID()).value()
+            aLinesList = self.reflist(self.LINES_LIST_ID())
+            aNbLines = aLinesList.size()
+            # Update coordinates of rectangle lines
+            for i in range (0, aNbLines):
+                aLine = ModelAPI.objectToFeature(aLinesList.object(i))
+                aLine.data().boolean("Auxiliary").setValue(anAuxiliary)
+
 
     def updateLines(self):
         # Retrieving list of already created lines