From: Renaud NEDELEC Date: Wed, 4 Nov 2015 09:38:55 +0000 (+0100) Subject: [PythonAPI] fix for Dev_1.5.0 merge X-Git-Tag: V_2.1.0~206^2~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ce803425d2f4b62ededee5f7210525c9c3cc6f5f;p=modules%2Fshaper.git [PythonAPI] fix for Dev_1.5.0 merge --- diff --git a/src/PythonAPI/model/sketcher/sketch.py b/src/PythonAPI/model/sketcher/sketch.py index ee3ed5122..75cf75842 100644 --- a/src/PythonAPI/model/sketcher/sketch.py +++ b/src/PythonAPI/model/sketcher/sketch.py @@ -246,9 +246,11 @@ class Sketch(Interface): """Set a fillet constraint between the 2 given lines with the given filleting radius.""" constraint = self._feature.addFeature("SketchConstraintFillet") - constraint.data().refattr("ConstraintEntityA").setObject(line_1) - constraint.data().refattr("ConstraintEntityB").setObject(line_2) - constraint.data().real("ConstraintValue").setValue(radius) + constraint.data().reflist("ConstraintEntityA").clear + constraint.data().reflist("ConstraintEntityA").append(line_1) + constraint.data().reflist("ConstraintEntityB").clear + constraint.data().reflist("ConstraintEntityB").append(line_1) + self.execute() return constraint