]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PythonAPI/model/sketcher/tools.py
Salome HOME
Porting to SALOME 9.1.0.
[modules/shaper.git] / src / PythonAPI / model / sketcher / tools.py
index f3dcdb37a819049f03f325aa1c3e9e48d3783369..0a2c4f6d4e6209d6df709fce038f65c30cfce5f0 100644 (file)
@@ -68,7 +68,7 @@ def dof(sketch):
     aSketch = sketch
     if issubclass(type(aSketch), ModelHighAPI.ModelHighAPI_Interface):
         aSketch = sketch.feature()
-    return int(filter(str.isdigit, aSketch.string("SolverDOF").value()))
+    return int(''.join(filter(str.isdigit, aSketch.string("SolverDOF").value())))
 
 def distancePointPoint(thePoint1, thePoint2):
     aPnt1 = toList(thePoint1)