From 09b86c8cd293a469f1595b47cefc4440732958d4 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 5 May 2016 10:13:23 +0300 Subject: [PATCH] Auxiliary rectangle --- src/PythonAddons/macros/rectangle/feature.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.39.2