]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Update 'TestRectangle.py' in respect to the new version
authorazv <artem.zhidkov@opencascade.com>
Fri, 9 Apr 2021 09:32:33 +0000 (12:32 +0300)
committerazv <artem.zhidkov@opencascade.com>
Fri, 9 Apr 2021 09:32:33 +0000 (12:32 +0300)
src/SketchPlugin/Test/TestRectangle.py

index 5c0a3f0a5dc12ea0a764c8fe1fdacf9f2695cbfd..9ad9fc582a112bef2302af71f60cc871787c97be 100644 (file)
@@ -70,6 +70,7 @@ aSession.finishOperation()
 #=========================================================================
 aSession.startOperation()
 aRectangle = aSketchFeature.addFeature("SketchRectangle")
+aRectangle.string("RectangleType").setValue("RectangleTypeByCorners")
 aStartCorner = geomDataAPI_Point2D(aRectangle.attribute("RectStartPoint"))
 aEndCorner = geomDataAPI_Point2D(aRectangle.attribute("RectEndPoint"))
 aStartCorner.setValue(10., 10.)