From ce803425d2f4b62ededee5f7210525c9c3cc6f5f Mon Sep 17 00:00:00 2001 From: Renaud NEDELEC Date: Wed, 4 Nov 2015 10:38:55 +0100 Subject: [PATCH] [PythonAPI] fix for Dev_1.5.0 merge --- src/PythonAPI/model/sketcher/sketch.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 -- 2.39.2