# case 1: undo the error
model.begin()
aCoincidence = Sketch_3.setCoincident(SketchArc_1.startPoint(), SketchArc_1.endPoint())
-model.do()
model.end()
model.checkSketchErrorDegenerated(Sketch_3)
model.undo()
-model.do()
+model.begin()
model.checkSketch(Sketch_3)
# case 2: remove degeneracy-producting constraint
-model.begin()
+model.do()
aCoincidence = Sketch_3.setCoincident(SketchArc_1.startPoint(), SketchArc_1.endPoint())
model.do()
model.checkSketchErrorDegenerated(Sketch_3)
Part_1_doc.removeFeature(aCoincidence.feature())
model.do()
-model.end()
model.checkSketch(Sketch_3)
# case 3: remove degenerated edge
-model.begin()
+model.do()
aCoincidence = Sketch_3.setCoincident(SketchArc_1.startPoint(), SketchArc_1.endPoint())
model.do()
model.checkSketchErrorDegenerated(Sketch_3)
ModelAPI.removeFeaturesAndReferences(FeatureSet([SketchArc_1.feature()]))
-model.do()
model.end()
assert(Sketch_3.solverError().value() == "")