"""
Test1064.py
Unit test for testing the Part sub-shapes naming, described in the issue 1064
-
+
"""
#=========================================================================
# Initialization of the test
from ModelAPI import *
from GeomDataAPI import *
from GeomAlgoAPI import *
+from GeomAPI import *
__updated__ = "2015-10-16"
#=========================================================================
# 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()