assert(theSketch.feature().error() == ""), "Sketch failed: {}".format(theSketch.feature().error())
assert(theSketch.solverError().value() == ""), "Sketch solver failed: {}".format(theSketch.solverError().value())
if theDOF != -1:
- aDOF = sketcher.tools.dof(theSketch)
+ aDOF = tools.dof(theSketch)
assert(aDOF == theDOF), "Sketch DoF {} is wrong. Expected {}".format(aDOF, theDOF)
aLineStartPoint = geomDataAPI_Point2D(aSketchLine.attribute("StartPoint"))
aLineEndPoint = geomDataAPI_Point2D(aSketchLine.attribute("EndPoint"))
aLineStartPoint.setValue(0., 15.)
-aLineEndPoint.setValue(20., 25.)
+aLineEndPoint.setValue(20., 30.)
aSession.finishOperation()
assert (model.dof(aSketchFeature) == 4)
#=========================================================================