From: nds Date: Thu, 5 May 2016 07:13:23 +0000 (+0300) Subject: Auxiliary rectangle X-Git-Tag: V_2.3.0~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=09b86c8cd293a469f1595b47cefc4440732958d4;p=modules%2Fshaper.git Auxiliary rectangle --- diff --git a/src/PythonAddons/macros/rectangle/feature.py b/src/PythonAddons/macros/rectangle/feature.py index 350276f0a..8ce3a4b4f 100644 --- a/src/PythonAddons/macros/rectangle/feature.py +++ b/src/PythonAddons/macros/rectangle/feature.py @@ -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