X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FTest%2FTest1064.py;h=934a0779c50c9da4a5a56d620f3d2549901004fc;hb=9b44b38c6a5199172aa2c4d2297954e170ac4308;hp=c73dfd17d9633503c56894647420408ff1975c1f;hpb=642e5382a25423e44f38bab374953b40e94987cc;p=modules%2Fshaper.git diff --git a/src/ModelAPI/Test/Test1064.py b/src/ModelAPI/Test/Test1064.py index c73dfd17d..934a0779c 100644 --- a/src/ModelAPI/Test/Test1064.py +++ b/src/ModelAPI/Test/Test1064.py @@ -1,7 +1,7 @@ """ Test1064.py Unit test for testing the Part sub-shapes naming, described in the issue 1064 - + """ #========================================================================= # Initialization of the test @@ -68,18 +68,18 @@ aSession.finishOperation() #========================================================================= # Make a plane in PartSet on lateral face of the Extrusion #========================================================================= -aSession.startOperation() +aSession.startOperation("Make Plane") aSession.setActiveDocument(aPartSet) aPlane = aPartSet.addFeature("Plane") aPlane.string("CreationMethod").setValue("PlaneByFaceAndDistance") aPlane.real("distance").setValue(0) -aPlane.selection("planeFace").selectSubShape("face", "Part_1/Extrusion_1_1/LateralFace_3") +aPlane.selection("planeFace").selectSubShape("face", "Part_1/Extrusion_1_1/Generated_Face_3") aSession.finishOperation() #========================================================================= # Update the sketch edges in order to update the plane on the lateral face automatically #========================================================================= -aSession.startOperation() +aSession.startOperation("UpdateLine") geomDataAPI_Point2D(aLine1.attribute("EndPoint")).setValue(400, 0) geomDataAPI_Point2D(aLine2.attribute("StartPoint")).setValue(400, 0) aSession.finishOperation()