#=========================================================================
# Make a plane in PartSet on lateral face of the Extrusion
#=========================================================================
#=========================================================================
# Make a plane in PartSet on lateral face of the Extrusion
#=========================================================================
aSession.setActiveDocument(aPartSet)
aPlane = aPartSet.addFeature("Plane")
aPlane.string("CreationMethod").setValue("PlaneByFaceAndDistance")
aSession.setActiveDocument(aPartSet)
aPlane = aPartSet.addFeature("Plane")
aPlane.string("CreationMethod").setValue("PlaneByFaceAndDistance")
#=========================================================================
# Update the sketch edges in order to update the plane on the lateral face automatically
#=========================================================================
#=========================================================================
# Update the sketch edges in order to update the plane on the lateral face automatically
#=========================================================================
geomDataAPI_Point2D(aLine1.attribute("EndPoint")).setValue(400, 0)
geomDataAPI_Point2D(aLine2.attribute("StartPoint")).setValue(400, 0)
aSession.finishOperation()
geomDataAPI_Point2D(aLine1.attribute("EndPoint")).setValue(400, 0)
geomDataAPI_Point2D(aLine2.attribute("StartPoint")).setValue(400, 0)
aSession.finishOperation()